i3blocks changes, pacman module added
This commit is contained in:
parent
4ef3772537
commit
542c505796
2 changed files with 16 additions and 2 deletions
|
@ -14,12 +14,17 @@ interval=once
|
||||||
align=left
|
align=left
|
||||||
signal=11
|
signal=11
|
||||||
|
|
||||||
|
[pacman]
|
||||||
|
command=i3pacman
|
||||||
|
interval=once
|
||||||
|
signal=8
|
||||||
|
|
||||||
[weather]
|
[weather]
|
||||||
command=i3weather
|
command=i3weather
|
||||||
interval=3600
|
interval=3600
|
||||||
|
|
||||||
[mail]
|
[mail]
|
||||||
label=📮
|
label=📬
|
||||||
command=i3mail
|
command=i3mail
|
||||||
interval=180
|
interval=180
|
||||||
align=left
|
align=left
|
||||||
|
@ -28,15 +33,16 @@ signal=12
|
||||||
[volume]
|
[volume]
|
||||||
interval=once
|
interval=once
|
||||||
command=i3volume
|
command=i3volume
|
||||||
markup=pango
|
|
||||||
signal=10
|
signal=10
|
||||||
|
|
||||||
[iface]
|
[iface]
|
||||||
|
label=🌐
|
||||||
#instance=wlan0
|
#instance=wlan0
|
||||||
color=#00FF00
|
color=#00FF00
|
||||||
interval=10
|
interval=10
|
||||||
|
|
||||||
[wifi]
|
[wifi]
|
||||||
|
label=📶
|
||||||
#instance=wlp3s0
|
#instance=wlp3s0
|
||||||
interval=10
|
interval=10
|
||||||
|
|
||||||
|
|
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"
|
Loading…
Reference in a new issue