diff options
Diffstat (limited to 'dotfiles/.config/niri')
| -rw-r--r-- | dotfiles/.config/niri/config.kdl | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/dotfiles/.config/niri/config.kdl b/dotfiles/.config/niri/config.kdl index bfec98b..b968948 100644 --- a/dotfiles/.config/niri/config.kdl +++ b/dotfiles/.config/niri/config.kdl @@ -12,7 +12,7 @@ input { // You can set rules, model, layout, variant and options. // For more information, see xkeyboard-config(7). layout "us,es,ru" - options "lv3:ralt_switch,grp:alt_shift_toggle,misc:typo,caps:escape,grp_led:caps" + options "lv3:ralt_switch,grp:alt_space_toggle,misc:typo,caps:escape_shifted_capslock" } } @@ -368,10 +368,6 @@ spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "color-scheme" spawn-at-startup "swaybg" "-i" "/home/yaroslav/.config/wall1.png" "-m" "fill" binds { - // Keys consist of modifiers separated by + signs, followed by an XKB key name - // in the end. To find an XKB name for a particular key, you may use a program - // like wev. - // // "Mod" is a special modifier equal to Super when running on a TTY, and to Alt // when running as a winit window. // @@ -382,14 +378,18 @@ binds { // shows a list of important hotkeys. Mod+Shift+Slash { show-hotkey-overlay; } - // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+Return { spawn "alacritty"; } Mod+D { - spawn "rofi" "-show" "drun" "-sidebar-mode" "-modi" "window,drun,run,ssh,filebrowser"; + spawn "rofi" "-show" "drun" "-sidebar-mode" "-modi" "window,drun,run"; + } + // this isn't dry but whatever + Menu { + spawn "rofi" "-show" "drun" "-sidebar-mode" "-modi" "window,drun,run"; } - Mod+S { toggle-overview; } - Mod+X { spawn "lock-color"; } - Mod+Shift+X { spawn "lock-color" "screenon"; } + Mod+S { toggle-overview; } + XF86VoiceCommand { toggle-overview; } // For my remote + Mod+X { spawn "lock-color"; } + Mod+Shift+X { spawn "lock-color" "screenon"; } // Example volume keys mappings for PipeWire & WirePlumber. // The allow-when-locked=true property makes them work even when the session is locked. @@ -399,6 +399,10 @@ binds { XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } + XF86AudioPrev allow-when-locked=true { spawn "lmc" "prev"; } + XF86AudioPlay allow-when-locked=true { spawn "lmc" "toggle"; } + XF86AudioNext allow-when-locked=true { spawn "lmc" "next"; } + Mod+Shift+F5 allow-when-locked=true { spawn "lmc" "back" "5"; } Mod+F5 allow-when-locked=true { spawn "lmc" "prev"; } Mod+F6 allow-when-locked=true { spawn "lmc" "toggle"; } |
