xmonad: use picom to distinguish active window

This commit is contained in:
Timothy DeHerrera 2020-06-12 18:48:36 -06:00
parent 3d444c672e
commit bbdd967095
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
4 changed files with 13 additions and 3 deletions

View file

@ -41,7 +41,7 @@ main =
, manageHook = myManageHook , manageHook = myManageHook
<+> manageHook defaultConfig <+> manageHook defaultConfig
<+> manageDocks <+> manageDocks
, borderWidth = 1 , borderWidth = 0
, logHook = takeTopFocus , logHook = takeTopFocus
} }
`additionalKeys` myKeys `additionalKeys` myKeys

View file

@ -1,4 +1,4 @@
{ autostart, screenshots, touchtoggle, dzvol, stoggle }: '' { autostart, screenshots, touchtoggle, dzvol, pkgs, stoggle }: ''
-- Function for fullscreen toggle -- Function for fullscreen toggle
fullToggle :: X () fullToggle :: X ()
fullToggle = do fullToggle = do
@ -13,6 +13,7 @@
myAutostart :: X () myAutostart :: X ()
myAutostart = do myAutostart = do
spawn "${autostart}" spawn "${autostart}"
spawn "feh --bg-fill --no-fehbg ${pkgs.adapta-backgrounds}/share/backgrounds/adapta/tri-fadeno.jpg"
setWMName "LG3D" setWMName "LG3D"
sendMessage $ SetStruts [] [minBound .. maxBound] sendMessage $ SetStruts [] [minBound .. maxBound]
setDefaultCursor xC_left_ptr setDefaultCursor xC_left_ptr

View file

@ -14,5 +14,14 @@
config = import ./xmonad.hs.nix { inherit pkgs; }; config = import ./xmonad.hs.nix { inherit pkgs; };
}; };
services.picom = {
enable = true;
inactiveOpacity = "0.8";
settings = {
"unredir-if-possible" = true;
"focus-exclude" = "id = 0x2400001";
};
};
programs.slock.enable = true; programs.slock.enable = true;
} }

View file

@ -14,6 +14,6 @@ let
in '' in ''
${readFile ./_xmonad.hs} ${readFile ./_xmonad.hs}
${import ./_xmonad.nix { ${import ./_xmonad.nix {
inherit screenshots touchtoggle autostart dzvol stoggle; inherit screenshots touchtoggle autostart dzvol stoggle pkgs;
}} }}
'' ''