summaryrefslogtreecommitdiff
path: root/scripts/system/on-wm-logout.sh
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2022-07-19 11:51:30 +0300
committerSyndamia <kamen@syndamia.com>2022-07-19 11:51:30 +0300
commit64d438f07fd46bf0972aca66bf29045a2ce6e5b9 (patch)
treef96590be13a8c9bb0a64f3e737b6daa2e64d77be /scripts/system/on-wm-logout.sh
parent68429f7bd64fbb01c18984aaf51e081c6da9422b (diff)
downloaddotfiles-64d438f07fd46bf0972aca66bf29045a2ce6e5b9.tar
dotfiles-64d438f07fd46bf0972aca66bf29045a2ce6e5b9.tar.gz
dotfiles-64d438f07fd46bf0972aca66bf29045a2ce6e5b9.zip
Moved i3lock to scripts/system folder
Diffstat (limited to 'scripts/system/on-wm-logout.sh')
-rwxr-xr-xscripts/system/on-wm-logout.sh8
1 files changed, 8 insertions, 0 deletions
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