forked from pub-solar/os
xmonad: use picom to distinguish active window
This commit is contained in:
parent
3d444c672e
commit
bbdd967095
|
@ -41,7 +41,7 @@ main =
|
|||
, manageHook = myManageHook
|
||||
<+> manageHook defaultConfig
|
||||
<+> manageDocks
|
||||
, borderWidth = 1
|
||||
, borderWidth = 0
|
||||
, logHook = takeTopFocus
|
||||
}
|
||||
`additionalKeys` myKeys
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}}
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue