summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorAdam <adam.moloney.stuck@gmail.com>2022-05-17 17:19:52 +0200
committeradamstuck <adam.moloney.stuck@gmail.com>2022-05-18 09:27:21 +0200
commit5822f9eb04370903907cba4829a20e7fdbe41946 (patch)
treea0438d4446d9669308c49e6050b5eca80f2b99a1 /.local/bin
parent78446cb1bc33d39f083c615c69e2e7236be20337 (diff)
i3: reload instead of restart, picom toggle
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/picom-toggle8
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/picom-toggle b/.local/bin/picom-toggle
new file mode 100755
index 0000000..c579fc7
--- /dev/null
+++ b/.local/bin/picom-toggle
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if pgrep -x "picom" > /dev/null
+then
+ killall picom
+else
+ picom -b --config $HOME/.config/picom/picom.conf
+fi