summaryrefslogtreecommitdiff
path: root/.local/bin/picom-toggle
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-17 17:19:52 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-17 17:19:52 +0200
commite1a974ca85945ca4db645024b745d8871ddd1344 (patch)
treebe69213654a24f9ee81f1fec4388f288984f080a /.local/bin/picom-toggle
parent9f26ea26b50c33ccb5366d334132f42ffa03c73b (diff)
i3: reload instead of restart, picom toggle
Diffstat (limited to '.local/bin/picom-toggle')
-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