new wallpaper, added vnc status icon

This commit is contained in:
Rudis Muiznieks 2022-11-16 19:14:55 -06:00
parent 997d1ac84a
commit 64693b72a6
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
3 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#? Config file for btop v. 1.2.9
#? Config file for btop v. 1.2.12
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"

View File

@ -18,7 +18,7 @@ fi
hc lock
hsetroot -solid "#1e1e2e"
feh --bg-fill ~/.config/herbstluftwm/wallpaper.jpg
feh --bg-fill ~/.config/herbstluftwm/wallpaper.png
xobpipe="$XDG_RUNTIME_DIR/xobpipe"
# theme

View File

@ -219,6 +219,8 @@ segment_network() {
local bticon
local nasavpn
local nasaicon
local vnc
local vncicon
# network device
net=$(ip route get 1.1.1.1 | grep -Po '(?<=dev\s)\w+' | cut -f1 -d ' ')
@ -250,9 +252,15 @@ segment_network() {
else
nasaicon="%{O3}${fgred}$fgend"
fi
vnc=$(docker ps --format "{{.Names}}" | grep novnc)
if [ -n "$vnc" ]; then
vncicon="%{O3}${fggreen}$fgend"
else
vncicon="%{O3}${fgred}$fgend"
fi
fi
segment_text="$bticon$nasaicon$neticon"
segment_text="$bticon$nasaicon$vncicon$neticon"
}
segment_memory() {