]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Feat: adds xnm-tray
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Jan 2022 13:34:44 +0000 (10:34 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 Jan 2022 13:34:44 +0000 (10:34 -0300)
xnm-tray [new file with mode: 0755]

diff --git a/xnm-tray b/xnm-tray
new file mode 100755 (executable)
index 0000000..6eec120
--- /dev/null
+++ b/xnm-tray
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# Start nm-tray if on laptop boxes.
+#
+
+if laptop-detect; then
+  if which nm-tray &> /dev/null; then
+    # Sleep a while until a tray should be available
+    sleep 5
+
+    # Then start nm-tray with a fix
+    # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983536
+    XDG_CURRENT_DESKTOP=GNOME nm-tray
+  fi
+fi