config

betoissues' dotfiles
git clone git://git.betoissues.com/config.git
Historial | Archivos | Refs | Submรณdulos | README

commit 1c9539de390df770557b7ead83d430d5a32d8422
parent 7fcf03d4ba93c4ad7989f162991187445502cd86
Autor: Alberto Castillo G <me@betoissues.com>
Date:   Sat,  8 Aug 2020 05:47:21 -0500

Improve polybar looks

Diffstat:
M.gitmodules | 3+++
Mpolybar/.config/polybar/config | 59++++++++++++++++++++++++++++++++++++++++++++---------------
Mpolybar/.config/polybar/gmail/launch.py | 3++-
Apolybar/.config/polybar/polystock | 1+
4 archivos modificado, 50 insercioness(+), 16 removidass(-)

diff --git a/.gitmodules b/.gitmodules @@ -1,3 +1,6 @@ [submodule "tmux/.config/tmux/plugins/tpm"] path = tmux/.config/tmux/plugins/tpm url = https://github.com/tmux-plugins/tpm +[submodule "polybar/.config/polybar/polystock"] + path = polybar/.config/polybar/polystock + url = git@github.com:zack-ashen/polystock.git diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config @@ -29,13 +29,13 @@ line-size = 2 padding = 1 module-margin = 1 -font-0 = "Fira Code Medium:size=10;1" -font-1 = "Material Design Icons:scale=1;size=10;1" -font-2 = "WenQuanYi Zen Hei Mono:size=10;1" -font-3 = "Noto Sans Symbols2:size=10;1" +font-0 = "Fira Code:style=Medium:size=10" +font-1 = "Symbols Nerd Font:size=12;0.9" +font-2 = "cryptocoins:size=12;0.9" +font-3 = "WenQuanYi Zen Hei Mono:size=10;1" modules-left = gmail spotify -modules-center = +modules-center = eth xrp aapl nio modules-right = network pulseaudio date tray-position = right @@ -60,7 +60,7 @@ layout-icon-1 = latam;la [module/gmail] type = custom/script -exec = ~/.config/polybar/gmail/launch.py -ns -c '#fb4934' -p 'โœ‰๏ธ' +exec = ~/.config/polybar/gmail/launch.py -ns -c '#fb4934' -p '๏ƒ ' tail = true format-underline = ${colors.dark-yellow} click-left = xdg-open https://mail.google.com @@ -76,16 +76,16 @@ type = internal/pulseaudio ; Default: true use-ui-max = true interval = 5 -label-muted = ๐Ÿ”‡ muted +label-muted = ๏‡ถ muted label-muted-foreground = #666 format-volume = <ramp-volume> <label-volume> format-volume-underline = ${colors.dark-yellow} format-muted-underline = ${colors.dark-red} ; Only applies if <ramp-volume> is used -ramp-volume-0 = ๐Ÿ”ˆ -ramp-volume-1 = ๐Ÿ”‰ -ramp-volume-2 = ๐Ÿ”Š +ramp-volume-0 = ๏€ฆ +ramp-volume-1 = ๏€ง +ramp-volume-2 = ๏€จ click-right = pavucontrol & [module/cpu] @@ -100,8 +100,8 @@ label = %percentage:2%% type = internal/memory interval = 2 format-prefix = "๐Ÿ— " -format-prefix-foreground = ${colors.foreground-alt} -format-underline = #4bffdc +format-prefix-foreground = ${colors.foreground} +format-underline = ${colors.dark-yellow} label = %percentage_used:2%% [module/network] @@ -110,16 +110,16 @@ interface = enp39s0 interval = 5.0 format-connected-underline = ${colors.dark-yellow} -label-connected = %upspeed% | %downspeed% +label-connected = ๏ƒฎ %upspeed% ๏ƒญ %downspeed% label-disconnected = โŽ not connected [module/spotify] type = custom/script interval = 1 -format-prefix = "๎ƒฌ " +format-prefix = "๏†ผ " format = <label> -exec = python ~/.config/polybar/spotify/spotify_status.py -f '{play_pause}{artist} - {song}' -p ',[paused] ' +exec = python ~/.config/polybar/spotify/spotify_status.py -f '{play_pause}{artist} - {song}' -p '[playing] ,[paused] ' format-underline = ${colors.dark-yellow} [module/date] @@ -206,6 +206,35 @@ label-charging = โšก %percentage%% label-discharging = %percentage%% label-full = " โ˜€ " +[module/eth] +type = custom/script +exec = ~/.config/polybar/polystock/polystock.py --customticker ETH-USD +tail = true +label = ๎™%output% +format-underline = #ffb52a + +[module/xrp] +type = custom/script +exec = ~/.config/polybar/polystock/polystock.py --customticker XRP-USD +tail = true +label = ๎„บ%output% +format-underline = #ffb52a + +[module/aapl] +type = custom/script +exec = ~/.config/polybar/polystock/polystock.py --customticker AAPL +tail = true +label = ๏Œ‚%output% +format-underline = #ffb52a + +[module/nio] +type = custom/script +exec = ~/.config/polybar/polystock/polystock.py --customticker NIO +tail = true +label = ๏˜Š%output% +format-underline = #ffb52a + + [settings] screenchange-reload = true diff --git a/polybar/.config/polybar/gmail/launch.py b/polybar/.config/polybar/gmail/launch.py @@ -57,6 +57,7 @@ while True: else: print_count(count_was, True) time.sleep(5) - except (ServerNotFoundError, OSError): + except (ServerNotFoundError, OSError) as e: + print(error_prefix + str(e), flush=True) print_count(count_was, True) time.sleep(5) diff --git a/polybar/.config/polybar/polystock b/polybar/.config/polybar/polystock @@ -0,0 +1 @@ +Subproject commit fbd644eeacbd6262e168598bfc162e0552faffaf