summaryrefslogtreecommitdiff
path: root/scripts/system/on-wm-logout.sh
diff options
context:
space:
mode:
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