Polished startup hook a bit

This commit is contained in:
afonsofrancof 2022-10-30 17:35:17 +00:00
parent ce1ec206af
commit 70fec0952d

View file

@ -236,23 +236,20 @@ Percent of screen to increment by when resizing panes
\subsubsection{Startup Hook} \subsubsection{Startup Hook}
\begin{code} \begin{code}
myStartupHook = do myStartupHook = do
spawn "setxkbmap -layout us,pt" spawnOnce "setxkbmap -layout us,pt"
spawn "setxkbmap -option grp:win_space_toggle" spawnOnce "setxkbmap -option grp:win_space_toggle"
spawn "setxkbmap -option caps:escape" spawnOnce "setxkbmap -option caps:escape"
spawn "pasystray" spawnOnce "pasystray"
spawn ("killall trayer")
spawnOnce "nitrogen --restore &" spawnOnce "nitrogen --restore &"
spawnOnce "picom &" spawnOnce "picom &"
spawnOnce "optimus-manager-qt"
setWMName "LG3D" setWMName "LG3D"
spawnOnce "nm-applet" spawnOnce "nm-applet"
spawn "mailspring" spawnOnce "mailspring"
spawnOnce "qjackctl" spawnOnce "qjackctl"
spawn("xsetroot -cursor_name left_ptr") spawnOnce("xsetroot -cursor_name left_ptr")
spawn ("easyeffects --gapplication-service") spawn ("killall trayer && sleep 1 && trayer --edge top --align right --widthtype request --margin 6 --padding 4 --SetDockType true --SetPartialStrut true --iconspacing 12 --expand true --monitor 0 --transparent true --alpha 0 " ++ colorTrayer ++ " --height 22 --distance 58 --distancefrom right")
spawnOnce "optimus-manager-qt" spawnOn "web" myWebBrowser
spawn ("sleep 2 && trayer --edge top --align right --widthtype request --margin 7 --padding 6 --SetDockType true --SetPartialStrut true --iconspacing 6 --expand true --monitor 0 --transparent true --alpha 0 " ++ colorTrayer ++ " --height 24 --distance 50 --distancefrom right")
spawn ("albert")
spawnOn "web" "firefox"
spawnOn "main" myTerminal spawnOn "main" myTerminal
\end{code} \end{code}