aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/niri/config.kdl18
1 files changed, 18 insertions, 0 deletions
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; }