Skip to content

Commit

Permalink
✏️ hyprland - split monitor workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
elythh committed Oct 31, 2023
1 parent 17bcb58 commit 5ce3138
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions home/gwen/conf/ui/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
let
hyprland = inputs.hyprland.packages.${pkgs.system}.hyprland;
plugins = inputs.hyprland-plugins.packages.${pkgs.system};

split-monitor-workspaces = inputs.split-monitor-workspaces;
launcher = pkgs.writeShellScriptBin "hypr" ''
#!/${pkgs.bash}/bin/bash
Expand All @@ -29,7 +29,9 @@ in
package = hyprland;
systemd.enable = true;
xwayland.enable = true;
# plugins = with plugins; [ hyprbars borderspp ];
plugins = [
split-monitor-workspaces.packages.${pkgs.system}.split-monitor-workspaces
];

settings = {
exec-once = [
Expand All @@ -38,8 +40,13 @@ in
];

monitor = [
"eDP-1, 1920x1080, 0x0, 1"
"HDMI-A-1, 2560x1440, 1920x0, 1"
# Home
"eDP-1, 1920x1080, 2560x0, 1"
"DP-3, 2560x1440, 0x0, 1"
# Work
"eDP-1, 1920x1080, 960x1080, 1"
"DP-4, 1920x1080, 1920x0, 1"
"DP-8, 1920x1080, 0x0, 1"
];

general = {
Expand All @@ -60,14 +67,13 @@ in
kb_options = compose:caps;
repeat_rate = 50;
repeat_delay = 240;
follow_mouse = 1;
touchpad = {
natural_scroll = "yes";
disable_while_typing = true;
drag_lock = true;
disable_while_typing = 1;
natural_scroll = 1;
clickfinger_behavior = 1;
middle_button_emulation = 0;
tap-to-click = 1;
};
sensitivity = 0;
float_switch_override_focus = 2;
};

binds = {
Expand All @@ -81,6 +87,7 @@ in
};

gestures = {
workspace_swipe_fingers = 4;
workspace_swipe = "on";
workspace_swipe_direction_lock = false;
workspace_swipe_forever = true;
Expand Down Expand Up @@ -110,12 +117,12 @@ in
let
binding = mod: cmd: key: arg: "${mod}, ${key}, ${cmd}, ${arg}";
mvfocus = binding "SUPER" "movefocus";
ws = binding "SUPER" "workspace";
ws = binding "SUPER" "split-workspace";
resizeactive = binding "SUPER CTRL" "resizeactive";
mvactive = binding "SUPER ALT" "moveactive";
mvtows = binding "SUPER SHIFT" "movetoworkspace";
mvtows = binding "SUPER SHIFT" "split-movetoworkspacesilent";
e = "exec, ags -b hypr";
arr = [ 1 2 3 4 5 6 7 8 9 ];
arr = [ 1 2 3 4 5 6 7 ];
in
[
"CTRL SHIFT, R, ${e} quit; ags -b hypr"
Expand Down Expand Up @@ -218,6 +225,9 @@ in
};

plugin = {
split-monitor-workspaces = {
count = 7;
};
hyprbars = {
bar_color = "rgb(2a2a2a)";
bar_height = 10;
Expand Down

0 comments on commit 5ce3138

Please sign in to comment.