diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2024-11-03 17:34:30 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2024-11-03 17:36:31 +0300 |
commit | cdef3ff80cbddb77bfebc2d0b2fb732459ae7af3 (patch) | |
tree | d308a19363ce3a3a1159d2b6a5b626ace1122caf | |
parent | bdc1b29dd8094b641d4ed86b0ee8f348695dd191 (diff) | |
download | swayrice-cdef3ff80cbddb77bfebc2d0b2fb732459ae7af3.tar.gz swayrice-cdef3ff80cbddb77bfebc2d0b2fb732459ae7af3.zip |
niri: hotkeys, window rules, lock screen timeout
-rw-r--r-- | dotfiles/.config/niri/config.kdl | 19 | ||||
-rwxr-xr-x | dotfiles/.local/bin/lock-color | 6 |
2 files changed, 20 insertions, 5 deletions
diff --git a/dotfiles/.config/niri/config.kdl b/dotfiles/.config/niri/config.kdl index 0efeb75..f362317 100644 --- a/dotfiles/.config/niri/config.kdl +++ b/dotfiles/.config/niri/config.kdl @@ -272,6 +272,19 @@ window-rule { } } +window-rule { + match app-id="Alacritty" + match app-id="Mattermost" + + default-column-width { proportion 0.31; } +} + +window-rule { + match app-id="org.qutebrowser.qutebrowser" + + default-column-width { proportion 0.69; } +} + // Example: block out two password managers from screen capture. // (This example rule is commented out with a "/-" in front.) /-window-rule { @@ -415,8 +428,10 @@ binds { // ... // And you can also move a whole workspace to another monitor: - // Mod+Shift+Ctrl+Left { move-workspace-to-monitor-left; } - // ... + Mod+Alt+Y { move-workspace-to-monitor-left; } + Mod+Alt+U { move-workspace-to-monitor-down; } + Mod+Alt+I { move-workspace-to-monitor-up; } + Mod+Alt+O { move-workspace-to-monitor-right; } Mod+Page_Down { focus-workspace-down; } Mod+Page_Up { focus-workspace-up; } diff --git a/dotfiles/.local/bin/lock-color b/dotfiles/.local/bin/lock-color index fbf678f..23efb78 100755 --- a/dotfiles/.local/bin/lock-color +++ b/dotfiles/.local/bin/lock-color @@ -5,12 +5,12 @@ if [ -n "$SWAYSOCK" ]; then if [ "$1" != "screenon" ]; then echo idling - swayidle timeout 30 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' & + swayidle timeout 15 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' & fi elif [ -n "$NIRI_SOCKET" ]; then if [ "$1" != "screenon" ]; then - echo idling - swayidle timeout 3 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' & + echo idling + swayidle timeout 15 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' & fi fi |