hyprland switch to master layout

This commit is contained in:
2025-07-28 21:04:43 +02:00
parent 2d63eb7a4e
commit cd9c6c0a24
2 changed files with 24 additions and 10 deletions

View File

@@ -9,11 +9,11 @@ $term_tmux = uwsm app -- kitty tmux a
$filemanager = uwsm app -- nautilus $filemanager = uwsm app -- nautilus
$launcher = uwsm app -- walker $launcher = uwsm app -- walker
$clipboard = uwsm app -- nwg-clipman $clipboard = uwsm app -- nwg-clipman
$browser = uwsm app -- zen-browser $browser = uwsm app -- firefox
$browserprv = uwsm app -- zen-browser --private-window $browserprv = uwsm app -- firefox --private-window
$firefox = uwsm app -- firefox $altbrowser = uwsm app -- chromium
$editor = uwsm app -T -- vim $editor = uwsm app -T -- nvim
$editor0 = uwsm app -- zeditor $alteditor = uwsm app -- zeditor
$clipman = uwsm app -- nwg-clipman $clipman = uwsm app -- nwg-clipman
$taskman = uwsm app -- uuctl walker -d $taskman = uwsm app -- uuctl walker -d
$pwdmgr = uwsm app -- keepassxc $pwdmgr = uwsm app -- keepassxc
@@ -34,9 +34,9 @@ $mainMod = SUPER
bind = $mainMod, E, exec, $filemanager bind = $mainMod, E, exec, $filemanager
bind = $mainMod, W, exec, $browser bind = $mainMod, W, exec, $browser
bind = $mainMod SHIFT, W, exec, $browserprv bind = $mainMod SHIFT, W, exec, $browserprv
bind = $mainMod CTRL, W, exec, $firefox bind = $mainMod CTRL, W, exec, $altbrowser
bind = $mainMod Shift, E, exec, $editor bind = $mainMod Shift, E, exec, $editor
bind = $mainMod Shift ALT_L, E, exec, $editor0 bind = $mainMod Shift ALT_L, E, exec, $alteditor
bind = $mainMod, X, exec, $launcher bind = $mainMod, X, exec, $launcher
bind = $mainMod, C, exec, $clipman bind = $mainMod, C, exec, $clipman
bind = $mainMod, Return, exec, $terminal_backup bind = $mainMod, Return, exec, $terminal_backup
@@ -51,7 +51,6 @@ bind = $mainMod, A, exec, $nothide
bind = $mainMod SHIFT, A, exec, $notclose bind = $mainMod SHIFT, A, exec, $notclose
bind = $mainMod CTRL, A, exec, $notcloseall bind = $mainMod CTRL, A, exec, $notcloseall
bind = $mainMod SHIFT, Pause, exec, uwsm stop bind = $mainMod SHIFT, Pause, exec, uwsm stop
bind = $mainMod, Pause, exec, $lockcmd bind = $mainMod, Pause, exec, $lockcmd
bind = $mainMod SHIFT, Escape, exec, $lockcmd bind = $mainMod SHIFT, Escape, exec, $lockcmd
@@ -70,6 +69,13 @@ bind = $mainMod SHIFT, Tab, togglesplit,
bind = $mainMod CTRL, Tab, layoutmsg, movetoroot bind = $mainMod CTRL, Tab, layoutmsg, movetoroot
bind = $mainMod, P, pseudo, bind = $mainMod, P, pseudo,
#master layout
bind = $mainMod, Tab, layoutmsg, swapwithmaster
bind = $mainMod SHIFT, Tab, layoutmsg, addmaster
bind = $mainMod CTRL, Tab, layoutmsg, removemaster
bind = $mainMod CTRL SHIFT, Tab, layoutmsg, rollnext
# MOVE FOCUS with mainMod + vim keys # MOVE FOCUS with mainMod + vim keys
bind = $mainMod, H, movefocus, l bind = $mainMod, H, movefocus, l
bind = $mainMod, L, movefocus, r bind = $mainMod, L, movefocus, r

View File

@@ -52,7 +52,7 @@ general {
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false allow_tearing = false
layout = dwindle layout = master
} }
render { render {
@@ -139,11 +139,19 @@ animations {
dwindle { dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this preserve_split = true # You probably want this
smart_split = true
} }
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master { master {
new_status = master orientation = center
center_master_fallback = left
slave_count_for_center_master = 4
mfact = 0.60
new_status = slave
new_on_top = true
new_on_active = after
inherit_fullscreen = true
} }
# https://wiki.hyprland.org/Configuring/Variables/#misc # https://wiki.hyprland.org/Configuring/Variables/#misc