aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/niri
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2026-05-02 15:22:24 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2026-05-02 15:22:24 +0300
commitb11c84945d02598bcddf9259db8ff92ca9e3cfbf (patch)
treebd8e155a28ee9be7914d58ac0271e0bdc522575b /dotfiles/.config/niri
parent38e654d20d2ca2857dfb245fd56f7c0bb426fd04 (diff)
downloadswayrice-b11c84945d02598bcddf9259db8ff92ca9e3cfbf.tar.gz
swayrice-b11c84945d02598bcddf9259db8ff92ca9e3cfbf.zip
try out noctalia shell
Diffstat (limited to 'dotfiles/.config/niri')
-rw-r--r--dotfiles/.config/niri/config.kdl55
-rw-r--r--dotfiles/.config/niri/noctalia-binds.kdl24
-rw-r--r--dotfiles/.config/niri/noctalia.kdl35
3 files changed, 75 insertions, 39 deletions
diff --git a/dotfiles/.config/niri/config.kdl b/dotfiles/.config/niri/config.kdl
index a2707ab..0142dab 100644
--- a/dotfiles/.config/niri/config.kdl
+++ b/dotfiles/.config/niri/config.kdl
@@ -270,6 +270,12 @@ animations {
slowdown 0.4
}
+blur {
+ passes 3
+ noise 0.1
+ saturation 1.5
+}
+
// Window rules let you adjust behavior for individual windows.
// Find more information on the wiki:
// https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules
@@ -281,7 +287,6 @@ layer-rule {
}
layer-rule {
- match namespace="notifications"
match namespace="rofi"
shadow { on; }
@@ -332,7 +337,7 @@ window-rule {
window-rule {
match app-id="org.pwmt.zathura"
- default-column-width { fixed 900; }
+ default-column-width { fixed 1100; }
}
window-rule {
@@ -361,28 +366,27 @@ window-rule {
}
spawn-at-startup "pipewire-restart"
-spawn-at-startup "waybar_launch"
spawn-at-startup "playerctld" "daemon"
spawn-at-startup "mpd-restart"
spawn-at-startup "blueman-applet"
-spawn-at-startup "mako"
-spawn-at-startup "setsessionenv"
spawn-at-startup "bash" "-c" "GTK_IM_MODULE= fcitx5 -d"
spawn-at-startup "xwayland-satellite"
spawn-at-startup "setsessionenv"
+spawn-at-startup "qs" "-c" "noctalia-shell"
environment {
DISPLAY ":0"
TERM "alacritty"
+ QT_QPA_PLATFORM "wayland;xcb"
+ QT_QPA_PLATFORMTHEME "gtk3"
+ QT_QPA_PLATFORMTHEME_QT6 "gtk3"
}
-spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "gtk-theme" "Breeze"
+// spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "gtk-theme" "Breeze"
spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "icon-theme" "Arc"
spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "font-name" "monospace 10"
spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "color-scheme" "prefer-dark"
-spawn-at-startup "swaybg" "-i" "/home/yaroslav/.config/wall1.png" "-m" "fill"
-
binds {
// "Mod" is a special modifier equal to Super when running on a TTY, and to Alt
// when running as a winit window.
@@ -391,17 +395,10 @@ binds {
// `niri msg action do-something`.
Mod+Return { spawn "alacritty"; }
- Mod+D {
- spawn "rofi" "-show" "drun" "-sidebar-mode" "-modi" "window,drun,run";
- }
- // this isn't dry but whatever
- Menu {
- spawn "rofi" "-show" "drun" "-sidebar-mode" "-modi" "window,drun,run";
- }
+
+ // Noctalia
Mod+S { toggle-overview; }
XF86VoiceCommand { toggle-overview; } // For my remote
- Mod+X { spawn "lock-color"; }
- Mod+Shift+X { spawn "lock-color" "screenon"; }
// Keyboard pointer control
Mod+V { spawn "wl-kbptr" "-o" "modes=floating,click" "-o" "mode_floating.source=detect"; }
@@ -631,34 +628,16 @@ binds {
// rather than stacked on top of each other.
Mod+W { toggle-column-tabbed-display; }
- // Actions to switch layouts.
- // Note: if you uncomment these, make sure you do NOT have
- // a matching layout switch hotkey configured in xkb options above.
- // Having both at once on the same hotkey will break the switching,
- // since it will switch twice upon pressing the hotkey (once by xkb, once by niri).
- // Mod+Space { switch-layout "next"; }
- // Mod+Shift+Space { switch-layout "prev"; }
-
Print { screenshot; }
Ctrl+Print { screenshot-screen; }
Alt+Print { screenshot-window; }
- Mod+Print { spawn "swayrecord"; }
-
- // The quit action will show a confirmation dialog to avoid accidental exits.
- Mod+Shift+E { spawn "rofi" "-show" "session" "-matching" "prefix" "-modi" "session:rofisession"; }
// Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; }
- // Mako commands
- Mod+Ctrl+Space { spawn "makoctl" "dismiss"; }
- Mod+Ctrl+Shift+Space { spawn "makoctl" "restore"; }
-
// Menus/Quick actions
Mod+F1 { spawn "menuman"; }
- Mod+F2 { spawn "menumako"; }
- Mod+F3 { spawn "rofi" "-show" "display" "-modi" "display:rofidisplay"; }
Mod+F4 { spawn "menublk"; }
Mod+F10 { spawn "chcolors"; }
Mod+F12 { spawn "rofi" "-show" "tz" "-modi" "tz:rofitz"; }
@@ -682,8 +661,6 @@ binds {
Mod+Ctrl+Shift+apostrophe { spawn "menupass" "-s"; }
}
-switch-events {
- lid-close { spawn "swaysession" "suspend"; }
-}
-
include "local.kdl"
+include "noctalia.kdl"
+include "noctalia-binds.kdl"
diff --git a/dotfiles/.config/niri/noctalia-binds.kdl b/dotfiles/.config/niri/noctalia-binds.kdl
new file mode 100644
index 0000000..ca104cc
--- /dev/null
+++ b/dotfiles/.config/niri/noctalia-binds.kdl
@@ -0,0 +1,24 @@
+binds {
+ Mod+D { spawn-sh "qs -c noctalia-shell ipc call launcher toggle"; }
+ // this isn't dry but whatever
+ Menu { spawn-sh "qs -c noctalia-shell ipc call launcher toggle"; }
+
+ Mod+Ctrl+Shift+Space { spawn-sh "qs -c noctalia-shell ipc call notifications toggleHistory"; }
+ Mod+Ctrl+Space { spawn-sh "qs -c noctalia-shell ipc call notifications invokeDefaultAndDismiss"; }
+
+ Mod+Shift+E { spawn-sh "qs -c noctalia-shell ipc call sessionMenu toggle"; }
+ Mod+X { spawn-sh "qs -c noctalia-shell ipc call lockScreen lock"; }
+
+ Mod+F3 { spawn-sh "qs -c noctalia-shell ipc call settings open"; }
+ Mod+Backslash { spawn-sh "qs -c noctalia-shell ipc call controlCenter toggle"; }
+ Mod+Shift+Backslash { spawn-sh "qs -c noctalia-shell ipc call calendar toggle"; }
+}
+
+switch-events {
+ lid-close { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "sessionMenu" "lockAndSuspend"; }
+}
+
+layer-rule {
+ match namespace="^noctalia-overview*"
+ place-within-backdrop true
+}
diff --git a/dotfiles/.config/niri/noctalia.kdl b/dotfiles/.config/niri/noctalia.kdl
new file mode 100644
index 0000000..872e93c
--- /dev/null
+++ b/dotfiles/.config/niri/noctalia.kdl
@@ -0,0 +1,35 @@
+layout {
+
+ focus-ring {
+ active-color "#ffc799"
+ inactive-color "#0c0c0c"
+ urgent-color "#ff8080"
+ }
+
+ border {
+ active-color "#ffc799"
+ inactive-color "#0c0c0c"
+ urgent-color "#ff8080"
+ }
+
+ shadow {
+ color "#00000070"
+ }
+
+ tab-indicator {
+ active-color "#ffc799"
+ inactive-color "#e66800"
+ urgent-color "#ff8080"
+ }
+
+ insert-hint {
+ color "#ffc79980"
+ }
+}
+
+recent-windows {
+ highlight {
+ active-color "#ffc799"
+ urgent-color "#ff8080"
+ }
+}