forked from mirekys/i3-lemonbar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathi3_lemonbar_conf.py
More file actions
54 lines (44 loc) · 2.29 KB
/
i3_lemonbar_conf.py
File metadata and controls
54 lines (44 loc) · 2.29 KB
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
51
52
53
#!/usr/bin/env python3
from XGetRes import XGetRes
pars = XGetRes()
# Appearance
#width = int(check_output("xrandr | grep current | awk '{print $8a}'", shell=True))
fg_battery_50 = pars.xgetres('color2')
fg_battery_25 = pars.xgetres('color3')
fg_battery_10 = pars.xgetres('color1')
bg_battery_0 = pars.xgetres('color1')
#color_head = # Background for first element "#FFB5BD68"
#color_sec_b1 = # Background for section 1 "#FF282A2E"
#color_sec_b2 = # Background for section 2 "#FF454A4F"
#color_sec_b3 = # Background for section 3 "#FF60676E"
#color_icon = # For icons "#FF979997"
#color_mail = # Background color for mail alert "#FFCE935F"
#color_chat = # Background color for chat alert "#FFCC6666"
#color_cpu = # Background color for cpu alert "#FF5F819D"
#color_net = # Background color for net alert "#FF5E8D87"
#color_disable = # Foreground for disable elements "#FF1D1F21"
#color_wsp = # Background for selected workspace "#FF8C9440"
# Device monitoring configuration
#snd_cha=check_output('amixer get Master | grep "Playback channels:" | awk "{if ($4 == '') {printf '%s: Playback', $3} else {printf "%s %s: Playback", $3, $4}}'')
# Monitoring intervals / alerts
#alert_cpu = int(pars.xgetres('bar.alert_cpu')) # % cpu use
#alert_net = int(pars.xgetres('bar.alert_net')) # K net use
#timer_default = int(pars.xgetres('bar.timer_default'))
#timer_mail = int(pars.getres('bar.timer_mail')) # Mail check update
#default space between sections
#stab = ' ' if width > 1024 else ' '
# Icon glyphs from Terminusicons2
icon_clock="Õ" # Clock icon
icon_cpu="Ï" # CPU icon
icon_mem="Þ" # MEM icon
icon_dl="Ð" # Download icon
icon_up="Ñ" # Upload icon
icon_vol="Ô" # Volume icon
icon_hd="À" # HD / icon
icon_home="Æ" # HD /home icon
icon_mail="Ó" # Mail icon
icon_chat="Ò" # IRC/Chat icon
icon_music="Î" # Music icon
icon_prog="Â" # Window icon
icon_contact="Á" # Contact icon
icon_wsp="É" # Workspace icon