From 64693b72a694151db3c59a75a022729e67708f26 Mon Sep 17 00:00:00 2001 From: Rudis Muiznieks Date: Wed, 16 Nov 2022 19:14:55 -0600 Subject: [PATCH] new wallpaper, added vnc status icon --- btop/btop.conf | 2 +- herbstluftwm/autostart | 2 +- herbstluftwm/panel.sh | 10 +++++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/btop/btop.conf b/btop/btop.conf index dab9282..2af5246 100644 --- a/btop/btop.conf +++ b/btop/btop.conf @@ -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" diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 5a02d31..d3d54d9 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -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 diff --git a/herbstluftwm/panel.sh b/herbstluftwm/panel.sh index 2660558..a2ea2ac 100755 --- a/herbstluftwm/panel.sh +++ b/herbstluftwm/panel.sh @@ -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() {