enable picom

This commit is contained in:
♥ Minnie ♥ 2023-07-10 07:15:32 +08:00
parent 299e28e2aa
commit 31f62964e0
3 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,9 @@
{ inputs, pkgs, ... }:
{
imports = [ ];
imports = [
./picom.nix
];
nixpkgs.overlays = [
(final: prev: {

View file

@ -0,0 +1,15 @@
{ ... }:
{
services.picom = {
enable = true;
shadow = true;
backend = "glx";
settings = {
corner-radius = 10;
rounded-corners-exclude = [
"window_type = 'dock'"
];
};
};
}

View file

@ -4,7 +4,10 @@
xrandr --output HDMI-A-0 --mode 1920x1080 --output DisplayPort-0 --mode 2560x1440 --right-of HDMI-A-0
# Apply our wallpaper
feh --bg-scale /etc/nixos/assets/chinatown.png
feh --bg-scale ~/dotfiles.nix/assets/chinatown.png
# Enable our compositor
picom -b
# Launch our window manager
exec xmonad