diff options
| -rw-r--r-- | .gitignore | 7 | ||||
| -rwxr-xr-x | scripts/system/lock.sh (renamed from .i3lock/lock.sh) | 0 | ||||
| -rwxr-xr-x | scripts/system/on-wm-logout.sh | 8 | ||||
| -rwxr-xr-x | scripts/system/on-wm-session.sh | 4 |
4 files changed, 12 insertions, 7 deletions
@@ -21,6 +21,8 @@ bin/* !bin/ramwolf !scripts +scripts/system/lockscreen.png +scripts/system/suspend-history !.local/ .local/* @@ -62,11 +64,6 @@ bin/* .config/trminator/* !.config/terminator/config - -!.i3lock/ -.i3lock/* -!.i3lock/lock.sh - !.moc/ .moc/* !.moc/config diff --git a/.i3lock/lock.sh b/scripts/system/lock.sh index e226b20..e226b20 100755 --- a/.i3lock/lock.sh +++ b/scripts/system/lock.sh diff --git a/scripts/system/on-wm-logout.sh b/scripts/system/on-wm-logout.sh new file mode 100755 index 0000000..90ebab2 --- /dev/null +++ b/scripts/system/on-wm-logout.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Gracefully close certain programs +grace=(brave) + +for $app in $grace; do + timeout 5 pkill -TERM $app +done diff --git a/scripts/system/on-wm-session.sh b/scripts/system/on-wm-session.sh index 85b7999..e35f4a5 100755 --- a/scripts/system/on-wm-session.sh +++ b/scripts/system/on-wm-session.sh @@ -10,7 +10,7 @@ sleep 1 && /usr/libexec/polkit-gnome-authentication-agent-1 & dunst & # notification daemon lxpolkit & # polkit -xautolock -detectsleep -secure -time 15 -locker ~/.i3lock/lock.sh & # auto lock screen +xautolock -detectsleep -secure -time 15 -locker ~/scripts/system/lock.sh & # auto lock screen tint2 & # taskbar picom & # compositor setxkbmap -layout "us,bg" -variant ",phonetic" -option "grp:alt_shift_toggle" & # keyboard switching @@ -20,7 +20,7 @@ if [[ $device == "desktop" ]]; then fi if [[ $device == "laptop" ]]; then - while :; do if grep -Fq "closed" /proc/acpi/button/lid/LID0/state; then ~/.i3lock/lock.sh suspend && sleep 3; fi; sleep 0.5; done & # lock screen on lid closing; you'll also need to uncomment the HandleLidSwitch variable and assign to it "lock" (HandleLidSwitch=lock) inside /etc/systemd/logind.conf + while :; do if grep -Fq "closed" /proc/acpi/button/lid/LID0/state; then ~/scripts/system/lock.sh suspend && sleep 3; fi; sleep 0.5; done & # lock screen on lid closing; you'll also need to uncomment the HandleLidSwitch variable and assign to it "lock" (HandleLidSwitch=lock) inside /etc/systemd/logind.conf libinput-gestures-setup start & # start gestures blueberry & # bluetooth app fi |
