From f04f584842cbcb63fe34a7ecd5066f998cec6e7e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 23 Sep 2016 17:58:57 -0700 Subject: [PATCH] [Linux] Start nm-applet using systemd, not XMonad --- dotfiles/config/systemd/user/nm-applet.service | 10 ++++++++++ dotfiles/xmonad/xmonad.hs | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 dotfiles/config/systemd/user/nm-applet.service diff --git a/dotfiles/config/systemd/user/nm-applet.service b/dotfiles/config/systemd/user/nm-applet.service new file mode 100644 index 00000000..dd92cabc --- /dev/null +++ b/dotfiles/config/systemd/user/nm-applet.service @@ -0,0 +1,10 @@ +[Unit] +Description=NM Applet + +[Service] +Type=simple +ExecStart=/usr/bin/nm-applet --sm-disable +ExecStop=/usr/bin/pkill nm-applet + +[Install] +WantedBy=graphical.target diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 2c001703..b0945555 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -55,7 +55,6 @@ myLayoutHook = avoidStruts . smartSpacing 10 . noBorders myStartup = do spawn "taffybar" - spawn "nm-applet --sm-disable" spawn "xsetroot -solid black" -- TODO: Figure out how to set different backgrounds for different x -- monitors