summaryrefslogtreecommitdiffstats
path: root/config/xorg/xinitrc
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2024-09-11 03:38:31 +0900
committerMitsuo Tokumori <[email protected]>2024-09-11 03:38:31 +0900
commit4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3 (patch)
tree6479933ad1c067779740e76bd805f939d2e53849 /config/xorg/xinitrc
parent12df0c63e7ffda48e711af6e8cc74a6015a3c048 (diff)
downloaddotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.tar.gz
dotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.tar.bz2
dotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.zip
Minor QOF improvements to tmux and WM
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