From a576fc0630c4eed5263f29ab671b7f4a26f2a698 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 25 Jan 2019 21:43:01 +0100 Subject: Add stalonetray and nm-applet autostart on athena It took me more time than it should have to get stalonetray to display below all windows as a _widget_ on the desktop... --- gui/conf/xmonad.hs | 2 ++ gui/networkmanager.nix | 2 ++ gui/stalonetray.nix | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 gui/stalonetray.nix (limited to 'gui') diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs index ec8a7c6..da1859e 100644 --- a/gui/conf/xmonad.hs +++ b/gui/conf/xmonad.hs @@ -4,6 +4,7 @@ import qualified XMonad.StackSet as S import XMonad.Hooks.EwmhDesktops import XMonad.Hooks.ManageHelpers +import XMonad.Hooks.ManageDocks import XMonad.Hooks.InsertPosition import XMonad.Layout.Tabbed @@ -230,6 +231,7 @@ customLogHook = do main = do host <- fmap nodeName getSystemID xmonad $ ewmh + $ docks $ def { modMask = mod4Mask -- super key as modifier , borderWidth = 3 diff --git a/gui/networkmanager.nix b/gui/networkmanager.nix index daf3977..595bf48 100644 --- a/gui/networkmanager.nix +++ b/gui/networkmanager.nix @@ -6,6 +6,8 @@ networkmanagerapplet ]; + services.network-manager-applet.enable = true; + home.file.".config/networkmanager-dmenu/config.ini".text = '' [dmenu] dmenu_command = rofi diff --git a/gui/stalonetray.nix b/gui/stalonetray.nix new file mode 100644 index 0000000..ca3baaf --- /dev/null +++ b/gui/stalonetray.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: + +{ + services.stalonetray = { + enable = true; + + config = { + decorations = "none"; + icon_size = 48; + geometry = "5x1+10-10"; + transparent = false; + grow_gravity = "E"; + background = "#000000"; + dockapp_mode = "none"; + window_layer = "bottom"; + window_strut = "bottom"; + window_type = "dock"; + }; + }; +} -- cgit v1.2.3