diff options
Diffstat (limited to '')
| -rw-r--r-- | .config/dwm/config.h | 1 | ||||
| -rw-r--r-- | .xinitrc | 3 | ||||
| -rwxr-xr-x | scripts/xkfix | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/.config/dwm/config.h b/.config/dwm/config.h index 9249699..4577f64 100644 --- a/.config/dwm/config.h +++ b/.config/dwm/config.h | |||
| @@ -189,6 +189,7 @@ static Key keys[] = { | |||
| 189 | { MODKEY|ShiftMask, XK_v, spawn, SHCMD("popup-terminal pulsemixer") }, | 189 | { MODKEY|ShiftMask, XK_v, spawn, SHCMD("popup-terminal pulsemixer") }, |
| 190 | { MODKEY|ShiftMask, XK_b, spawn, SHCMD("popup-terminal bluetoothctl") }, | 190 | { MODKEY|ShiftMask, XK_b, spawn, SHCMD("popup-terminal bluetoothctl") }, |
| 191 | { MODKEY|ShiftMask, XK_p, spawn, SHCMD("popup-terminal top") }, | 191 | { MODKEY|ShiftMask, XK_p, spawn, SHCMD("popup-terminal top") }, |
| 192 | { MODKEY, XK_space, spawn, SHCMD("xkfix") }, | ||
| 192 | 193 | ||
| 193 | /* Multimedia */ | 194 | /* Multimedia */ |
| 194 | { 0, XK_Print, spawn, SHCMD("dmenu-screenshot") }, | 195 | { 0, XK_Print, spawn, SHCMD("dmenu-screenshot") }, |
| @@ -18,8 +18,7 @@ while true; do | |||
| 18 | done & | 18 | done & |
| 19 | 19 | ||
| 20 | # Extra settings | 20 | # Extra settings |
| 21 | setxkbmap -option compose:ralt | 21 | xkfix # From scripts |
| 22 | setxkbmap -option caps:swapescape | ||
| 23 | brightnessctl set 30% | 22 | brightnessctl set 30% |
| 24 | xset s off -dpms | 23 | xset s off -dpms |
| 25 | xrdb -merge ~/.Xresources | 24 | xrdb -merge ~/.Xresources |
diff --git a/scripts/xkfix b/scripts/xkfix new file mode 100755 index 0000000..8697362 --- /dev/null +++ b/scripts/xkfix | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # Swap Esc and Caps Lock and set compose key to Right Alt | ||
| 4 | # Requires: setxkbmap | ||
| 5 | |||
| 6 | setxkbmap -option caps:swapescape | ||
| 7 | setxkbmap -option compose:ralt | ||
