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-offlineimap
A script that shows if offlineimap is running. The scripts require you to have setup offlineimap yourself.
## Module
```ini
[module/offlineimap-isrunning]
type = custom/script
exec = ~/polybar-scripts/offlineimap-isrunning.sh
interval = 5
click-left = ~/polybar-scripts/offlineimap-isrunning.sh --toggle &
```

View File

@@ -0,0 +1,18 @@
#!/bin/sh
case "$1" in
--toggle)
if [ "$(pgrep offlineimap)" ]; then
pkill -f offlineimap
else
nohup offlineimap > /tmp/offlineimap.log &
fi
;;
*)
if [ "$(pgrep offlineimap)" ]; then
echo "#1 Online"
else
echo "#2 Offline"
fi
;;
esac