develop #16
1 changed files with 10 additions and 4 deletions
|
|
@ -3,13 +3,13 @@
|
||||||
let
|
let
|
||||||
cfg = config.wayland.windowManager.hyprland;
|
cfg = config.wayland.windowManager.hyprland;
|
||||||
|
|
||||||
nonFloatingClasses = [
|
nonCenterFloatingClasses = [
|
||||||
"Gimp"
|
"Gimp"
|
||||||
"steam"
|
"steam"
|
||||||
"KiCad"
|
"KiCad"
|
||||||
];
|
];
|
||||||
|
|
||||||
nonFloatingClassesRegex = concatStringsSep "|" nonFloatingClasses;
|
nonCenterFloatingClassesRegex = concatStringsSep "|" nonCenterFloatingClasses;
|
||||||
|
|
||||||
inherit (builtins) concatStringsSep toString;
|
inherit (builtins) concatStringsSep toString;
|
||||||
inherit (lib) mkDefault;
|
inherit (lib) mkDefault;
|
||||||
|
|
@ -25,8 +25,8 @@ in
|
||||||
# 1: see Hyprland NixOS module
|
# 1: see Hyprland NixOS module
|
||||||
|
|
||||||
windowrule = [
|
windowrule = [
|
||||||
# "float, class:^(${nonFloatingClassesRegex})$"
|
# "float, class:^(${nonCenterFloatingClassesRegex})$"
|
||||||
"center, floating:1, class:^(?!.*(${nonFloatingClassesRegex})).*$"
|
"center, floating:1, class:^(?!.*(${nonCenterFloatingClassesRegex})).*$"
|
||||||
"float, title:^(Open|Save) Files?$"
|
"float, title:^(Open|Save) Files?$"
|
||||||
"noborder, onworkspace:w[t1]"
|
"noborder, onworkspace:w[t1]"
|
||||||
"bordersize ${toString cfg.settings.general.border_size}, floating:1"
|
"bordersize ${toString cfg.settings.general.border_size}, floating:1"
|
||||||
|
|
@ -39,6 +39,12 @@ in
|
||||||
"noblur, class:^(xwaylandvideobridge)$"
|
"noblur, class:^(xwaylandvideobridge)$"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
gesture = [
|
||||||
|
"3, horizontal, workspace"
|
||||||
|
"3, up, dispatcher, exec, bemenu-run" # TODO: move to hyprland.applications
|
||||||
|
"4, swipe, move"
|
||||||
|
];
|
||||||
|
|
||||||
# Layouts
|
# Layouts
|
||||||
general.layout = mkDefault "master";
|
general.layout = mkDefault "master";
|
||||||
master = {
|
master = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue