home · contact · privacy
Minor fixes. master
authorChristian Heller <c.heller@plomlompom.de>
Sun, 23 Mar 2025 19:56:21 +0000 (20:56 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 23 Mar 2025 19:56:21 +0000 (20:56 +0100)
testing/aptmark/desktop
testing/home/t490s/.nonpath_bins/status.sh

index 294d76c9c648c4c98d34e650c7fc908ae0cee45e..191146fd4a9df19486746023b9e26bfecb98ad33 100644 (file)
@@ -7,6 +7,7 @@ pmount
 openssh-client
 # wayland usage essentials
 sway
 openssh-client
 # wayland usage essentials
 sway
+wl-clipboard
 # at a minimum sets env stuff without which sway won't start 
 dbus-user-session
 # for sound
 # at a minimum sets env stuff without which sway won't start 
 dbus-user-session
 # for sound
index b9975590ccfa23ebc07dd4b4cadd84e223282421..e353f694cd5f6f78206bac73efb9654194715df1 100755 (executable)
@@ -77,12 +77,16 @@ print_online() {
     }
     print_conn enp
     print_conn wlp 0
     }
     print_conn enp
     print_conn wlp 0
+    set +e
     STATUS_WIFI=$(nmcli -t -f IN-USE,SSID,SIGNAL dev wifi | grep '^\*:')
     STATUS_WIFI=$(nmcli -t -f IN-USE,SSID,SIGNAL dev wifi | grep '^\*:')
+    set -e
     if [ ! -z "${STATUS_WIFI}" ]; then
         SIGNAL=$(echo -n "${STATUS_WIFI}" | cut -d':' -f3)
         COLOR=$(color_at $SIGNAL "45:${COL_RED}_85:${COL_YELLOW}_100:${COL_GREEN}")
         print_bar_block " ${SIGNAL}" "${COLOR}" 0
         print_bar_block "% $(echo "${STATUS_WIFI}" | cut -d':' -f2)"
     if [ ! -z "${STATUS_WIFI}" ]; then
         SIGNAL=$(echo -n "${STATUS_WIFI}" | cut -d':' -f3)
         COLOR=$(color_at $SIGNAL "45:${COL_RED}_85:${COL_YELLOW}_100:${COL_GREEN}")
         print_bar_block " ${SIGNAL}" "${COLOR}" 0
         print_bar_block "% $(echo "${STATUS_WIFI}" | cut -d':' -f2)"
+    else
+        print_bar_block " "
     fi
 }
 
     fi
 }