From ef3defb8a4c9be90733fedb09dcc804e12ef1d32 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 24 Jul 2023 13:46:40 +0300 Subject: [PATCH] add trayer script? --- config/xmonad/scripts/trayer.sh | 13 +++++++++++++ config/xmonad/xmonad.hs | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 config/xmonad/scripts/trayer.sh diff --git a/config/xmonad/scripts/trayer.sh b/config/xmonad/scripts/trayer.sh new file mode 100755 index 00000000..3aeb5e69 --- /dev/null +++ b/config/xmonad/scripts/trayer.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +sleep 1 && killall trayer +trayer \ + --edge bottom \ + --align right \ + --SetDockType true \ + --SetPartialStrut true \ + --height 30 \ + --transparent true \ + --alpha 0 \ + --tint #000000 \ + --widthtype request diff --git a/config/xmonad/xmonad.hs b/config/xmonad/xmonad.hs index 4192ef42..7060eaf0 100644 --- a/config/xmonad/xmonad.hs +++ b/config/xmonad/xmonad.hs @@ -257,7 +257,7 @@ myLogHook h = dynamicLogWithPP $ def { ppOutput = hPutStrLn h } -- By default, do nothing. myStartupHook = do spawnOnce "keepassxc" - spawn "trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --height 30 --transparent true --alpha 0 --tint #000000 --widthtype request" + spawn "/home/sako/.config/xmonad/scripts/trayer.sh" ------------------------------------------------------------------------ -- Now run xmonad with all the defaults we set up.