aboutsummaryrefslogtreecommitdiff
path: root/config/niri
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-04-11 15:26:01 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-04-11 15:26:01 +0200
commitd72d2cb5853fb2ec81d3141fb81f3ea10a98d695 (patch)
tree34a656b9fd8a700e8a2a77b6a89476951c2f21b8 /config/niri
parent5ee3515ca0a50cdd3f615a084fc8d6536cd95921 (diff)
parent6fb17b9f36555e79004aa7b1428b1299cb62a4a9 (diff)
Merge branch 'main' of git.sr.ht:~rbdr/dotfiles
Diffstat (limited to 'config/niri')
-rw-r--r--config/niri/config.kdl36
1 files changed, 31 insertions, 5 deletions
diff --git a/config/niri/config.kdl b/config/niri/config.kdl
index 7bff4e0..ba88818 100644
--- a/config/niri/config.kdl
+++ b/config/niri/config.kdl
@@ -3,6 +3,14 @@
// Check the wiki for a full description of the configuration:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Overview
+environment {
+ DISPLAY ":0"
+ MOZ_ENABLE_WAYLAND "1"
+ QT_QPA_PLATFORM "wayland-egl"
+ SDL_VIDEODRIVER "wayland"
+ _JAVA_AWT_WM_NONREPARENTING "1"
+}
+
// Input device configuration.
// Find the full list of options on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Input
@@ -11,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"
@@ -247,6 +255,8 @@ layout {
// which may be more convenient to use.
// See the binds section below for more spawn examples.
// spawn-at-startup "alacritty" "-e" "fish"
+spawn-at-startup "xwayland-satellite"
+spawn-at-startup "wl-paste --watch cliphist store"
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
// If the client will specifically ask for CSD, the request will be honored.
@@ -288,6 +298,11 @@ window-rule {
default-column-width {}
}
+window-rule {
+ match is-focused=false
+ opacity 0.85
+}
+
// Open the Firefox picture-in-picture player as floating by default.
window-rule {
// This app-id regular expression will work for both:
@@ -333,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.
@@ -359,6 +374,17 @@ 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 --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; }
@@ -542,8 +568,8 @@ binds {
Mod+Shift+Equal { set-window-height "+10%"; }
// Move the focused window between the floating and the tiling layout.
- Mod+V { toggle-window-floating; }
- Mod+Shift+V { switch-focus-between-floating-and-tiling; }
+ Mod+X { toggle-window-floating; }
+ Mod+Shift+X { switch-focus-between-floating-and-tiling; }
// Toggle tabbed column display mode.
// Windows in this column will appear as vertical tabs,