aboutsummaryrefslogtreecommitdiff
path: root/x
diff options
context:
space:
mode:
Diffstat (limited to 'x')
-rw-r--r--x/.Xmodmap4
-rw-r--r--x/.xinitrc8
2 files changed, 12 insertions, 0 deletions
diff --git a/x/.Xmodmap b/x/.Xmodmap
new file mode 100644
index 0000000..2aeb810
--- /dev/null
+++ b/x/.Xmodmap
@@ -0,0 +1,4 @@
+clear Lock
+remove Lock = Caps_Lock
+keycode 66 = Escape
+keycode 9 = Caps_Lock
diff --git a/x/.xinitrc b/x/.xinitrc
index b69dd4c..753b518 100644
--- a/x/.xinitrc
+++ b/x/.xinitrc
@@ -71,6 +71,14 @@ keepassxc ~/.passwords/Passwords.kdbx &
#wallpapers.sh &
feh --bg-fill git/wallpapers-exorcist/gruvbox/canyon.jpg git/wallpapers-exorcist/gruvbox/canyon.jpg &
+# if unicomp keyboard detected, turn alt into super
+if $(lsusb | grep -qi "Unicomp"); then
+ xmodmap -e "remove mod1 = Alt_L"
+ xmodmap -e "remove mod4 = Super_L"
+ xmodmap -e "remove mod1 = Super_L"
+ xmodmap -e "remove mod4 = Alt_L"
+fi
+
# start dwm
redshift &
xset r rate 300 50