From b655f1dc31df1ee1c33495b3aa57e4ba4a77caa2 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Tue, 8 Apr 2025 13:14:55 +0200 Subject: Add xwayland-satellite --- config/niri/config.kdl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'config/niri') diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 7bff4e0..5a72cc1 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 @@ -247,6 +255,7 @@ 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" // 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 +297,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: @@ -360,6 +374,10 @@ 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"; } + XF86AudioRecord { spawn "wpaperctl" "next"; } + Shift+XF86AudioRecord { spawn "wpaperctl" "previous"; } + Mod+Alt+Ctrl+XF86AudioRecord { spawn "~/.wpaperalt"; } + Mod+Q { close-window; } Mod+Left { focus-column-left; } -- cgit From 747895a6815830b47f962dc0f90f791ccd14fc9d Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 9 Apr 2025 17:08:39 +0200 Subject: Add cliphist --- config/niri/config.kdl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/niri') diff --git a/config/niri/config.kdl b/config/niri/config.kdl index 5a72cc1..e4f1090 100644 --- a/config/niri/config.kdl +++ b/config/niri/config.kdl @@ -256,6 +256,7 @@ layout { // 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. @@ -374,6 +375,9 @@ 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"; } + 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 | cliphist decode | wl-copy"; } + XF86AudioRecord { spawn "wpaperctl" "next"; } Shift+XF86AudioRecord { spawn "wpaperctl" "previous"; } Mod+Alt+Ctrl+XF86AudioRecord { spawn "~/.wpaperalt"; } @@ -560,8 +564,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, -- cgit From 6fb17b9f36555e79004aa7b1428b1299cb62a4a9 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Thu, 10 Apr 2025 22:49:32 +0200 Subject: add niri compose key, launchpad, and keyboard brightness --- config/niri/config.kdl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'config/niri') 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; } -- cgit