ENH make tmux start by default and get rid of urxvt tabs

This commit is contained in:
Nathan Dwarshuis 2021-06-17 01:17:06 -04:00
parent 7955c8e89b
commit 0561ebc247
6 changed files with 43 additions and 18 deletions

View File

@ -58,7 +58,7 @@ run_yay() {
r_pkgs=(r gcc-fortran texlive-bin tk) r_pkgs=(r gcc-fortran texlive-bin tk)
redshift_pkgs=(redshift) redshift_pkgs=(redshift)
seafile_pkgs=(seafile-client) seafile_pkgs=(seafile-client)
urxvt_pkgs=(urxvt-tabbedex rxvt-unicode urxvt-perls) urxvt_pkgs=(rxvt-unicode urxvt-perls)
zsh_pkgs=(zsh zsh-completions zsh-syntax-highlighting) zsh_pkgs=(zsh zsh-completions zsh-syntax-highlighting)
## AUR pkgs needed for spotify ## AUR pkgs needed for spotify
@ -79,6 +79,7 @@ run_yay() {
run_makepkg() { run_makepkg() {
## these are all packages that have some personal customizations and/or are ## these are all packages that have some personal customizations and/or are
## not in the AUR ## not in the AUR
## TODO the clevo thingy requires a systemd file to turn on/off
call_makepkg "clevo-xsm-wmi-dkms" call_makepkg "clevo-xsm-wmi-dkms"
call_makepkg "conky-lua" call_makepkg "conky-lua"
call_makepkg "spotify" call_makepkg "spotify"

View File

@ -0,0 +1,16 @@
#!/bin/bash
session_name=0
if [[ -z "$1" ]]; then
echo "Need a command to perform"
exit 1
elif [[ "$1" == "start" ]]; then
tmux new-session -s "$session_name" -d
elif [[ "$1" == "stop" ]]; then
tmux kill-session -t "$session_name"
else
echo 'Command must be either "start" or "stop"'
exit 1
fi

View File

@ -25,6 +25,7 @@ KEYS="$KEYS;Alt_R=space"
KEYS="$KEYS;ISO_Level3_Shift=XF86Search" KEYS="$KEYS;ISO_Level3_Shift=XF86Search"
xman -t 500 "$KEYS" "^VirtualBox Machine$" & xman -t 500 "$KEYS" "^VirtualBox Machine$" &
tmuxctl start
greenclip daemon & greenclip daemon &
redshift > /dev/null 2>&1 & redshift > /dev/null 2>&1 &
dunst & dunst &

View File

@ -42,12 +42,12 @@ URxvt.font: xft:DejaVu Sans Mono:size=11:autohint=false
URxvt.boldfont: xft:DejaVu Sans Mono Bold:size=11:autohint=false URxvt.boldfont: xft:DejaVu Sans Mono Bold:size=11:autohint=false
URxvt.fontItalic: xft:DejaVu Sans Mono Oblique:size=11:autohint=false URxvt.fontItalic: xft:DejaVu Sans Mono Oblique:size=11:autohint=false
URxvt.fontBoldItalic: xft:DejaVu Sans Mono Bold Oblique:size=11:autohint=false URxvt.fontBoldItalic: xft:DejaVu Sans Mono Bold Oblique:size=11:autohint=false
URxvt.tabbedex.tabbar-fg: 15 ! URxvt.tabbedex.tabbar-fg: 15
URxvt.tabbedex.tabbar-bg: 0 ! URxvt.tabbedex.tabbar-bg: 0
URxvt.tabbedex.tab-fg: 0 ! URxvt.tabbedex.tab-fg: 0
URxvt.tabbedex.tab-bg: 15 ! URxvt.tabbedex.tab-bg: 15
URxvt.tabbedex.autohide: true ! URxvt.tabbedex.autohide: true
URxvt.tabbedex.title: false ! URxvt.tabbedex.title: false
URxvt.imLocale: en_US.UTF-8 URxvt.imLocale: en_US.UTF-8
@ -63,7 +63,8 @@ URxvt.meta8: False
URxvt.scrollBar: False URxvt.scrollBar: False
URxvt.perl-ext-common: default,matcher,tabbedex,keyboard-select,selection-to-clipboard ! URxvt.perl-ext-common: default,matcher,tabbedex,keyboard-select,selection-to-clipboard
URxvt.perl-ext-common: default,matcher,keyboard-select,selection-to-clipboard
URxvt.url-launcher: /usr/bin/xdg-open URxvt.url-launcher: /usr/bin/xdg-open
URxvt.matcher.button: 1 URxvt.matcher.button: 1
@ -75,10 +76,10 @@ URxvt.keysym.Control-C: perl:clipboard:copy
URxvt.keysym.Control-V: perl:clipboard:paste URxvt.keysym.Control-V: perl:clipboard:paste
URxvt.keysym.Control-B: perl:clipboard:paste_escaped URxvt.keysym.Control-B: perl:clipboard:paste_escaped
URxvt.keysym.Control-t: perl:tabbedex:new_tab ! URxvt.keysym.Control-t: perl:tabbedex:new_tab
URxvt.keysym.Control-Tab: perl:tabbedex:next_tab ! URxvt.keysym.Control-Tab: perl:tabbedex:next_tab
URxvt.keysym.Control-ISO_Left_Tab: perl:tabbedex:prev_tab ! URxvt.keysym.Control-ISO_Left_Tab: perl:tabbedex:prev_tab
URxvt.keysym.Control-Shift-Left: perl:tabbedex:move_tab_left ! URxvt.keysym.Control-Shift-Left: perl:tabbedex:move_tab_left
URxvt.keysym.Control-Shift-Right: perl:tabbedex:move_tab_right ! URxvt.keysym.Control-Shift-Right: perl:tabbedex:move_tab_right
URxvt.keysym.Control-Shift-R: perl:tabbedex:rename_tab ! URxvt.keysym.Control-Shift-R: perl:tabbedex:rename_tab
URxvt.tabbed.no-tabbedex-keys: true ! URxvt.tabbed.no-tabbedex-keys: true

View File

@ -16,17 +16,20 @@ bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Config Reloaded"
# session/client # session/client
bind q detach-client bind q detach-client
bind l list-sessions bind l list-sessions
set -g destroy-unattached off
# window creation # window creation
bind n new-window bind -n C-t new-window
bind N command-prompt -I "#{window_name}" "rename-window '%%'" bind N command-prompt -I "#{window_name}" "rename-window '%%'"
bind S command-prompt -I "#{session_name}" "rename-session '%%'" bind S command-prompt -I "#{session_name}" "rename-session '%%'"
bind - split-window -v bind - split-window -v
bind | split-window -h bind | split-window -h
# window navigation # window navigation
bind -n M-Tab next-window bind -n C-] next-window
bind -n M-BTab previous-window bind -n C-[ previous-window
bind -n M-] swap-window -t +1 \; next-window
bind -n M-[ swap-window -t -1 \; previous-window
bind -n M-| choose-window "join-pane -h -t '%%'" bind -n M-| choose-window "join-pane -h -t '%%'"
bind -n M-- choose-window "join-pane -v -t '%%'" bind -n M-- choose-window "join-pane -v -t '%%'"

View File

@ -1,5 +1,8 @@
## User-specific Zsh config (on top of what is in /etc/zsh/zshrc) ## User-specific Zsh config (on top of what is in /etc/zsh/zshrc)
# turn off Ctrl-D so I don't accidently kill tmux
setopt ignore_eof
## -------------------------------------------------- ## --------------------------------------------------
# autocompletion # autocompletion
## -------------------------------------------------- ## --------------------------------------------------