summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-05-09 17:42:30 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-05-09 17:42:30 +0200
commit834f127ef8d3952bfe0deaa2abc31075d0d45de4 (patch)
tree10e8ee7a7be716a16fbdc1474aa7b45e43efd745
parent0a1512c2308dc47f114c693183aec6b277afd269 (diff)
downloadconfig-834f127ef8d3952bfe0deaa2abc31075d0d45de4.tar.gz
config-834f127ef8d3952bfe0deaa2abc31075d0d45de4.zip
Add shortcut for fixing keyboard
-rw-r--r--.config/dwm/config.h1
-rw-r--r--.xinitrc3
-rwxr-xr-xscripts/xkfix7
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") },
diff --git a/.xinitrc b/.xinitrc
index d460f09..dce9c8d 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -18,8 +18,7 @@ while true; do
18done & 18done &
19 19
20# Extra settings 20# Extra settings
21setxkbmap -option compose:ralt 21xkfix # From scripts
22setxkbmap -option caps:swapescape
23brightnessctl set 30% 22brightnessctl set 30%
24xset s off -dpms 23xset s off -dpms
25xrdb -merge ~/.Xresources 24xrdb -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
6setxkbmap -option caps:swapescape
7setxkbmap -option compose:ralt

Generated with cgit - Back to sebastiano.tronto.net