aboutsummaryrefslogtreecommitdiff
path: root/niri
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2026-10-28 23:12:20 +0100
committerbozo.kopic <bozo@kopic.xyz>2026-10-28 23:12:20 +0100
commitd35bd1184bbe4b67c3dc9d8bcc661bbd4cd391be (patch)
tree2cea093bd86b60275809dc8fb16deef5eaae5227 /niri
parent890e05c939d161e9135e2330e0c3837837897511 (diff)
.
Diffstat (limited to 'niri')
-rw-r--r--niri/config.kdl20
-rwxr-xr-xniri/run-niri.sh4
2 files changed, 21 insertions, 3 deletions
diff --git a/niri/config.kdl b/niri/config.kdl
index 7620449..5c8728b 100644
--- a/niri/config.kdl
+++ b/niri/config.kdl
@@ -9,6 +9,9 @@ input {
warp-mouse-to-focus
focus-follows-mouse max-scroll-amount="0%"
+ // focus-follows-mouse
+
+ disable-power-key-handling
}
cursor {
@@ -41,6 +44,21 @@ layout {
inactive-color "#505050"
urgent-color "#9b0000"
}
+
+ tab-indicator {
+ on
+ hide-when-single-tab
+ place-within-column
+ gap 5
+ width 4
+ length total-proportion=1.0
+ position "right"
+ gaps-between-tabs 2
+ corner-radius 8
+ active-color "red"
+ inactive-color "gray"
+ urgent-color "blue"
+ }
}
prefer-no-csd
@@ -88,7 +106,7 @@ binds {
F12 { spawn "~/.config/niri/terminal.sh"; }
Mod+Return { spawn "foot"; }
- Mod+Space { spawn "wofi"; }
+ Mod+Space { spawn "fuzzel"; }
Mod+Tab { toggle-column-tabbed-display; }
diff --git a/niri/run-niri.sh b/niri/run-niri.sh
index eae7cec..fda4289 100755
--- a/niri/run-niri.sh
+++ b/niri/run-niri.sh
@@ -4,10 +4,10 @@ exec >~/.niri.log 2>&1
export QT_QPA_PLATFORM=wayland
-if ( command -v systemctl && systemctl --user is-system-running ) >/dev/null; then
+if [ "$(ps -p 1 -o comm=)" = "systemd" ]; then
exec niri-session
-elif pgrep -U $(id -u) dbus-daemon >/dev/null; then
+elif [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec niri --session
else