summaryrefslogtreecommitdiffstats
path: root/config/xorg/xinitrc
diff options
context:
space:
mode:
Diffstat (limited to 'config/xorg/xinitrc')
-rw-r--r--config/xorg/xinitrc21
1 files changed, 13 insertions, 8 deletions
diff --git a/config/xorg/xinitrc b/config/xorg/xinitrc
index 523f19c..cee8050 100644
--- a/config/xorg/xinitrc
+++ b/config/xorg/xinitrc
@@ -41,21 +41,25 @@ fi
# Setup and start Desktop Environment
# ======================================================================
+# Thanks: https://bbs.archlinux.org/viewtopic.php?pid=1565341#p1565341
+run_after_dwm() {
+ # Bind the right Alt key to Mod4 (for DWM)
+ # https://wiki.archlinux.org/title/Dwm#Bind_the_right_Alt_key_to_Mod4
+ # xmodmap -pke | grep Alt_R
+ xmodmap -e "keycode 108 = Super_L"
+ xmodmap -e "remove mod1 = Super_L"
+}
+
# fcitx (CJK and emoji input method)
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
xrandr --dpi 144 # Original mac: 72, stupid windows: 96 pulse15: 188
-setxkbmap -option caps:escape # map CAPSLOCK to ESC
-laptop-xinput_setup.sh # laptop touchpad
+setxkbmap -option caps:escape
+laptop-xinput_setup.sh
laptop-xrandr.sh
-xbindkeys # keyboard shortcuts
-# Bind the right Alt key to Mod4 (for DWM)
-# https://wiki.archlinux.org/title/Dwm#Bind_the_right_Alt_key_to_Mod4
-# xmodmap -pke | grep Alt_R
-xmodmap -display ":0.0" -e "keycode 108 = Super_L"
-xmodmap -display ":0.0" -e "remove mod1 = Super_L"
+xbindkeys
#autostart="mpd xcompmgr dunst unclutter pipewire remapd"
#autostart="dunst unclutter"
@@ -84,4 +88,5 @@ unclutter &
xautolock -time 10 -locker slock &
dwmblocks &
setbg.sh &
+(sleep 5 && run_after_dwm) &
exec dwm