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 ---- 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] 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);