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,13 @@
# Script: updates-flatpak
A script that shows if there are updates for FlatPak.
## Module
```ini
[module/updates-flatpak]
type = custom/script
exec = ~/polybar-scripts/updates-flatpak.sh
interval = 600
```

View File

@@ -0,0 +1,9 @@
#!/bin/sh
updates=$(flatpak update 2>/dev/null | tail -n +5 | grep -Ecv "^$|^Proceed|^Nothing")
if [ "$updates" -gt 0 ]; then
echo "flatpak: $updates"
else
echo ""
fi