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