i3blocks changes, pacman module added
This commit is contained in:
8
.scripts/i3pacman
Executable file
8
.scripts/i3pacman
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
case $BLOCK_BUTTON in
|
||||
1) $TERMINAL -e sudo pacman -Syu && pacman -Qu | wc -l > ~/.larbs/.pacupgrade && pkill -RTMIN+8 i3blocks ;;
|
||||
esac
|
||||
|
||||
pacman -Qu | wc -l | sed -e '/^0$/d' > ~/.larbs/.pacupgrade && pkill -RTMIN+8 i3blocks
|
||||
|
||||
cat ~/.larbs/.pacupgrade | sed -e "/^$/d;s/^/📦 /g"
|
||||
Reference in New Issue
Block a user