nixos-config/home-manager/modules/picom/default.nix

79 lines
1.7 KiB
Nix
Raw Normal View History

2024-02-05 11:46:52 +01:00
{ config, lib, ... }:
with lib;
let
2022-11-11 11:54:21 +01:00
cfg = config.eboskma.programs.picom;
in
{
2024-02-05 11:46:52 +01:00
options.eboskma.programs.picom = {
enable = mkEnableOption "activate picom";
};
2022-11-11 11:54:21 +01:00
config = mkIf cfg.enable {
2022-11-11 11:54:21 +01:00
# home.packages = [pkgs.nixgl.auto.nixGLDefault];
services.picom = {
enable = true;
backend = "glx";
vSync = true;
2022-12-09 10:38:47 +01:00
fade = false;
2024-02-05 11:46:52 +01:00
fadeSteps = [
8.0e-2
8.0e-2
];
2022-11-11 11:54:21 +01:00
shadow = true;
2022-12-09 10:38:47 +01:00
inactiveOpacity = 0.9;
2022-11-11 11:54:21 +01:00
opacityRules = [
"0:_NET_WM_STATE@[*]:32a = '_NET_WM_STATE_HIDDEN'"
"100:fullscreen"
"100:name = 'Zoom Meeting'"
"100:name = 'zoom_linux_float_video_window'"
"100:class_g = 'Rofi'"
"100:class_g = 'mpv'"
"100:window_type = 'combo'"
"100:window_type = 'dock'"
"100:window_type = 'dropdown_menu'"
"100:window_type = 'menu'"
"100:window_type = 'popup_menu'"
"100:window_type = 'splash'"
"100:window_type = 'tooltip'"
"100:window_type = 'utility'"
"90:!focused"
];
settings = {
unredir-if-possible = false;
mark-ovredir-focused = true;
use-ewmh-active-win = true;
blur = {
2022-12-09 10:38:47 +01:00
method = "dual_kawase";
2022-11-11 11:54:21 +01:00
size = 10;
deviation = 5.0;
};
2022-12-09 10:38:47 +01:00
inactive-dim = 0.1;
2022-11-11 11:54:21 +01:00
wintypes = {
2024-02-05 11:46:52 +01:00
dock = {
shadow = false;
};
dnd = {
shadow = false;
};
popup_menu = {
shadow = false;
opacity = 1.0;
};
dropdown_menu = {
shadow = false;
opacity = 1.0;
};
2022-11-11 11:54:21 +01:00
};
};
};
};
}