From 42d720cac23c10a3a648127e8ff5bfcf7070078a Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Thu, 13 May 2021 10:35:35 +1000 Subject: [PATCH] xmonad: switched to picom --- profiles/picom.nix | 19 +++++++++++++++++++ profiles/xmonad.nix | 5 ++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 profiles/picom.nix diff --git a/profiles/picom.nix b/profiles/picom.nix new file mode 100644 index 0000000..0a595be --- /dev/null +++ b/profiles/picom.nix @@ -0,0 +1,19 @@ +# Configuration for the Picom Compositor + +{ config, ... }: + +{ + + services = { + picom = { + enable = true; + backend = "glx"; + fade = true; + inactiveOpacity = 0.8; + menuOpacity = 0.8; + opacityRules = [ "100:class_g = 'XScreenSaver'" ]; + settings = { use-ewmh-active-win = true; }; + vSync = true; + }; + }; +} diff --git a/profiles/xmonad.nix b/profiles/xmonad.nix index 1d8a484..ba32649 100644 --- a/profiles/xmonad.nix +++ b/profiles/xmonad.nix @@ -4,6 +4,10 @@ { + imports = [ + ../profiles/picom.nix + ]; + services = { devmon.enable = true; # Enable external device automounting. udev = { @@ -66,7 +70,6 @@ trayer # A system tray for use with xmonad xbrightness # X11 brigthness and gamma software control xflux # Adjusts your screen to emit warmer light at night - xcompmgr # X composting manager xorg.xrandr # CLI to X11 RandR extension xscreensaver # My preferred screensaver xsettingsd # A lightweight desktop settings server