From fd4aff372f4fb49350cc481524199b4b12a61a5b Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 3 May 2021 15:24:09 -0600 Subject: [PATCH] various configuration updates --- .../i3/launch-all-scratchpad-applications.sh | 32 ++++++++++++++++++ config/tmux/n-bindings.tmux | 3 ++ config/tmux/tmux.conf | 1 + vim/en.utf-8.add.spl | Bin 1151 -> 1168 bytes 4 files changed, 36 insertions(+) create mode 100755 bin/desktop/i3/launch-all-scratchpad-applications.sh diff --git a/bin/desktop/i3/launch-all-scratchpad-applications.sh b/bin/desktop/i3/launch-all-scratchpad-applications.sh new file mode 100755 index 0000000..b980651 --- /dev/null +++ b/bin/desktop/i3/launch-all-scratchpad-applications.sh @@ -0,0 +1,32 @@ +APPLICATION_BIN="$HOME/.config/wryn/default-applications" +APPLICATIONS=( + 'audio' + 'discord' + 'email' + 'media' + 'message' + 'phone' + 'slack' + ) + +CLIENT_CLASSES=( + '^Pavucontrol$' + '^discord$' + '^Thunderbird$' + '^youtubemusic-nativefier' + '^android-messages-desktop$' + '^google-voice-desktop' + '^Slack$' + ) + +for APPLICATION in $(echo $APPLICATIONS); do + xdotool search --class "$CLIENT_CLASS" >/dev/null 2>&1 || { + i3-msg "exec --no-startup-id $APPLICATION_BIN/$APPLICATION;" + } +done + +sleep 10; + +for CLIENT_CLASS in $CLIENT_CLASSES; do + i3-msg "[class=$CLIENT_CLASS] move scratchpad"; +done diff --git a/config/tmux/n-bindings.tmux b/config/tmux/n-bindings.tmux index 9a55abd..369011c 100644 --- a/config/tmux/n-bindings.tmux +++ b/config/tmux/n-bindings.tmux @@ -38,5 +38,8 @@ bind-key -n M-a send-prefix # rena[M]e session bind-key -n M-m command-prompt -I "#S" "rename-session '%%'" +# rename [w]indow +bind-key -n M-w command-prompt -I "#W" "rename-window '%%'" + # toggle readonly session bind-key -n M-r switch-client -r; diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index b5dc82f..45769cf 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -15,6 +15,7 @@ setw -gq utf8 on # force vi set-window-option -g mode-keys vi +set-window-option -g status-keys vi # disable mouse-mode set -g mouse off diff --git a/vim/en.utf-8.add.spl b/vim/en.utf-8.add.spl index ee6251e0bcd7edf3c3a87bf4789d861247517011..60ffe9c70d179c2318e6aa06dfb00982a11bf947 100644 GIT binary patch delta 260 zcmXAjv1$TA7=(9rBb*4 N6QvD5{dQ-yy8(jrJT?FT delta 243 zcmXAjO%4G;5QY17kAy_#0)DO_A#nncSg^3LlwjJ-M5E0RVJC3_(noLtm$7mJiKW<~ z%4{lC-}_!tr@}Yy4?5k{YGdkOA>`xgH<9zEQM_|QyvloMK!|prbh5=53%=gWuyZpx zDD|`=@|-R$rG{*tOU@haE^Dx^s5)iw-XO%Bf*1jZHYL^Yc6TdPmAJUGstj8pEW^G* wLPCm&Dw!5goyi&_+W05yjWoF*yCFFy9MI%olD&DG|Esb!Q`(Sta7FL<1O6m9X#fBK