power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
# Script: isrunning-compton
A simple script that allows you to toggle compton and shows if it is running.
## Module
```ini
[module/isrunning-compton]
type = custom/script
exec = ~/polybar-scripts/isrunning-compton.sh
interval = 5
click-left = ~/polybar-scripts/isrunning-compton.sh --toggle &
```

View File

@@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
--toggle)
if [ "$(pgrep -x compton)" ]; then
pkill compton
else
compton -b --config ~/.config/compton/config
fi
;;
*)
if [ "$(pgrep -x compton)" ]; then
echo "#1"
else
echo "#2"
fi
;;
esac