hyprland: Add initial touch support with hyprgrass

This seems to work and should help us replace phosh with hyprland
long-term.
This commit is contained in:
Donovan Glover 2024-07-14 09:30:09 -04:00
parent 9a3c1976ab
commit f16aa7ecd1
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -28,6 +28,7 @@ in
mpvpaper mpvpaper
lnch lnch
wev wev
squeekboard
tessen tessen
wtype wtype
dmenu-wayland dmenu-wayland
@ -42,6 +43,10 @@ in
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
plugins = with pkgs.hyprlandPlugins; [
hyprgrass
];
settings = { settings = {
env = [ env = [
"BROWSER,librewolf" "BROWSER,librewolf"
@ -73,6 +78,7 @@ in
"ironbar" "ironbar"
"fcitx5" "fcitx5"
"mpdris2-rs" "mpdris2-rs"
"squeekboard"
"hyprctl dispatch workspace 5000000" "hyprctl dispatch workspace 5000000"
"${polkit_gnome}/libexec/polkit-gnome-authentication-agent-1" "${polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
"hyprdim --no-dim-when-only --persist --ignore-leaving-special --dialog-dim" "hyprdim --no-dim-when-only --persist --ignore-leaving-special --dialog-dim"
@ -143,6 +149,7 @@ in
gestures = { gestures = {
workspace_swipe = true; workspace_swipe = true;
workspace_swipe_cancel_ratio = 0.15;
}; };
device = [ device = [
@ -164,6 +171,13 @@ in
allow_workspace_cycles = true; allow_workspace_cycles = true;
}; };
plugin = {
touch_gestures = {
sensitivity = 4.0;
workspace_swipe_edge = false;
};
};
layerrule = [ layerrule = [
"blur,ironbar" "blur,ironbar"
"blur,rofi" "blur,rofi"
@ -247,11 +261,25 @@ in
"${super}, mouse_down, workspace, e+1" "${super}, mouse_down, workspace, e+1"
"${super}, mouse_up, workspace, e-1" "${super}, mouse_up, workspace, e-1"
", edge:d:u, exec, busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true"
", edge:u:d, exec, kgx"
", edge:r:l, exec, hyprnome"
", edge:l:r, exec, hyprnome -p"
", swipe:3:lu, exec, chatty"
", swipe:3:ru, exec, gnome-calls"
", swipe:3:ld, exec, gnome-contacts"
", swipe:3:rd, exec, gnome-control-center"
", swipe:4:d, killactive"
", swipe:4:u, exec, librewolf"
", tap:3, exec, busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true"
]; ];
bindm = [ bindm = [
"${super}, mouse:272, movewindow" "${super}, mouse:272, movewindow"
"${super}, mouse:273, resizewindow" "${super}, mouse:273, resizewindow"
", longpress:3, movewindow"
", longpress:4, resizewindow"
]; ];
bindl = [ bindl = [