Skip to content

Commit

Permalink
home-manager/hyprland: add mouse bindings for hy3
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 10, 2024
1 parent 239f7f8 commit a47a038
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions home-manager/desktop/wayland/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ let
inherit (config.wayland.windowManager.hyprland) finalPackage;
cfg = config.home-manager.desktop.wayland.hyprland;
hyprctl = lib.getExe' finalPackage "hyprctl";
# Mouse
leftButton = "272";
rightButton = "273";
# Modifiers
alt = "ALT";
ctrl = "CONTROL";
Expand Down Expand Up @@ -241,15 +244,16 @@ in
)
);

bindm =
let
leftButton = "272";
rightButton = "273";
in
[
"${mod}, mouse:${leftButton}, movewindow"
"${mod}, mouse:${rightButton}, resizewindow"
];
bindm = [
"${mod}, mouse:${leftButton}, movewindow"
"${mod}, mouse:${rightButton}, resizewindow"
];

bindn = [
", mouse:${leftButton}, hy3:focustab, mouse"
", mouse_down, hy3:focustab, left, require_hovered"
", mouse_up, hy3:focustab, right, require_hovered"
];

bindel = [
# Volume
Expand Down

0 comments on commit a47a038

Please sign in to comment.