hyprland: fix layout usability
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
657e7289ec
commit
b91e97c72b
3 changed files with 21 additions and 13 deletions
|
@ -36,7 +36,7 @@ in {
|
||||||
|
|
||||||
master = {
|
master = {
|
||||||
mfact = mkForce 0.5;
|
mfact = mkForce 0.5;
|
||||||
orientation = mkForce "top";
|
orientation = mkForce "left";
|
||||||
always_center_master = mkForce false;
|
always_center_master = mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -107,9 +107,8 @@ in {
|
||||||
bindr = [
|
bindr = [
|
||||||
(key "Alt_L" "Super+Alt" "togglespecialworkspace" "wallpaper")
|
(key "Alt_L" "Super+Alt" "togglespecialworkspace" "wallpaper")
|
||||||
(key "Alt_L" "Super+Alt+Shift" "movetoworkspacesilent" "special:wallpaper")
|
(key "Alt_L" "Super+Alt+Shift" "movetoworkspacesilent" "special:wallpaper")
|
||||||
(key "Control_L" "Super+Ctrl" "layoutmsg" "swapwithmaster master")
|
(key "Control_L" "Super+Ctrl" "layoutmsg" "swapnext")
|
||||||
(key "Control_L" "Super+Ctrl+Alt+Shift" "layoutmsg" "removemaster")
|
(key "Control_L" "Super+Ctrl+Shift" "layoutmsg" "swapprev")
|
||||||
(key "Control_L" "Super+Ctrl+Shift" "layoutmsg" "addmaster")
|
|
||||||
(key "Shift_L" "Super+Shift" "workspace" "previous")
|
(key "Shift_L" "Super+Shift" "workspace" "previous")
|
||||||
(key "Super_L" "Super" "exec" "${menu}")
|
(key "Super_L" "Super" "exec" "${menu}")
|
||||||
(key "Super_L" "Super+Alt" "exec" "${menu} --passwords")
|
(key "Super_L" "Super+Alt" "exec" "${menu} --passwords")
|
||||||
|
@ -120,19 +119,19 @@ in {
|
||||||
|
|
||||||
# Regular binds
|
# Regular binds
|
||||||
bind = [
|
bind = [
|
||||||
(key "mouse:274" "Super" "layoutmsg" "swapwithmaster master")
|
(key "mouse:274" "Super" "layoutmsg" "swapwithmaster auto")
|
||||||
(key "mouse:274" "Super+Shift" "layoutmsg" "addmaster")
|
(key "mouse:274" "Super+Shift" "layoutmsg" "addmaster")
|
||||||
(key "mouse:274" "Super+Ctrl+Shift" "layoutmsg" "removemaster")
|
(key "mouse:274" "Super+Ctrl+Shift" "layoutmsg" "removemaster")
|
||||||
|
|
||||||
(key "Backslash" "Super" "layoutmsg" "orientationcenter")
|
(key "Backslash" "Super" "layoutmsg" "orientationcycle center left")
|
||||||
(key "Backslash" "Super+Shift" "splitratio" "exact 0.5") # Reset layout ratio
|
(key "Backslash" "Super+Shift" "splitratio" "exact 0.5") # Reset layout ratio
|
||||||
(key "Backspace" "Super" "changegroupactive" "f")
|
(key "Backspace" "Super" "changegroupactive" "f")
|
||||||
(key "Backspace" "Super+Ctrl" "togglegroup" null)
|
(key "Backspace" "Super+Ctrl" "togglegroup" null)
|
||||||
(key "Backspace" "Super+Ctrl+Shift" "lockactivegroup" "toggle")
|
(key "Backspace" "Super+Ctrl+Shift" "lockactivegroup" "toggle")
|
||||||
(key "Backspace" "Super+Shift" "movegroupwindow" null)
|
(key "Backspace" "Super+Shift" "movegroupwindow" null)
|
||||||
(key "Bracketleft" "Super" "layoutmsg" "orientationprev")
|
(key "Bracketleft" "Super" "layoutmsg" "rollnext")
|
||||||
(key "Bracketleft" "Super+Shift" "splitratio" "-0.1")
|
(key "Bracketleft" "Super+Shift" "splitratio" "-0.1")
|
||||||
(key "Bracketright" "Super" "layoutmsg" "orientationnext")
|
(key "Bracketright" "Super" "layoutmsg" "rollprev")
|
||||||
(key "Bracketright" "Super+Shift" "splitratio" "+0.1")
|
(key "Bracketright" "Super+Shift" "splitratio" "+0.1")
|
||||||
(key "Delete" "Super" "exec" "${swayosd-client} --output-volume mute-toggle")
|
(key "Delete" "Super" "exec" "${swayosd-client} --output-volume mute-toggle")
|
||||||
(key "Down" "Super" "movewindow" "d")
|
(key "Down" "Super" "movewindow" "d")
|
||||||
|
@ -185,7 +184,7 @@ in {
|
||||||
"'^Picture.in.[Pp]icture$'"
|
"'^Picture.in.[Pp]icture$'"
|
||||||
"${toString (gap + border)},${toString (gap + border)}"
|
"${toString (gap + border)},${toString (gap + border)}"
|
||||||
]))
|
]))
|
||||||
(key "Tab" "Super" "cyclenext" "tiled")
|
(key "Tab" "Super" "layoutmsg" "cyclenext")
|
||||||
(key "Tab" "Super+Shift" "alterzorder" "top")
|
(key "Tab" "Super+Shift" "alterzorder" "top")
|
||||||
(key "Tab" "Super+Shift" "cyclenext" "floating")
|
(key "Tab" "Super+Shift" "cyclenext" "floating")
|
||||||
(key "Up" "Super" "movewindow" "u")
|
(key "Up" "Super" "movewindow" "u")
|
||||||
|
|
|
@ -81,7 +81,15 @@ in {
|
||||||
force_zero_scaling = true;
|
force_zero_scaling = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Master-Layout
|
# https://wiki.hyprland.org/Configuring/Dwindle-Layout/
|
||||||
|
dwindle = {
|
||||||
|
default_split_ratio = 1.25;
|
||||||
|
force_split = 2; # Right
|
||||||
|
split_bias = 1; # Larger active window
|
||||||
|
split_width_multiplier = 1.5;
|
||||||
|
};
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Master-Layout/
|
||||||
# Optimized for ultrawide use by default
|
# Optimized for ultrawide use by default
|
||||||
master = {
|
master = {
|
||||||
allow_small_split = true;
|
allow_small_split = true;
|
||||||
|
@ -131,6 +139,7 @@ in {
|
||||||
"col.border_inactive" = "rgba(6c71c440)";
|
"col.border_inactive" = "rgba(6c71c440)";
|
||||||
"col.border_locked_active" = "rgb(d33682)";
|
"col.border_locked_active" = "rgb(d33682)";
|
||||||
"col.border_locked_inactive" = "rgba(d3368240)";
|
"col.border_locked_inactive" = "rgba(d3368240)";
|
||||||
|
auto_group = false;
|
||||||
insert_after_current = false;
|
insert_after_current = false;
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#groupbar
|
# https://wiki.hyprland.org/Configuring/Variables/#groupbar
|
||||||
|
@ -178,14 +187,14 @@ in {
|
||||||
input = {
|
input = {
|
||||||
accel_profile = "flat";
|
accel_profile = "flat";
|
||||||
float_switch_override_focus = 0; # Disable float to tile hover focus
|
float_switch_override_focus = 0; # Disable float to tile hover focus
|
||||||
focus_on_close = 1; # Focus window under mouse
|
#// focus_on_close = 1; # Focus window under mouse
|
||||||
follow_mouse = 1; # Hover focus
|
follow_mouse = 1; # Hover focus
|
||||||
mouse_refocus = false; # Required to focus last window on close
|
mouse_refocus = false; # Required to focus last window on close
|
||||||
repeat_delay = 300;
|
repeat_delay = 300;
|
||||||
repeat_rate = 40;
|
repeat_rate = 40;
|
||||||
sensitivity = 0.5;
|
sensitivity = 0.5;
|
||||||
#// scroll_factor = 0.75;
|
#// scroll_factor = 0.75;
|
||||||
special_fallthrough = true; # Alternative to toggle script
|
special_fallthrough = true; # Focus windows under special workspace
|
||||||
|
|
||||||
touchpad = {
|
touchpad = {
|
||||||
clickfinger_behavior = true; # Multi-finger clicks
|
clickfinger_behavior = true; # Multi-finger clicks
|
||||||
|
@ -197,7 +206,7 @@ in {
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#cursor
|
# https://wiki.hyprland.org/Configuring/Variables/#cursor
|
||||||
cursor = {
|
cursor = {
|
||||||
hide_on_key_press = true;
|
hide_on_key_press = true;
|
||||||
hotspot_padding = config.custom.gap;
|
#// hotspot_padding = config.custom.gap;
|
||||||
#// min_refresh_rate = 60; # !! Hardware dependent
|
#// min_refresh_rate = 60; # !! Hardware dependent
|
||||||
#// no_break_fs_vrr = true;
|
#// no_break_fs_vrr = true;
|
||||||
#// no_hardware_cursors = true;
|
#// no_hardware_cursors = true;
|
||||||
|
|
Loading…
Reference in a new issue