diff options
| author | Mitsuo Tokumori <[email protected]> | 2024-09-11 03:38:31 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2024-09-11 03:38:31 +0900 |
| commit | 4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3 (patch) | |
| tree | 6479933ad1c067779740e76bd805f939d2e53849 | |
| parent | 12df0c63e7ffda48e711af6e8cc74a6015a3c048 (diff) | |
| download | dotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.tar.gz dotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.tar.bz2 dotfiles-4bc0383c5745d5fbd7e83d7ae68f765a9b2024e3.zip | |
Minor QOF improvements to tmux and WM
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | _minimal/README.txt | 1 | ||||
| -rw-r--r-- | config/tmux/tmux.conf | 3 | ||||
| -rw-r--r-- | config/xorg/xbindkeysrc | 13 | ||||
| -rw-r--r-- | config/xorg/xinitrc | 21 |
6 files changed, 26 insertions, 21 deletions
@@ -1 +1,2 @@ -.directory +./sensitive/ +./secret/ @@ -5,9 +5,9 @@ leading dot in directory and file names, and decided to organize files per program. In the future, I want to have the files as-they-are in the home directory. There'll 2 (or 3) "base" directories: `public`, `sensitive` (non-secret, but also non-public, e.g., gnupg and sshd configuration files), and -`secret` (in case there are config files that contain secret data (very bad -practice)). When this is implemented, installation is achieved by sym-linking -directories or files. +`secret` (in case there are config files that contain secret data (not ideal)). +When this is implemented, installation is achieved by sym-linking directories or +files. ## Usage diff --git a/_minimal/README.txt b/_minimal/README.txt deleted file mode 100644 index 3fd50f9..0000000 --- a/_minimal/README.txt +++ /dev/null @@ -1 +0,0 @@ -Minimal configuration. Only the most essential non-default stuff here. 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 |
