aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-01-09 10:34:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-01-09 10:34:44 -0300
commitbee0808708523cda284040a612e7d896deff6f60 (patch)
tree454b2b6bd8e4cf9899397461a43c935d957026f3
parent463f79cee55f0b7a47c658409fc60c59c240ed7f (diff)
downloadutils-x11-bee0808708523cda284040a612e7d896deff6f60.tar.gz
utils-x11-bee0808708523cda284040a612e7d896deff6f60.tar.bz2
Feat: adds xnm-tray
-rwxr-xr-xxnm-tray15
1 files changed, 15 insertions, 0 deletions
diff --git a/xnm-tray b/xnm-tray
new file mode 100755
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