2022-12-09 10:38:47 +01:00
|
|
|
{ config
|
2022-11-11 11:54:21 +01:00
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.eboskma.programs.picom;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.programs.picom = { enable = mkEnableOption "activate picom"; };
|
|
|
|
|
2022-11-19 20:00:54 +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;
|
2022-11-11 11:54:21 +01:00
|
|
|
fadeSteps = [ 0.08 0.08 ];
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
dock = { shadow = false; };
|
|
|
|
dnd = { shadow = false; };
|
|
|
|
popup_menu = { shadow = false; opacity = 1.0; };
|
|
|
|
dropdown_menu = { shadow = false; opacity = 1.0; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|