summaryrefslogtreecommitdiffstats
path: root/config
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
parent12df0c63e7ffda48e711af6e8cc74a6015a3c048 (diff)
downloaddotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.tar.gz
dotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.tar.bz2
dotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.zip
Minor QOF improvements to tmux and WM
Diffstat (limited to 'config')
-rw-r--r--config/tmux/tmux.conf3
-rw-r--r--config/xorg/xbindkeysrc13
-rw-r--r--config/xorg/xinitrc21
3 files changed, 21 insertions, 16 deletions
diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf
index b171190..e5a3e66 100644
--- a/config/tmux/tmux.conf
+++ b/config/tmux/tmux.conf
@@ -45,6 +45,9 @@ bind-key -T copy-mode-vi 'y' send -X copy-selection
#bind - split-window -v
#unbind '"'
#unbind %
+# Thanks: https://unix.stackexchange.com/a/109255/347754
+bind % split-window -h -c "#{pane_current_path}"
+bind '"' split-window -v -c "#{pane_current_path}"
# moving between panes with vim movement keys
bind h select-pane -L
diff --git a/config/xorg/xbindkeysrc b/config/xorg/xbindkeysrc
index 3d54661..7acb6fe 100644
--- a/config/xorg/xbindkeysrc
+++ b/config/xorg/xbindkeysrc
@@ -69,6 +69,8 @@
# My shortcuts
# ============
+# See all mappings in a neat table here: $HOME/docs/notes/keybindings.ods
+
# Modifier scheme (order: Control,Shift,Alt(Mod1),Super(Mod4)):
# * app-specific:
# * Control, Control+Shift, Contrl+Alt (*)
@@ -192,17 +194,12 @@
"playerctl play-pause"
Mod4 + Down
-# XF86AudioPlay
+
"playerctl stop"
Mod4 + Up
-# XF86AudioStop
+
"playerctl next"
Mod4 + Right
-# XF86AudioPrev
+
"playerctl previous"
Mod4 + Left
-# XF86AudioNext
-
-##################################
-# End of xbindkeys configuration #
-##################################
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