46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{...}: {
|
|
wayland.windowManager.hyprland = {
|
|
settings = {
|
|
animations = {
|
|
bezier = [
|
|
"easeInOutQuart, 0.77, 0 , 0.175, 1"
|
|
"easeInExpo , 0.95, 0.05, 0.795, 0.035"
|
|
];
|
|
|
|
animation = [
|
|
"fadeLayersIn , 0"
|
|
"fadeLayersOut, 1, 3000, easeInExpo"
|
|
"layers , 1, 4 , easeInOutQuart, slide left"
|
|
];
|
|
};
|
|
|
|
layerrule = [
|
|
"noanim, ^(?!win-).*"
|
|
|
|
# Lockscreen blur
|
|
"blur, ^(blur-bg.*)"
|
|
"ignorealpha 0.19, ^(blur-bg.*)"
|
|
];
|
|
|
|
exec-once = ["ags"];
|
|
|
|
bind = [
|
|
"$mainMod SHIFT, E , exec, ags -t win-powermenu"
|
|
"$mainMod , D , exec, ags -t win-applauncher"
|
|
"$mainMod , V , exec, ags -t win-clipboard"
|
|
" , Print, exec, ags -t win-screenshot"
|
|
];
|
|
binde = [
|
|
## Brightness control
|
|
", XF86MonBrightnessUp , exec, ags -m 'Brightness.screen += 0.05'"
|
|
", XF86MonBrightnessDown, exec, ags -m 'Brightness.screen -= 0.05'"
|
|
|
|
## Volume control
|
|
", XF86AudioRaiseVolume , exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ & ags -m 'popup_osd(\"speaker\")' &"
|
|
", XF86AudioLowerVolume , exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- & ags -m 'popup_osd(\"speaker\")' &"
|
|
];
|
|
bindn = [" , Escape , exec, ags -m 'closeAll()'"];
|
|
bindr = ["CAPS, Caps_Lock, exec, ags -m 'Brightness.fetchCapsState()'"];
|
|
};
|
|
};
|
|
}
|