From 4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3 Mon Sep 17 00:00:00 2001 From: Mitsuo Tokumori Date: Wed, 11 Sep 2024 03:38:31 +0900 Subject: Minor QOF improvements to tmux and WM --- config/xorg/xinitrc | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'config/xorg/xinitrc') 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 -- cgit v1.2.3