misc niri config update.
This commit is contained in:
@@ -41,7 +41,7 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
warp-mouse-to-focus
|
warp-mouse-to-focus
|
||||||
|
disable-power-key-handling
|
||||||
focus-follows-mouse max-scroll-amount="0%"
|
focus-follows-mouse max-scroll-amount="0%"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,8 +119,9 @@ layout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hotkey-overlay {
|
overview {
|
||||||
skip-at-startup
|
backdrop-color "#26233a"
|
||||||
|
zoom 0.5
|
||||||
}
|
}
|
||||||
|
|
||||||
layer-rule {
|
layer-rule {
|
||||||
@@ -128,26 +129,6 @@ layer-rule {
|
|||||||
place-within-backdrop true
|
place-within-backdrop true
|
||||||
}
|
}
|
||||||
|
|
||||||
overview {
|
|
||||||
backdrop-color "#26233a"
|
|
||||||
zoom 0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
switch-events {
|
|
||||||
lid-close { spawn "bash" "-c" "swaylock" "&&" "systemctl" "suspend"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
gestures {
|
|
||||||
hot-corners {
|
|
||||||
off
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
prefer-no-csd
|
|
||||||
|
|
||||||
screenshot-path "~/.tmp/Screenshots/%Y-%m-%d %H-%M-%S.png"
|
|
||||||
// screenshot-path null
|
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
// off
|
// off
|
||||||
|
|
||||||
@@ -267,11 +248,27 @@ environment {
|
|||||||
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hotkey-overlay {
|
||||||
|
skip-at-startup
|
||||||
|
hide-not-bound
|
||||||
|
}
|
||||||
|
|
||||||
|
gestures {
|
||||||
|
hot-corners {
|
||||||
|
off
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
prefer-no-csd
|
||||||
|
|
||||||
|
screenshot-path "~/.tmp/Screenshots/%Y-%m-%d %H-%M-%S.png"
|
||||||
|
// screenshot-path null
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
Mod+F1 { show-hotkey-overlay; }
|
Mod+F1 { show-hotkey-overlay; }
|
||||||
|
|
||||||
Mod+Return hotkey-overlay-title="Terminal (foot)" { spawn "foot"; }
|
Mod+Return hotkey-overlay-title="Terminal (foot)" { spawn "foot"; }
|
||||||
Mod+F9 hotkey-overlay-title="Browser (firefox)" { spawn "firefox"; }
|
Mod+F9 hotkey-overlay-title="Browser (firefox)" { spawn "ykrun" "firefox"; }
|
||||||
Mod+E hotkey-overlay-title="Explorer (yazi)" { spawn "foot" "yazi"; }
|
Mod+E hotkey-overlay-title="Explorer (yazi)" { spawn "foot" "yazi"; }
|
||||||
//Shift+Mod+Return hotkey-overlay-title="Steam" { spawn "steam"; }
|
//Shift+Mod+Return hotkey-overlay-title="Steam" { spawn "steam"; }
|
||||||
|
|
||||||
@@ -287,7 +284,7 @@ binds {
|
|||||||
// The allow-inhibiting=false property can be applied to other binds as well,
|
// The allow-inhibiting=false property can be applied to other binds as well,
|
||||||
// which ensures niri always processes them, even when an inhibitor is active.
|
// which ensures niri always processes them, even when an inhibitor is active.
|
||||||
Mod+Alt+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
Mod+Alt+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
||||||
Mod+Shift+Escape hotkey-overlay-title="Exit niri" { quit; }
|
XF86PowerOff hotkey-overlay-title="Exit niri" { quit; }
|
||||||
Super+Escape hotkey-overlay-title="Lock the Screen (gtklock)" { spawn "gtklock" "-d"; }
|
Super+Escape hotkey-overlay-title="Lock the Screen (gtklock)" { spawn "gtklock" "-d"; }
|
||||||
Mod+Delete hotkey-overlay-title="Lock screen and Hibernate ..." allow-when-locked=true {
|
Mod+Delete hotkey-overlay-title="Lock screen and Hibernate ..." allow-when-locked=true {
|
||||||
spawn-sh "(pgrep gtklock || gtklock -d) && sleep 1 && systemctl hibernate";
|
spawn-sh "(pgrep gtklock || gtklock -d) && sleep 1 && systemctl hibernate";
|
||||||
|
|||||||
Reference in New Issue
Block a user