diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-10 22:49:32 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-10 22:49:32 +0200 |
| commit | 6fb17b9f36555e79004aa7b1428b1299cb62a4a9 (patch) | |
| tree | a9cc1eb98d8e157d880b34813acdd4927fd28a88 /config | |
| parent | 849fc6582013a58eb14783ea8aeb6009bd7dbc25 (diff) | |
add niri compose key, launchpad, and keyboard brightness
Diffstat (limited to 'config')
| -rw-r--r-- | config/niri/config.kdl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/config/niri/config.kdl b/config/niri/config.kdl index e4f1090..ba88818 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -19,7 +19,7 @@ input { xkb { // You can set rules, model, layout, variant and options. // For more information, see xkeyboard-config(7). - options "caps:ctrl_modifier" + options "caps:ctrl_modifier,compose:ralt" // For example: // layout "us,ru" // options "grp:win_space_toggle,compose:ralt,ctrl:nocaps" @@ -348,8 +348,8 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+Return { spawn "kitty"; } - Mod+Space { spawn "j4-dmenu-desktop" "-d" "bemenu -i -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3'";} - Mod+Shift+Space { spawn "bemenu-run" "-i" "-n" "-H" "26" "--hp" "10" "--fn" "InputSansCompressed Light 10" "-p" ">" "--ff" "#0f261F" "--tf" "#23C17C" "--nf" "#0f261F" "--cf" "#23C17C2" "--af" "#00140d" "--hb" "#23C17C" "--hf" "#0f261F" "--hf" "#DAE6E3" "--nb" "#DAE6E3" "--tb" "#DAE6E3" "--fb" "#DAE6E3" "--cb" "#DAE6E3" "--ab" "#DAE6E3";} + Mod+Space { spawn "j4-dmenu-desktop" "-d" "bemenu --single-instance -i -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3'";} + Mod+Shift+Space { spawn "bemenu-run" "--single-instance" "-i" "-n" "-H" "26" "--hp" "10" "--fn" "InputSansCompressed Light 10" "-p" ">" "--ff" "#0f261F" "--tf" "#23C17C" "--nf" "#0f261F" "--cf" "#23C17C2" "--af" "#00140d" "--hb" "#23C17C" "--hf" "#0f261F" "--hf" "#DAE6E3" "--nb" "#DAE6E3" "--tb" "#DAE6E3" "--fb" "#DAE6E3" "--cb" "#DAE6E3" "--ab" "#DAE6E3";} Super+Alt+L { spawn "swaylock"; } // You can also use a shell. Do this if you need pipes, multiple commands, etc. @@ -374,14 +374,18 @@ binds { XF86MonBrightnessDown allow-when-locked=true { spawn "bash" "-c" "brightnessctl set 5%- | sed -En 's/.*\\(([0-9]+)%\\).*/\\1/p' > $XDG_RUNTIME_DIR/wob.sock"; } XF86MonBrightnessUp allow-when-locked=true { spawn "bash" "-c" "brightnessctl set +5% | sed -En 's/.*\\(([0-9]+)%\\).*/\\1/p' > $XDG_RUNTIME_DIR/wob.sock"; } + Ctrl+XF86MonBrightnessDown allow-when-locked=true { spawn "bash" "-c" "brightnessctl set 5%- -d 'kbd_backlight'| sed -En 's/.*\\(([0-9]+)%\\).*/\\1/p' > $XDG_RUNTIME_DIR/wob.sock"; } + Ctrl+XF86MonBrightnessUp allow-when-locked=true { spawn "bash" "-c" "brightnessctl set +5% -d 'kbd_backlight' | sed -En 's/.*\\(([0-9]+)%\\).*/\\1/p' > $XDG_RUNTIME_DIR/wob.sock"; } - Mod+V { spawn "bash" "-c" "cliphist list | bemenu -i -l 10 -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3' | cliphist decode | wl-copy"; } + Mod+V { spawn "bash" "-c" "cliphist list | bemenu --single-instance -i -l 10 -n -H 26 --hp 10 --fn 'InputSansCompressed Light 10' -p '>' --ff '#0f261F' --tf '#23C17C' --nf '#0f261F' --cf '#23C17C2' --af '#00140d' --hb '#23C17C' --hf '#0f261F' --hf '#DAE6E3' --nb '#DAE6E3' --tb '#DAE6E3' --fb '#DAE6E3' --cb '#DAE6E3' --ab '#DAE6E3' | cliphist decode | wl-copy"; } // Mod+V { spawn "bash" "-c" "cliphist list | bemenu | cliphist decode | wl-copy"; } XF86AudioRecord { spawn "wpaperctl" "next"; } Shift+XF86AudioRecord { spawn "wpaperctl" "previous"; } Mod+Alt+Ctrl+XF86AudioRecord { spawn "~/.wpaperalt"; } + XF86LaunchA { spawn "wofi"; } + Mod+Q { close-window; } Mod+Left { focus-column-left; } |