64 lines
2.8 KiB
Plaintext
64 lines
2.8 KiB
Plaintext
#!\bin\bash
|
|
# i3 panel config. Powerline style.
|
|
|
|
panel_fifo="/tmp/i3_lemonbar_${USER}"
|
|
geometry="x14"
|
|
font="-xos4-terminesspowerline-medium-r-normal--12-120-72-72-c-60-iso10646-1"
|
|
iconfont="-xos4-terminusicons2mono-medium-r-normal--12-120-72-72-m-60-iso8859-1"
|
|
iconfont2="-misc-fontawesome-medium-r-normal--0-0-0-0-p-0-iso10646-1"
|
|
res_w=$(xrandr -d :0 | grep "current" | awk '{print $8a}')
|
|
snd_cha=$(amixer get Master | grep "Playback channels:" | awk '{if ($4 == "") {printf "%s: Playback", $3} else {printf "%s %s: Playback", $3, $4}}')
|
|
|
|
# Alarm settings
|
|
cpu_alert=75 # % cpu use
|
|
net_alert=5 # K net use
|
|
|
|
# update setting, in seconds (conky update in i3_lemonbar_conky
|
|
upd_vol=3 # Volume update
|
|
upd_mail=300 # Mail check update
|
|
upd_mpd=5 # MPD song update
|
|
|
|
# color definitions
|
|
color_back="#1D1F21" # Default background
|
|
color_fore="#979997" # Default foreground
|
|
color_head="#5097E2" # Background for first element
|
|
color_sec_b1="#282A2E" # Background for section 1
|
|
color_sec_b2="#454A4F" # Background for section 2
|
|
color_sec_b3="#60676E" # Background for section 3
|
|
color_icon="#979997" # For icons
|
|
color_mail="#CE935F" # Background color for mail alert
|
|
color_chat="#CC6666" # Background color for chat alert
|
|
color_cpu="#C125C1" # Background color for cpu alert
|
|
color_net="#5E8D87" # Background color for net alert
|
|
color_disable="#1D1F21" # Foreground for disable elements
|
|
color_wsp="#3774B6" # Background for selected workspace
|
|
|
|
#default space between sections
|
|
if [ ${res_w} -gt 1024 ]; then
|
|
stab=' '
|
|
else
|
|
stab=' '
|
|
fi
|
|
|
|
# Char glyps for powerline fonts
|
|
sep_left="" # Powerline separator left
|
|
sep_right="" # Powerline separator right
|
|
sep_l_left="" # Powerline light separator left
|
|
sep_l_right="" # Powerline light sepatator right
|
|
|
|
# Icon glyphs from Terminusicons2
|
|
icon_clock="Õ" # Clock icon
|
|
icon_cpu="Ï" # CPU icon
|
|
icon_mem="Þ" # MEM icon
|
|
icon_dl="Ð" # Download icon
|
|
icon_ul="Ñ" # 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
|