various config options updated; tmux to M-S instead of C-M

This commit is contained in:
Wryn (yage) Wagner 2023-01-17 12:18:58 -07:00
parent f121122c56
commit b6b7736474
7 changed files with 52 additions and 42 deletions

View File

@ -19,7 +19,8 @@ DEVICE="$1"
COMMAND="$2"
case $DEVICE in
sink | source ) ;;
sink ) AMIXER_DEVICE=Master ;;
source ) AMIXER_DEVICE=Capture ;;
* ) ERROR 1 "Unsupported device '$DEVICE'" ;;
esac
@ -36,7 +37,7 @@ case $COMMAND in
mute )
pactl set-$DEVICE-mute $DEFAULT_DEVICE toggle
$DOTWRYN/bin/play-sound mute
notify-send "default $DEVICE" "$(amixer sget Master | grep -q '\[on\]' && echo unmuted || echo muted)"
notify-send "default $DEVICE" "$(amixer sget $AMIXER_DEVICE | grep -q '\[on\]' && echo unmuted || echo muted)"
;;
* ) ERROR "Unsupported command '$COMMAND'" ;;
esac

View File

@ -1,16 +1,18 @@
#!/bin/zsh
source ${0:a:h}/xorg.zsh
xrandr \
--output DP-3-1 \
--primary \
--auto \
--mode 1920x1080 \
--rotate normal \
--pos 0x0 \
--output eDP-1 \
--off \
;
MOBILE=1
ARGS=()
[[ $MOBILE -eq 1 ]] && {
ARGS+=(--output DP-3 --mode 1920x1080 --pos 0x0 --primary)
ARGS+=(--output eDP-1 --mode 1920x1200 --right-of DP-3)
} || {
ARGS+=(--output DP-3-1 --mode 1920x1080 --pos 0x0 --primary)
ARGS+=(--output eDP-1 --off)
}
xrandr ${ARGS[@]}
xset dpms 0 0 0 && xset s noblank && xset s off \
&& notify-send 'DPMS' 'disabled screen blank'

View File

@ -10,6 +10,8 @@ xrandr \
--pos 0x0 \
--output DP-3-1 \
--off \
--output DP-3 \
--off \
;
xset +dpms && xset s blank && xset s on \

View File

@ -1 +1 @@
christmas.conf
main.conf

View File

@ -29,22 +29,22 @@ set -g status-right "#(cat /sys/class/power_supply/BAT0/capacity)% | #[fg=magnet
# pane switch with vim-like controls
bind -n M-h select-pane -L
bind -n C-M-h send-keys C-b Left
bind -n M-H send-keys C-b Left
bind -n M-j select-pane -D
bind -n C-M-j send-keys C-b Down
bind -n M-J send-keys C-b Down
bind -n M-k select-pane -U
bind -n C-M-k send-keys C-b Up
bind -n M-K send-keys C-b Up
bind -n M-l select-pane -R
bind -n C-M-l send-keys C-b Right
bind -n M-L send-keys C-b Right
bind -n M-H resize-pane -L 2
bind -n C-Left send-keys C-b C-Left
bind -n M-J resize-pane -D 2
bind -n C-Down send-keys C-b C-Down
bind -n M-K resize-pane -U 2
bind -n C-Up send-keys C-b C-Up
bind -n M-L resize-pane -R 2
bind -n C-Right send-keys C-b C-Right
bind -n M-Left resize-pane -L 2
bind -n M-S-Left send-keys C-b C-Left
bind -n M-Down resize-pane -D 2
bind -n M-S-Down send-keys C-b C-Down
bind -n M-Up resize-pane -U 2
bind -n M-S-Up send-keys C-b C-Up
bind -n M-Right resize-pane -R 2
bind -n M-S-Right send-keys C-b C-Right
# alt tab for window shift
bind-key -n M-Tab next-window
@ -66,21 +66,22 @@ bind-key -n M-9 select-window -t 8
# new window and split pane quickly
bind-key -n M-Enter new-window
bind-key -n M-c send-keys C-b c
bind-key -n M-v split-window -v
bind-key -n C-M-v send-keys M-v
bind-key -n M-V send-keys M-v
bind-key -n M-b split-window -h
bind-key -n C-M-b send-keys M-b
bind-key -n M-B send-keys M-b
bind-key -n M-q killp
bind-key -n C-M-q send-keys M-q
bind-key -n M-Q send-keys M-q
bind-key -n M-z resize-pane -Z
bind-key -n C-M-z send-keys M-z
bind-key -n M-Z send-keys M-z
# nested session with meta-a
bind-key -n M-a send-prefix
# rena[M]e session
bind-key -n M-m command-prompt -I "#S" "rename-session '%%'"
bind-key -n C-M-m send-keys M-m
bind-key -n M-M send-keys M-m
# rename [w]indow
bind-key -n M-w command-prompt -I "#W" "rename-window '%%'"

View File

@ -20,9 +20,6 @@ nnoremap <Space> @q
" \q for `q:`
nnoremap <Leader>q q:
" \f for fold
nnoremap <Leader>f z
" \s previous selection command
nnoremap <Leader>s :'<,'>

View File

@ -63,6 +63,12 @@ let g:ale_linters = {
\ 'python' : ['pylint'],
\ 'go' : ['golint']
\}
let g:ale_fixers = {
\ 'javascript': ['prettier'],
\ 'typescript': ['prettier']
\}
let g:ale_lint_on_text_changed = 0
let g:ale_lint_on_insert_leave = 0
let g:ale_lint_on_save = 1
@ -70,6 +76,7 @@ let g:ale_sign_column_always = 1
nmap <Leader>ae <Plug>(ale_next)
nmap <Leader>ar <Plug>(ale_previous)
nmap <Leader>f <Plug>(ale_fix)
" }}}
" ---------------------------------------------------------------------