arch pacman info (scrot) (+1 likes)
hokagemadura Jul 13, 2013 (info/dzen2)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #!/bin/bash
SLEEP=1
# Font
# FONT="Neep:pixelsize=9"
FONT="-artwiz-cure-medium-r-normal-*-10-*-*-*-*-*-*-*"
#FONT="Monaco:size=9"
# Colors
BG="#151515"
FG="#303030"
RED="#E84F4F"
GREEN="#B8D68C"
YELLOW="#E1AA5D"
BLUE="#7DC1CF"
MAGENTA="#9B64FB"
CYAN="#0088CC"
# Geometry
HEIGHT=20
WIDTH=20
X=0
Y=25
pacmanupdate() {
echo -n CORE: $(grep core ~/scripts/pacupdates | wc -l)
echo -n " - "
echo -n COMMUNITY: $(grep community ~/scripts/pacupdates | wc -l)
echo -n " - "
echo -n TESTING: $(grep testing ~/scripts/pacupdates | wc -l)
echo -n " - "
echo -n EXTRA: $(grep extra ~/scripts/pacupdates | wc -l)
}
count() {
echo -n $(pacman -Qu | wc -l)
}
while :; do
echo "^fg($RED)^ca(1,sh ~/scripts/pacmanupdater.sh)^ca(3,sh ~/scripts/pacinfo.sh) PACMAN \
^fg($FG) | \
^fg($GREEN)$(count) ^ca()^ca()"
done | dzen2 -p -ta r -bg $BG -x $X -y $Y -h $HEIGHT -expand r -fn $FONT -e 'onstart=uncollapse;key_Escape=ungrabkeys,exit'
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #!/bin/bash
SLEEP=1
# Font
FONT="-artwiz-cure-medium-r-normal-*-10-*-*-*-*-*-*-*"
# Colors
BG="#151515"
FG="#303030"
RED="#E84F4F"
GREEN="#B8D68C"
YELLOW="#E1AA5D"
BLUE="#7DC1CF"
MAGENTA="#9B64FB"
CYAN="#0088CC"
# Geometry
HEIGHT=20
WIDTH=20
X=3
Y=48
while :; do
echo "^fg($RED) CORE ^fg($CYAN)^pa(100)$(grep core ~/scripts/pacupdates | wc -l)
^fg($RED) COMMUNITY ^fg($CYAN)^pa(100)$(grep community ~/scripts/pacupdates | wc -l)
^fg($RED) EXTRA ^fg($CYAN)^pa(100)$(grep extra ~/scripts/pacupdates | wc -l) ^pa(117)
^fg($RED) TESTING ^fg($CYAN)^pa(100)$(grep testing ~/scripts/pacupdates | wc -l) ^pa(117)
^fg($RED) MULTILIB ^fg($CYAN)^pa(100)$(grep multilib ~/scripts/pacupdates | wc -l) ^pa(117)
^ro(119x20)^ib(2)^fg($BLUE)^pa(2)SIHOMOK KEREN GA??"
done | dzen2 -p -bg $BG -fg $YELLOW -y $Y -x $X -fn $FONT -l 5 -w 119 -ta l -e "onstart=uncollapse;button3=exit"
|
x
Notes
left click >> update pacman database
right click >> show pacman update info