aboutsummaryrefslogtreecommitdiff
path: root/xnm-tray
blob: 42af5c9aa31ff73f18f8611855d9a0d1bb25c1ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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
    #
    # Check https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
    #       https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983536
    #XDG_CURRENT_DESKTOP="GNOME" nm-tray
    QT_QPA_PLATFORMTHEME="gnome" nm-tray
  fi
fi