hyprland: fix dbus and gnome-keyring, fix non floating classes
This commit is contained in:
parent
d55c837e9e
commit
3a78de7dc2
1 changed files with 17 additions and 2 deletions
|
|
@ -3,15 +3,30 @@
|
|||
let
|
||||
cfg = config.wayland.windowManager.hyprland;
|
||||
|
||||
inherit (builtins) toString;
|
||||
nonFloatingClasses = [
|
||||
"Gimp"
|
||||
"steam"
|
||||
"KiCad"
|
||||
];
|
||||
|
||||
nonFloatingClassesRegex = concatStringsSep "|" nonFloatingClasses;
|
||||
|
||||
inherit (builtins) concatStringsSep toString;
|
||||
inherit (lib) mkDefault;
|
||||
in
|
||||
{
|
||||
# Do not add binds here. Use `./binds/default.nix` instead.
|
||||
"$mod" = cfg.modifier;
|
||||
|
||||
exec-once = [
|
||||
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" # dbus package comes from NixOS module option `services.dbus.dbusPackage` [1]
|
||||
"gnome-keyring-daemon --start --components=secrets" # gnome-keyring package comes from NixOS module `services.gnome.gnome-keyring` [1]
|
||||
];
|
||||
# 1: see Hyprland NixOS module
|
||||
|
||||
windowrule = [
|
||||
"center, floating:1, not class:^(Gimp)$, not class:^(steam)$"
|
||||
# "float, class:^(${nonFloatingClassesRegex})$"
|
||||
"center, floating:1, class:^(?!.*(${nonFloatingClassesRegex})).*$"
|
||||
"float, title:^(Open|Save) Files?$"
|
||||
"noborder, onworkspace:w[t1]"
|
||||
"bordersize ${toString cfg.settings.general.border_size}, floating:1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue