hyprland: switch mode, per mode keys

This commit is contained in:
Łukasz Pankowski 2024-02-16 21:19:06 +01:00
parent 4997e5545d
commit 6c8085b43d

View File

@ -4,8 +4,8 @@ env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
monitor=DP-2,highres,0x0,1.666667,transform,1
monitor=DP-1,highres,1295x0,1.666667
monitor=DP-2,highres,0x0,2,transform,1
monitor=DP-1,highres,1080x0,2
input {
kb_layout = pl
@ -15,6 +15,11 @@ input {
general {
gaps_in = 2
gaps_out = 5
layout = dwindle
}
dwindle {
preserve_split = true
}
animations {
@ -33,15 +38,23 @@ $mainMod = SUPER
bind = $mainMod, P, exec, $menu
bind = $mainMod SHIFT, Return, exec, $terminal
bind = $mainMod, Return, layoutmsg,swapwithmaster master
bind = $mainMod CONTROL SHIFT, Q, exit
bind = $mainMod CONTROL SHIFT, L, exec, swaylock -c 263c59
bind = $mainMod CONTROL SHIFT, S, exec, swaylock -c 263c59
bind = $mainMod CONTROL SHIFT, S, exec, systemctl suspend
bind = $mainMod, F, fullscreen, 0
bind = $mainMod CONTROL, Space, togglefloating
bind = $mainMod, I, cyclenext,
bind = $mainMod, O, cyclenext, prev
bind = $mainMod, D, exec, hyprctl keyword general:layout "dwindle"
bind = $mainMod, M, exec, hyprctl keyword general:layout "master"
bind = $mainMod, F, fullscreen, 0
bind = $mainMod, U, layoutmsg, togglesplit
bind = $mainMod, I, layoutmsg, cycleprev
bind = $mainMod, O, layoutmsg, cyclenext
bind = $mainMod, A, focuscurrentorlast
bind = $mainMod SHIFT, I, layoutmsg, swapprev
bind = $mainMod SHIFT, O, layoutmsg, swapnext
bind = $mainMod CONTROL, I, layoutmsg, removemaster
bind = $mainMod CONTROL, O, layoutmsg, addmaster
bind = $mainMod, h, movefocus, l
bind = $mainMod, j, movefocus, d
@ -53,6 +66,11 @@ bind = $mainMod SHIFT, j, swapwindow, d
bind = $mainMod SHIFT, k, swapwindow, u
bind = $mainMod SHIFT, l, swapwindow, r
bind = $mainMod CONTROL, h, layoutmsg, orientationleft
bind = $mainMod CONTROL, j, layoutmsg, orientationbottom
bind = $mainMod CONTROL, k, layoutmsg, orientationtop
bind = $mainMod CONTROL, l, layoutmsg, orientationright
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2