From f2c1c49654862c14b214e91d9b40eabed255f3af Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Oct 2015 11:51:36 +0100 Subject: Remove .sh for all scripts --- bin/keyboard | 37 +++++++++++++++++++++++++++++++++++++ bin/keyboard.sh | 37 ------------------------------------- bin/recolor | 8 ++++++++ bin/recolor.sh | 8 -------- 4 files changed, 45 insertions(+), 45 deletions(-) create mode 100755 bin/keyboard delete mode 100755 bin/keyboard.sh create mode 100755 bin/recolor delete mode 100755 bin/recolor.sh (limited to 'bin') diff --git a/bin/keyboard b/bin/keyboard new file mode 100755 index 0000000..13a599f --- /dev/null +++ b/bin/keyboard @@ -0,0 +1,37 @@ +# Dvorak programer +setxkbmap us -variant dvp + +# Make caps lock a Control +xmodmap -e "clear Lock" +xmodmap -e "keysym Caps_Lock = Control_L Caps_Lock" +xmodmap -e "add Control = Control_L" + +# Remap modifiers (Keyboard dependent) +xmodmap -e "keycode 94 = Mode_switch" +xmodmap -e 'keycode 108 = Alt_L' + +# Remap modifiers (Keyboard independent) +xmodmap -e 'keysym space = Alt_L' +xmodmap -e 'keycode any = space' + +# Numbers +xmodmap -e "keysym d = d D 0" +xmodmap -e "keysym o = o O 1" +xmodmap -e "keysym m = m M 1" +xmodmap -e "keysym e = e E 2" +xmodmap -e "keysym w = w W 2" +xmodmap -e "keysym u = u U 3" +xmodmap -e "keysym v = v V 3" +xmodmap -e "keysym h = h H 4" +xmodmap -e "keysym t = t T 5" +xmodmap -e "keysym n = n N 6" +xmodmap -e "keysym g = g G 7" +xmodmap -e "keysym c = c C 8" +xmodmap -e "keysym r = r R 9" + +# Xcape settings +killall -9 xcape + +xcape -e 'Control_L=Escape' +xcape -e 'Shift_L=Escape' +xcape -e 'Alt_L=space' diff --git a/bin/keyboard.sh b/bin/keyboard.sh deleted file mode 100755 index 13a599f..0000000 --- a/bin/keyboard.sh +++ /dev/null @@ -1,37 +0,0 @@ -# Dvorak programer -setxkbmap us -variant dvp - -# Make caps lock a Control -xmodmap -e "clear Lock" -xmodmap -e "keysym Caps_Lock = Control_L Caps_Lock" -xmodmap -e "add Control = Control_L" - -# Remap modifiers (Keyboard dependent) -xmodmap -e "keycode 94 = Mode_switch" -xmodmap -e 'keycode 108 = Alt_L' - -# Remap modifiers (Keyboard independent) -xmodmap -e 'keysym space = Alt_L' -xmodmap -e 'keycode any = space' - -# Numbers -xmodmap -e "keysym d = d D 0" -xmodmap -e "keysym o = o O 1" -xmodmap -e "keysym m = m M 1" -xmodmap -e "keysym e = e E 2" -xmodmap -e "keysym w = w W 2" -xmodmap -e "keysym u = u U 3" -xmodmap -e "keysym v = v V 3" -xmodmap -e "keysym h = h H 4" -xmodmap -e "keysym t = t T 5" -xmodmap -e "keysym n = n N 6" -xmodmap -e "keysym g = g G 7" -xmodmap -e "keysym c = c C 8" -xmodmap -e "keysym r = r R 9" - -# Xcape settings -killall -9 xcape - -xcape -e 'Control_L=Escape' -xcape -e 'Shift_L=Escape' -xcape -e 'Alt_L=space' diff --git a/bin/recolor b/bin/recolor new file mode 100755 index 0000000..edd5fa5 --- /dev/null +++ b/bin/recolor @@ -0,0 +1,8 @@ +#!/bin/sh + +tr -d ' \t' | sed -n ' +s/.*background:/\x1b]11;/p +s/.*foreground:/\x1b]10;/p +s/.*borderColor:/\x1b]708;/p +s/.*color\([0-9][^:]*\):/\x1b]4;\1;/p +' | tr \\n \\a diff --git a/bin/recolor.sh b/bin/recolor.sh deleted file mode 100755 index edd5fa5..0000000 --- a/bin/recolor.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -tr -d ' \t' | sed -n ' -s/.*background:/\x1b]11;/p -s/.*foreground:/\x1b]10;/p -s/.*borderColor:/\x1b]708;/p -s/.*color\([0-9][^:]*\):/\x1b]4;\1;/p -' | tr \\n \\a -- cgit v1.2.3