updates
This commit is contained in:
+6
-5
@@ -15,8 +15,8 @@ set -g bell-action none
|
||||
setw -g mode-keys vi
|
||||
|
||||
# mouse control (clickable windows, panes, resizable panes)
|
||||
setw -g mouse on
|
||||
set -g mouse on
|
||||
setw -g mouse off
|
||||
set -g mouse off
|
||||
|
||||
# clipboard control
|
||||
set -g set-clipboard on
|
||||
@@ -62,7 +62,7 @@ bind ø command-prompt
|
||||
#bind \ show-messages
|
||||
|
||||
# Copy mode
|
||||
bind v copy-mode
|
||||
bind c copy-mode
|
||||
|
||||
# clipboard control
|
||||
bind p paste-buffer
|
||||
@@ -93,8 +93,8 @@ bind -r j resize-pane -D 2 \; display-message "Resize down"
|
||||
bind -n M-o resize-pane -Z
|
||||
|
||||
# split panes using | and -, make sure they open in the same path
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
bind - split-window -v -c "#{pane_current_path}"
|
||||
bind v split-window -h -c "#{pane_current_path}"
|
||||
bind s split-window -v -c "#{pane_current_path}"
|
||||
bind § split-window -fh -c "#{pane_current_path}"
|
||||
bind _ split-window -fv -c "#{pane_current_path}"
|
||||
|
||||
@@ -173,6 +173,7 @@ set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
set -g @plugin 'sainnhe/tmux-fzf'
|
||||
# note: fzf bound to 'F'
|
||||
#set -g @plugin 'odedlaz/tmux-onedark-theme'
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
RESOLUTION=$(xrandr -q|sed -n 's/.*current[ ]\([0-9]*\) x \([0-9]*\),.*/\1x\2/p')
|
||||
|
||||
# lock the screen
|
||||
import -silent -window root jpeg:- | convert - -scale 20% -blur 0x2.5 -resize 500% RGB:- | \
|
||||
i3lock --raw $RESOLUTION:rgb -i /dev/stdin -e $@
|
||||
|
||||
# sleep 1 adds a small delay to prevent possible race conditions with suspend
|
||||
sleep 1
|
||||
|
||||
xset dpms force off
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user