create shared niri config, refactor generic feature modules
This commit is contained in:
23 files changed
+353
-410
No files matched your search
+5
-106
@@ -1,22 +1,14 @@
|
||||
include "./noctalia.kdl"
|
||||
include "./shared.kdl"
|
||||
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
layout "gb"
|
||||
model ""
|
||||
rules ""
|
||||
variant ""
|
||||
}
|
||||
repeat-delay 600
|
||||
repeat-rate 25
|
||||
track-layout "global"
|
||||
numlock
|
||||
}
|
||||
mouse {
|
||||
accel-speed 0.25
|
||||
accel-profile "flat"
|
||||
}
|
||||
focus-follows-mouse max-scroll-amount="0%"
|
||||
}
|
||||
|
||||
output "DP-2" {
|
||||
@@ -34,75 +26,33 @@ output "HDMI-A-1" {
|
||||
transform "270"
|
||||
position x=-1080 y=-250
|
||||
}
|
||||
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
prefer-no-csd
|
||||
overview { zoom 0.67; }
|
||||
layout {
|
||||
gaps 16
|
||||
struts {
|
||||
left 24
|
||||
right 24
|
||||
top -8
|
||||
top -12
|
||||
bottom -4
|
||||
}
|
||||
focus-ring {
|
||||
width 1.5
|
||||
}
|
||||
border { off; }
|
||||
shadow {
|
||||
on
|
||||
offset x=0.000000 y=5.000000
|
||||
softness 30.000000
|
||||
spread 5.000000
|
||||
draw-behind-window false
|
||||
color "#00000070"
|
||||
}
|
||||
default-column-width
|
||||
center-focused-column "never"
|
||||
always-center-single-column
|
||||
empty-workspace-above-first
|
||||
}
|
||||
cursor {
|
||||
xcursor-theme "Bibata-Modern-Ice"
|
||||
xcursor-size 22
|
||||
}
|
||||
hotkey-overlay { skip-at-startup; }
|
||||
binds {
|
||||
Mod+B { spawn "zen-browser"; }
|
||||
Mod+C { spawn "kcalc"; }
|
||||
Mod+D { spawn "noctalia" "msg" "panel-toggle" "launcher"; }
|
||||
Mod+E { spawn "dolphin"; }
|
||||
Mod+Return { spawn "kitty"; }
|
||||
Mod+O { spawn "obsidian"; }
|
||||
|
||||
ISO_Level3_Shift+Comma { spawn "equibop" "--toggle-mic"; }
|
||||
ISO_Level3_Shift+Period { spawn "equibop" "--toggle-deafen"; }
|
||||
|
||||
Mod+Space { toggle-overview; }
|
||||
Mod+Q { close-window; }
|
||||
Mod+F { maximize-window-to-edges; }
|
||||
Mod+Shift+F { fullscreen-window; }
|
||||
Mod+Shift+E { quit; }
|
||||
|
||||
Mod+L { spawn "noctalia" "msg" "session" "lock"; }
|
||||
Mod+Shift+D { spawn "noctalia" "msg" "desktop-widgets-edit"; }
|
||||
Mod+Shift+B { spawn "noctalia" "msg" "settings-open" "bar"; }
|
||||
Mod+Shift+S { spawn "noctalia" "msg" "settings-open"; }
|
||||
Mod+Period { spawn "noctalia" "msg" "panel-toggle" "control-center"; }
|
||||
Mod+W { spawn "noctalia" "msg" "panel-toggle" "wallpaper"; }
|
||||
Mod+Shift+P { spawn "noctalia" "msg" "panel-toggle" "session"; }
|
||||
Mod+V { spawn "noctalia" "msg" "panel-toggle" "clipboard"; }
|
||||
Mod+P { spawn "noctalia" "msg" "panel-toggle" "control-center" "power"; }
|
||||
Ctrl+Shift+Escape { spawn "noctalia" "msg" "panel-toggle" "control-center" "system"; }
|
||||
|
||||
Mod+A { spawn "toggle-easyeffects"; }
|
||||
|
||||
Mod+Up { focus-workspace-up; }
|
||||
Mod+Down { focus-workspace-down; }
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Right { focus-column-right; }
|
||||
|
||||
Mod+WheelScrollUp { focus-column-left; }
|
||||
Mod+WheelScrollDown { focus-column-right; }
|
||||
Mod+Shift+WheelScrollUp { focus-workspace-up; }
|
||||
@@ -111,11 +61,6 @@ binds {
|
||||
Mod+equal { set-column-width "+5%"; }
|
||||
Mod+minus { set-column-width "-5%"; }
|
||||
|
||||
Mod+Shift+Up { move-window-to-workspace-up; }
|
||||
Mod+Shift+Down { move-window-to-workspace-down; }
|
||||
Mod+Shift+Left { move-column-left; }
|
||||
Mod+Shift+Right { move-column-right; }
|
||||
|
||||
Mod+Control+Left { focus-monitor-left; }
|
||||
Mod+Control+Right { focus-monitor-right; }
|
||||
|
||||
@@ -125,59 +70,23 @@ binds {
|
||||
Mod+Shift+Control+Left { move-window-to-monitor-left; }
|
||||
Mod+Shift+Control+Right { move-window-to-monitor-right; }
|
||||
|
||||
XF86AudioLowerVolume { spawn "noctalia" "msg" "volume-down" "5"; }
|
||||
XF86AudioRaiseVolume { spawn "noctalia" "msg" "volume-up" "5"; }
|
||||
XF86AudioMute { spawn "noctalia" "msg" "volume-mute"; }
|
||||
Print { screenshot; }
|
||||
Mod+XF86AudioRaiseVolume cooldown-ms=250 { spawn "increase-brightness" "/dev/i2c-10"; }
|
||||
Mod+XF86AudioLowerVolume cooldown-ms=250 { spawn "decrease-brightness" "/dev/i2c-10"; }
|
||||
Mod+Shift+XF86AudioRaiseVolume cooldown-ms=250 { spawn "increase-brightness" "/dev/i2c-6"; }
|
||||
Mod+Shift+XF86AudioLowerVolume cooldown-ms=250 { spawn "decrease-brightness" "/dev/i2c-6"; }
|
||||
|
||||
Mod+Slash { spawn "niri-scratch-workspace-toggle"; }
|
||||
Mod+Shift+Slash { move-window-to-workspace "x" focus=false; }
|
||||
|
||||
Mod+X { toggle-window-floating; }
|
||||
Mod+Z { spawn "kitty" "zsh" "-i" "-c" "apply-config"; }
|
||||
}
|
||||
workspace "x" {
|
||||
hidden true
|
||||
layout {
|
||||
focus-ring {
|
||||
width 3
|
||||
active-color "#a33d3d"
|
||||
}
|
||||
}
|
||||
}
|
||||
spawn-at-startup "noctalia"
|
||||
spawn-at-startup "niri-listen-for-scratch-workspace-change"
|
||||
window-rule {
|
||||
draw-border-with-background false
|
||||
geometry-corner-radius 4
|
||||
clip-to-geometry true
|
||||
}
|
||||
window-rule { // Maximized on vertical monitor
|
||||
match at-startup=true app-id="^equibop$"
|
||||
open-maximized-to-edges true
|
||||
open-on-output "HDMI-A-1"
|
||||
}
|
||||
window-rule { // Steam windows float (excluding main window)
|
||||
match app-id="^steam$"
|
||||
exclude title="^Steam$"
|
||||
exclude title=r#"^notificationtoasts_\d+_desktop$"#
|
||||
default-window-height { proportion 0.5; }
|
||||
open-floating true
|
||||
open-focused true
|
||||
}
|
||||
window-rule {
|
||||
match app-id="steam" title=r#"^notificationtoasts_\d+_desktop$"#
|
||||
default-floating-position x=10 y=10 relative-to="bottom-right"
|
||||
open-focused false
|
||||
}
|
||||
window-rule { // Maximized on main monitor
|
||||
match at-startup=true app-id="^steam$" title="^Steam$"
|
||||
open-maximized-to-edges true
|
||||
open-on-output "HDMI-A-1"
|
||||
open-on-output "DP-2"
|
||||
}
|
||||
window-rule { // Fullscreen on main monitor
|
||||
match app-id="^steam_app_\\d+$"
|
||||
@@ -196,14 +105,4 @@ window-rule {
|
||||
window-rule {
|
||||
match app-id="^org\\.prismlauncher\\.PrismLauncher$"
|
||||
default-window-height { fixed 750; }
|
||||
}
|
||||
gestures { hot-corners { off; }; }
|
||||
animations {
|
||||
on
|
||||
slowdown 1.25
|
||||
}
|
||||
layer-rule {
|
||||
match namespace="^noctalia-backdrop"
|
||||
place-within-backdrop true
|
||||
}
|
||||
include "noctalia.kdl"
|
||||
}
|
||||
Reference in new issue
Block a user