From 0eb2f881880acf2043a6dffb8bc17438ead7e8c5 Mon Sep 17 00:00:00 2001 From: Hendrik Sauer <77124818+Heniks07@users.noreply.github.com> Date: Tue, 7 Jul 2026 19:35:40 +0200 Subject: [PATCH 1/3] Update nix example to hyprlua --- config.nix.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.nix.example b/config.nix.example index 6ef5916..dbfa518 100644 --- a/config.nix.example +++ b/config.nix.example @@ -37,8 +37,8 @@ in # ---- Top Zone Gestures ---- top = { # NOTE: replace these if you're not a Hyprland user! - left = mkCmd "${pkgs.hyprland}/bin/hyprctl dispatch workspace e-1"; - right = mkCmd "${pkgs.hyprland}/bin/hyprctl dispatch workspace e+1"; + left = mkCmd "${pkgs.hyprland}/bin/hyprctl dispatch \"hl.dsp.focus({workspace='e-1'})\""; + right = mkCmd "${pkgs.hyprland}/bin/hyprctl dispatch \"hl.dsp.focus({workspace='e+1'})\""; }; # ---- Bottom Zone Gestures ---- From 37613d0ef16dc6e2cac743e95de77abbe40923e5 Mon Sep 17 00:00:00 2001 From: Hendrik Sauer <77124818+Heniks07@users.noreply.github.com> Date: Tue, 7 Jul 2026 19:36:37 +0200 Subject: [PATCH 2/3] Update toml config to hyprlua --- config.toml.example | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.toml.example b/config.toml.example index 40f2043..d4b22aa 100644 --- a/config.toml.example +++ b/config.toml.example @@ -31,11 +31,11 @@ cmd = "brightnessctl set 10%-" # ---- Top Zone Gestures ---- [gestures.top.left] action = "command" -cmd = "hyprctl dispatch workspace e-1" +cmd = "hyprctl dispatch \"hl.dsp.focus({workspace='e-1'})\"" [gestures.top.right] action = "command" -cmd = "hyprctl dispatch workspace e+1" +cmd = "hyprctl dispatch \"hl.dsp.focus({workspace='e+1'})\"" # ---- Bottom Zone Gestures ---- [gestures.bottom.left] From 04bc475af7da1971e7fce2580da0acae3dda3613 Mon Sep 17 00:00:00 2001 From: Hendrik Sauer <77124818+Heniks07@users.noreply.github.com> Date: Tue, 7 Jul 2026 19:41:32 +0200 Subject: [PATCH 3/3] Update default config to hyprlua --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 73c1b51..46533a0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -142,14 +142,14 @@ impl Default for Config { Direction::Left, GestureAction { action: "command".into(), - cmd: "hyprctl dispatch workspace e-1".into(), + cmd: "hyprctl dispatch \"hl.dsp.focus({workspace='e-1'})\"".into(), }, ); top_gestures.insert( Direction::Right, GestureAction { action: "command".into(), - cmd: "hyprctl dispatch workspace e+1".into(), + cmd: "hyprctl dispatch \"hl.dsp.focus({workspace='e+1'})\"".into(), }, ); gestures.insert(Zone::Top, top_gestures);