summaryrefslogtreecommitdiff
path: root/archive
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-08-26 21:12:01 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-08-26 21:12:01 -0700
commitede9c7289b0d0a4706cea5a17d2af2169e0e02dc (patch)
tree0689d5655aa380bc2d1e257dc0fc4c0906c6335c /archive
parentc032779d2e6e7c45906cffede68b7080c9977052 (diff)
downloaddotfiles-ede9c7289b0d0a4706cea5a17d2af2169e0e02dc.tar.gz
go back to caffeine-indicator
My script just doesn't seem to work.
Diffstat (limited to 'archive')
-rwxr-xr-xarchive/bin/i3-caffeinate6
1 files changed, 6 insertions, 0 deletions
diff --git a/archive/bin/i3-caffeinate b/archive/bin/i3-caffeinate
new file mode 100755
index 00000000..bfb4308f
--- /dev/null
+++ b/archive/bin/i3-caffeinate
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+systemd-inhibit --what=idle:sleep:handle-lid-switch \
+ --who=i3-caffeinate --why="User request" --mode=block \
+ i3-nagbar --type warning \
+ --message "system is caffeinated"