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 defaultConfig
<+> manageDocks
, borderWidth = 1
, borderWidth = 0
, logHook = takeTopFocus
}
`additionalKeys` myKeys

View file

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

View file

@ -14,5 +14,14 @@
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;
}

View file

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