power menu, redshift, polybar
This commit is contained in:
13
.config/polybar/scripts/updates-apt/README.md
Normal file
13
.config/polybar/scripts/updates-apt/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Script: updates-apt
|
||||
|
||||
A script that shows if there are updates available through the apt package manager on Ubuntu and Debian-based systems.
|
||||
|
||||
|
||||
## Module
|
||||
|
||||
```ini
|
||||
[module/updates-apt]
|
||||
type = custom/script
|
||||
exec = ~/polybar-scripts/updates-apt.sh
|
||||
interval = 600
|
||||
```
|
||||
9
.config/polybar/scripts/updates-apt/updates-apt.sh
Normal file
9
.config/polybar/scripts/updates-apt/updates-apt.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
updates=$(apt list --upgradable 2> /dev/null | grep -c upgradable);
|
||||
|
||||
if [ "$updates" -gt 0 ]; then
|
||||
echo "# $updates"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
Reference in New Issue
Block a user