lemonbar: Restructure and prettify lemonbar config file
This commit is contained in:
@@ -1,22 +1,15 @@
|
||||
import subprocess
|
||||
import getpass
|
||||
|
||||
# File locations
|
||||
pid_file = '/tmp/i3_lemonbar_launcher.pid'
|
||||
fifo_file_status = '/tmp/i3_lemonbar1_{}'.format(getpass.getuser())
|
||||
fifo_file_executor = '/tmp/i3_lemonbar2_{}'.format(getpass.getuser())
|
||||
fifo_screen_log = '/tmp/i3_screen_{}'.format(getpass.getuser())
|
||||
health_file = '/tmp/i3_lemonbar_health.info'
|
||||
|
||||
path="/home/kuba/.i3/lemonbar/"
|
||||
logpath="/home/kuba/lemonbar.log" # Write here on exceptions
|
||||
geometry="x24"
|
||||
#font="xos4 Terminess Powerline:pixelsize=12:style=Bold"
|
||||
#iconfont="-misc-font awesome 5 free-medium-r-normal--0-0-0-0-p-0-iso10646-1"
|
||||
fonts = ["Hack:pixelsize=12" #":style=Bold"
|
||||
,"Font Awesome 5 Free Solid:pixelsize=16"
|
||||
,"Font Awesome 5 Brands:pixelsize=16"]
|
||||
|
||||
cpu_alert = 75
|
||||
net_alert = 5
|
||||
|
||||
# color definitions
|
||||
color_back = "#FF1D1F21" # Default background
|
||||
@@ -34,12 +27,23 @@ color_net="#FF5E8D87" # Background color for net alert
|
||||
color_disable = "#FF1D1F21" # Foreground for disable elements
|
||||
color_wsp = "#FF8C9440" # Background for selected workspace
|
||||
|
||||
# Lemonbar settings
|
||||
geometry="x24"
|
||||
fonts = ["Hack:pixelsize=12" #":style=Bold"
|
||||
,"Font Awesome 5 Free Solid:pixelsize=16"
|
||||
,"Font Awesome 5 Brands:pixelsize=16"]
|
||||
|
||||
lemonbar_args = ['lemonbar', '-p', '-g', geometry, '-B', color_back
|
||||
, '-F', color_fore, '-a' '20']
|
||||
|
||||
for font in fonts:
|
||||
lemonbar_args.append('-f')
|
||||
lemonbar_args.append(font)
|
||||
|
||||
# Misc. settings
|
||||
cpu_alert = 75
|
||||
net_alert = 5
|
||||
|
||||
#default space between sections
|
||||
#if [ ${res_w} -gt 1024 ]; then
|
||||
# stab=' '
|
||||
@@ -47,7 +51,7 @@ for font in fonts:
|
||||
# stab=' '
|
||||
#fi
|
||||
|
||||
# Char glyps for powerline fonts
|
||||
# Icon definitions
|
||||
sep_left = "" # Powerline separator left alt.
|
||||
sep_right = " " # Powerline separator right
|
||||
sep_l_left = " " # Powerline light separator left
|
||||
@@ -55,7 +59,7 @@ sep_l_right=" " # Powerline light sepatator right
|
||||
|
||||
# Icon glyphs from Terminusicons2
|
||||
icon_clock = "" # Clock icon
|
||||
icon_cpu=""# " # CPU icon alt.
|
||||
icon_cpu = "" # CPU icon
|
||||
icon_mem = "" # MEM icon
|
||||
icon_dl = "" # Download icon
|
||||
icon_ul = "" # Upload icon
|
||||
@@ -76,8 +80,8 @@ icon_lang=""
|
||||
icon_keyset = ""
|
||||
icon_bright = ""
|
||||
icon_brightness = '☼'
|
||||
icon_charged=" " #alt.
|
||||
icon_charging="" #alt.
|
||||
icon_charged = ""
|
||||
icon_charging = ""
|
||||
icon_batt_0 = ""
|
||||
icon_batt_1 = ""
|
||||
icon_batt_2 = ""
|
||||
|
||||
Reference in New Issue
Block a user