diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-07-03 10:54:50 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-07-03 10:54:50 -0400 |
| commit | 542c50579637b43915a744d358747b9bed0d3867 (patch) | |
| tree | e6ca94d4205f91ea7c6b96158d1fcf26ddd2fc18 /.scripts | |
| parent | 4ef3772537a37e079c42dd026824bbb8d3100243 (diff) | |
| download | eibhear-542c50579637b43915a744d358747b9bed0d3867.tar.gz eibhear-542c50579637b43915a744d358747b9bed0d3867.tar.zst eibhear-542c50579637b43915a744d358747b9bed0d3867.zip | |
i3blocks changes, pacman module added
Diffstat (limited to '.scripts')
| -rwxr-xr-x | .scripts/i3pacman | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.scripts/i3pacman b/.scripts/i3pacman new file mode 100755 index 0000000..02f7136 --- /dev/null +++ b/.scripts/i3pacman @@ -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" |
