-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconky_dzen
46 lines (44 loc) · 1.87 KB
/
conky_dzen
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
# Author: Wasif Malik ([email protected])
out_to_console
update_interval 1.0
short_units true
if_up_strictness link
cpu_avg_samples 4
border_outer_margin 20
border_inner_margin 20
gap_y 40
TEXT
\
^fg(DarkGray)${wireless_essid wlp4s0} [${wireless_freq wlp4s0}]^fg()\
^ca(1, pavucontrol)${exec pulsemixer --list-sinks | grep Sink: | grep Default | awk -F, '{print $2}' | awk -F: '{print $2}'}^ca()\
${if_match ${exec pulsemixer --get-mute} > 0}\
^ca(1, pulsemixer --toggle-mute)M^ca() ^ca(1, pavucontrol)${exec pulsemixer --get-volume | awk '{print $1}' | dzen2-gdbar -fg red -h 12 -w 80 -s o}^ca() \
${else}\
^ca(1, pulsemixer --toggle-mute)♫^ca() ^ca(1, pavucontrol)${exec pulsemixer --get-volume | awk '{print $1}' | dzen2-gdbar -fg purple -h 12 -w 80 -s o}^ca() \
${endif}\
${if_mounted /media/raaz} Mounted /mnt/raaz ${endif}\
${if_match ${new_mails /var/mail/arthur 60} > 1}^bg(Orange)^fg(black) Mail ^bg()^fg()${endif}\
${if_mounted /mnt}\
^fg(Orange)Mounted /mnt ^fg() \
${endif}\
^bg(Dark Slate Gray)\
^bg() \
${if_running transmission-gt}^bg(Saddle Brown)^fg(white) Torrents ${endif}\
(${exec setxkbmap -query | grep layout | awk '{print $2}'}) \
^ca(1, urxvt -fn xft:In consolata:size=30 -e cal -A 3)^bg(black)^fg(Dark Gray) ${time %a %F W%V} ^fg(white)${time %R}^fg()^ca()\
${if_match ${battery_percent BAT0} < 50} \
${exec acpitool --battery | grep Rema | awk '{print $6}' | dzen2-gdbar -w 25 -fg red -bg white -h 10 -s o} \
${else} \
${exec acpitool --battery | grep Rema | awk '{print $6}' | dzen2-gdbar -w 25 -fg green -bg white -h 10 -s o} \
${endif}\
${if_match "${exec acpitool --battery | grep Charging | awk '{print $4}'}" == "Discharging"}\
${else}\
${if_match "${exec acpitool --battery | grep Charging | awk '{print $4}'}" == "Full"}\
^fg(Green)⚡^fg()\
${else}\
^fg(Yellow)⚡^fg()\
${endif}\
${endif}\
^ca(1, urxvt -e vim -p ~/.xmonad/xmonad.hs ~/.xmonad/conky_dzen*)\
⚙\
^ca()\