diff options
author | Urbain Vaes <urbain@vaes.uk> | 2020-10-04 19:13:49 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2020-10-04 19:13:49 +0100 |
commit | 3a3321af173a73b158c606f0e2c3c3e0dece2cb9 (patch) | |
tree | 00075dc12714c8b128e2327542526ac0676820fc /bin | |
parent | ac7ba6d8aa7eb6ef384f10b7798bd01308beb970 (diff) | |
parent | 2c5e2b7a6667fd4e726bba3e50f9ccf6ce13bab3 (diff) |
Merge branch 'master' of https://github.com/urbainvaes/dotfiles
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/.local/bin/keyboard | 11 | ||||
-rwxr-xr-x | bin/.local/bin/keyboard-us | 8 | ||||
-rwxr-xr-x | bin/.local/bin/workspace | 6 |
3 files changed, 13 insertions, 12 deletions
diff --git a/bin/.local/bin/keyboard b/bin/.local/bin/keyboard index b7f5e90..59a9ee0 100755 --- a/bin/.local/bin/keyboard +++ b/bin/.local/bin/keyboard @@ -46,13 +46,14 @@ xmodmap -e "keycode any = space" xcape -e 'Super_L=space' # Make return (Control_R, Return) -xmodmap -e "keysym Return = Control_R" -xmodmap -e "add Control = Control_R" -xmodmap -e "keycode any = Return" -xcape -e 'Control_R=Return' +# xmodmap -e "keysym Return = Control_R" +# xmodmap -e "add Control = Control_R" +# xmodmap -e "keycode any = Return" +# xcape -e 'Control_R=Return' -# Make eject an Insert +# Make eject and Home an Insert xmodmap -e "keysym XF86Eject = Insert" +xmodmap -e "keysym Home = Insert" # Numbers xmodmap -e "keysym d = d D 0" diff --git a/bin/.local/bin/keyboard-us b/bin/.local/bin/keyboard-us index 1b6ceba..1b150fc 100755 --- a/bin/.local/bin/keyboard-us +++ b/bin/.local/bin/keyboard-us @@ -13,10 +13,10 @@ setxkbmap us xmodmap -e "clear Lock" xmodmap -e "keysym Caps_Lock = Control_L Control_L" xmodmap -e "add Control = Control_L" -xcape -e 'Control_L=Escape' +# xcape -e 'Control_L=Escape' # Make space (Super_L, space) -xmodmap -e "keysym space = Super_L" -xmodmap -e "add mod4 = Super_L" -xmodmap -e "keycode any = space" +# xmodmap -e "keysym space = Super_L" +# xmodmap -e "add mod4 = Super_L" +# xmodmap -e "keycode any = space" # xcape -e 'Super_L=space' diff --git a/bin/.local/bin/workspace b/bin/.local/bin/workspace index ad378ef..36f09d4 100755 --- a/bin/.local/bin/workspace +++ b/bin/.local/bin/workspace @@ -1,13 +1,13 @@ #!/usr/bin/env bash -# List of workspaces +# List of workspaces: ( number, name, focused) workspaces=$(i3-msg -t get_workspaces | awk 'BEGIN { RS="(},{)|(\\[{)|(}\\])"; - FPAT="([^,:]+)|([^,]+{[^}]+})|(\"[^\"]+\")" + FPAT="([^,:\"]+)|([^,\"]+:[^,\"]+)|([^,]+{[^}]+})" } $0 !~ "^\\s*$" { gsub(/"/, "", $4) - print $2, $4, $8, $11 + print $4, $6, $10 }' | sort) act_on_container() { |