]> gitweb.fluxo.info Git - rhatto/dotfiles/xsession.git/commitdiff
Feat: support for nm-tray
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Jan 2022 15:49:27 +0000 (12:49 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Jan 2022 15:49:27 +0000 (12:49 -0300)
xsessionrc.dot.link

index 4b7de2e6dc920e68ab5d685b517d4925804c238d..07cf2dbfc7734b0b09ad48646df2ee124b4775cc 100755 (executable)
@@ -7,7 +7,7 @@
 BACKGROUND=""
 
 # Session applications
-PROGRAMS="xconky"
+PROGRAMS="xconky nm-tray"
 
 # OS Version
 OSVERSION="`cut -d . -f 1 /etc/debian_version`"
@@ -96,7 +96,9 @@ export SSH_ASKPASS="/usr/lib/ssh/x11-ssh-askpass"
 
 # Start session applications
 for program in $PROGRAMS; do
-  $program &
+  if which $program &> /dev/null; then
+    $program &
+  fi
 done
 
 # Apply default keyboard configuration