update i3 with locking & xinitrc

This commit is contained in:
Tony Blyler 2021-08-31 10:25:53 -04:00
parent e04b3c0a2e
commit fc0dcc361e
2 changed files with 6 additions and 4 deletions

View file

@ -10,6 +10,9 @@ exec --no-startup-id dunst
exec --no-startup-id keepassxc exec --no-startup-id keepassxc
exec --no-startup-id nm-applet exec --no-startup-id nm-applet
exec --no-startup-id blueman-applet exec --no-startup-id blueman-applet
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
set $mod Mod4 set $mod Mod4
@ -27,10 +30,6 @@ bindsym --release Ctrl+Print exec scrot -e 'xclip -selection clipboard -in -t im
bindsym --release Shift+Print exec scrot -s ~/'Pictures/%Y-%m-%d-%H:%M:%S.png' bindsym --release Shift+Print exec scrot -s ~/'Pictures/%Y-%m-%d-%H:%M:%S.png'
bindsym --release Ctrl+Shift+Print exec scrot -s -e 'xclip -selection clipboard -in -t image/png $f' /tmp/scrot-tmp.png bindsym --release Ctrl+Shift+Print exec scrot -s -e 'xclip -selection clipboard -in -t image/png $f' /tmp/scrot-tmp.png
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -c 000000 --nofork
# Use pactl to adjust volume in PulseAudio. # Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status set $refresh_i3status killall -SIGUSR1 i3status
@ -44,6 +43,7 @@ bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous bindsym XF86AudioPrev exec playerctl previous
bindsym XF86Display exec arandr bindsym XF86Display exec arandr
bindsym $mod+Escape exec loginctl list-sessions | awk -v UID=$UID '$2 == UID{print $1}' | xargs loginctl lock-session
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod

2
home/.xinitrc Normal file
View file

@ -0,0 +1,2 @@
xrdb ~/.Xresources
exec i3