Set alacritty to default terminal
and set trayer monitor to primary
This commit is contained in:
parent
2d7c386aa3
commit
8dc4d2fbb3
|
@ -11,16 +11,6 @@ import XMonad.Util.EZConfig(additionalKeys)
|
||||||
--import XMonad.Util.SpawnOnce
|
--import XMonad.Util.SpawnOnce
|
||||||
import System.IO
|
import System.IO
|
||||||
|
|
||||||
-- Provide transparent widows for xmonad
|
|
||||||
setTransparentHook :: Event -> X All
|
|
||||||
setTransparentHook ConfigureEvent{ev_event_type = createNotify, ev_window = id} = do
|
|
||||||
setOpacity id opacity
|
|
||||||
return (All True) where
|
|
||||||
opacityFloat = 0.9
|
|
||||||
opacity = floor $ fromIntegral (maxBound :: Word32) * opacityFloat
|
|
||||||
setOpacity id op = spawn $ "xprop -id " ++ show id ++ " -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY " ++ show op
|
|
||||||
setTransparentHook _ = return (All True)
|
|
||||||
|
|
||||||
main = do
|
main = do
|
||||||
-- Make sure that HDMI is turned off by default
|
-- Make sure that HDMI is turned off by default
|
||||||
spawn "xrandr --output HDMI1 --off"
|
spawn "xrandr --output HDMI1 --off"
|
||||||
|
@ -31,8 +21,7 @@ main = do
|
||||||
-- Launch xmobar as my task bar.
|
-- Launch xmobar as my task bar.
|
||||||
xmproc <- spawnPipe "xmobar /home/craige/.xmobarrc"
|
xmproc <- spawnPipe "xmobar /home/craige/.xmobarrc"
|
||||||
-- Launch the system tray
|
-- Launch the system tray
|
||||||
spawn "trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand false --width 5 --transparent true --alpha 0 --tint 0x073642 --height 20 --monitor 0"
|
spawn "trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand false --width 5 --transparent true --alpha 0 --tint 0x073642 --height 20 --monitor primary"
|
||||||
--xmproc <- spawnPipe "notification-daemon"
|
|
||||||
-- Launch the settings daemon
|
-- Launch the settings daemon
|
||||||
spawn "xsettingsd"
|
spawn "xsettingsd"
|
||||||
-- Launch the screen saver
|
-- Launch the screen saver
|
||||||
|
@ -45,10 +34,9 @@ main = do
|
||||||
spawn "feh --bg-scale ~/Documents/Images/Posters/FuegoMilkyWay.jpg"
|
spawn "feh --bg-scale ~/Documents/Images/Posters/FuegoMilkyWay.jpg"
|
||||||
spawn "lxqt-notificationd"
|
spawn "lxqt-notificationd"
|
||||||
xmonad $ desktopConfig
|
xmonad $ desktopConfig
|
||||||
{ handleEventHook = setTransparentHook <+> handleEventHook def
|
{ focusFollowsMouse = False
|
||||||
, focusFollowsMouse = False
|
, terminal = "alacritty"
|
||||||
, terminal = "termonad"
|
, manageHook = manageDocks <+> manageHook desktopConfig
|
||||||
-- , manageHook = manageDocks <+> manageHook desktopConfig
|
|
||||||
, layoutHook = avoidStruts $ layoutHook desktopConfig
|
, layoutHook = avoidStruts $ layoutHook desktopConfig
|
||||||
, logHook = dynamicLogWithPP $ xmobarPP
|
, logHook = dynamicLogWithPP $ xmobarPP
|
||||||
{ ppOutput = hPutStrLn xmproc
|
{ ppOutput = hPutStrLn xmproc
|
||||||
|
|
Loading…
Reference in a new issue