summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bin/dot48
-rwxr-xr-xbin/bin/dyndns5
-rwxr-xr-xbin/bin/keyboard3
-rwxr-xr-xbin/bin/swap16
4 files changed, 3 insertions, 69 deletions
diff --git a/bin/bin/dot b/bin/bin/dot
deleted file mode 100755
index acb0e64..0000000
--- a/bin/bin/dot
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env bash
-
-get_links()
-{
- find $HOME -not -path "$HOME/dotfiles/*" -type l | while read line; do
- if [[ "$(realpath -q $line)" == "${HOME}/dotfiles/"* ]]; then
- echo $line
- fi
- done
-}
-
-clean()
-{
- get_links | while read link; do
- rm -v ${link}
- done
-}
-
-down()
-{
- source $HOME/dotfiles/.dotmap
- for link in "${!dotmap[@]}"; do
- echo "Removing ${link}."
- rm -rf $link
- done
-}
-
-up()
-{
- source $HOME/dotfiles/.dotmap
- for link in "${!dotmap[@]}"; do
- target=${dotmap[$link]}
- mkdir -p $(dirname ${link})
- echo "Linking $target."
- rm -rf $link && ln -s $target $link
- done
-}
-
-save()
-{
- echo "declare -A dotmap" > .dotmap
- get_links | while read link; do
- echo "dotmap[$link]=$(readlink -f -q $link)" | sed "s#$HOME#"'$HOME#g' >> .dotmap
- done
- sort .dotmap -o .dotmap
-}
-
-$1
diff --git a/bin/bin/dyndns b/bin/bin/dyndns
deleted file mode 100755
index 8d1f553..0000000
--- a/bin/bin/dyndns
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/usr/bin/env bash
-
-PASSWORD=$(pass show email/urbain@vaes.uk)
-
-curl -4 -X PUT --user "urbain@vaes.uk:$PASSWORD" https://box.bknguyen.org/admin/dns/custom/urbainvaes.com
diff --git a/bin/bin/keyboard b/bin/bin/keyboard
index d00035b..45d9972 100755
--- a/bin/bin/keyboard
+++ b/bin/bin/keyboard
@@ -30,6 +30,9 @@ xmodmap -e "keysym g = g G 7"
xmodmap -e "keysym c = c C 8"
xmodmap -e "keysym r = r R 9"
+# Special characters
+xmodmap -e "keysym XF86Eject = Insert"
+
# Xcape settings
killall -9 xcape
diff --git a/bin/bin/swap b/bin/bin/swap
deleted file mode 100755
index 4c17dc7..0000000
--- a/bin/bin/swap
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/python
-
-import i3
-outputs = i3.get_outputs()
-print(outputs[0])
-
-# set current workspace to output 0
-i3.workspace(outputs[0]['current_workspace'])
-
-# ..and move it to the other output.
-# outputs wrap, so the right of the right is left ;)
-i3.command('move', 'workspace to output right')
-
-# rinse and repeat
-i3.workspace(outputs[1]['current_workspace'])
-i3.command('move', 'workspace to output right')