create shared niri config, refactor generic feature modules
This commit is contained in:
23 files changed
+353
-410
No files matched your search
+1
-109
@@ -1,16 +1,7 @@
|
||||
include "./noctalia.kdl"
|
||||
|
||||
input {
|
||||
keyboard {
|
||||
xkb {
|
||||
layout "gb"
|
||||
model ""
|
||||
rules ""
|
||||
variant ""
|
||||
}
|
||||
repeat-delay 600
|
||||
repeat-rate 25
|
||||
track-layout "global"
|
||||
}
|
||||
touchpad {
|
||||
tap
|
||||
@@ -25,8 +16,6 @@ input {
|
||||
accel-profile "flat"
|
||||
}
|
||||
}
|
||||
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
||||
prefer-no-csd
|
||||
overview { zoom 0.5; }
|
||||
layout {
|
||||
gaps 12
|
||||
@@ -39,49 +28,13 @@ layout {
|
||||
focus-ring {
|
||||
width 1.25
|
||||
}
|
||||
border { off; }
|
||||
shadow {
|
||||
on
|
||||
offset x=0 y=5
|
||||
softness 15
|
||||
spread 2
|
||||
draw-behind-window false
|
||||
color "#00000070"
|
||||
}
|
||||
center-focused-column "never"
|
||||
}
|
||||
cursor {
|
||||
xcursor-theme "Bibata-Modern-Ice"
|
||||
xcursor-size 22
|
||||
}
|
||||
hotkey-overlay { skip-at-startup; }
|
||||
binds {
|
||||
Mod+B hotkey-overlay-title="Open web browser (Floorp)" { spawn "floorp"; }
|
||||
Mod+C hotkey-overlay-title="Open calculator (Qalculate)" { spawn "qalculate-qt"; }
|
||||
Mod+D hotkey-overlay-title="Application launcher" { spawn "noctalia" "msg" "panel-toggle" "launcher"; }
|
||||
Mod+E hotkey-overlay-title="Open file manager (Nautilus)" { spawn "nautilus" "-w"; }
|
||||
Mod+Return hotkey-overlay-title="Open terminal (Kitty)" { spawn "kitty"; }
|
||||
Mod+O hotkey-overlay-title="Open Obsidian" { spawn "obsidian"; }
|
||||
|
||||
Mod+Z hotkey-overlay-title="Apply NixOS config" { spawn "kitty" "zsh" "-i" "-c" "apply-config"; }
|
||||
|
||||
Mod+K { show-hotkey-overlay; }
|
||||
|
||||
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 hotkey-overlay-title="Lock session" { spawn "noctalia" "msg" "session" "lock"; }
|
||||
Mod+Shift+D hotkey-overlay-title="Edit desktop widgets" { spawn "noctalia" "msg" "desktop-widgets-edit"; }
|
||||
Mod+Shift+B hotkey-overlay-title="Open bar settings" { spawn "noctalia" "msg" "settings-open" "bar"; }
|
||||
Mod+Shift+S hotkey-overlay-title="Open settings" { spawn "noctalia" "msg" "settings-open"; }
|
||||
Mod+Period hotkey-overlay-title="Open control center" { spawn "noctalia" "msg" "panel-toggle" "control-center"; }
|
||||
Mod+Shift+P hotkey-overlay-title="Open power menu" { spawn "noctalia" "msg" "panel-toggle" "session"; }
|
||||
Mod+V hotkey-overlay-title="Show clipboard helper" { spawn "noctalia" "msg" "panel-toggle" "clipboard"; }
|
||||
Mod+P hotkey-overlay-title="Show power info" { spawn "noctalia" "msg" "panel-toggle" "control-center" "power"; }
|
||||
Ctrl+Shift+Escape { spawn "noctalia" "msg" "panel-toggle" "control-center" "system"; }
|
||||
Mod+Comma { spawn "noctalia" "msg" "panel-toggle" "dunarand/bookmarks:panel" "search"; }
|
||||
|
||||
Mod+TouchpadScrollUp cooldown-ms=250 { focus-workspace-up; }
|
||||
@@ -89,45 +42,13 @@ binds {
|
||||
Mod+TouchpadScrollLeft cooldown-ms=150 { focus-column-left; }
|
||||
Mod+TouchpadScrollRight cooldown-ms=150 { focus-column-right; }
|
||||
|
||||
Mod+Up { focus-workspace-up; }
|
||||
Mod+Down { focus-workspace-down; }
|
||||
Mod+Left { focus-column-left; }
|
||||
Mod+Right { focus-column-right; }
|
||||
|
||||
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+equal { set-column-width "+2%"; }
|
||||
Mod+minus { set-column-width "-2%"; }
|
||||
|
||||
XF86AudioLowerVolume { spawn "noctalia" "msg" "volume-down" "5"; }
|
||||
XF86AudioRaiseVolume { spawn "noctalia" "msg" "volume-up" "5"; }
|
||||
XF86AudioMute { spawn "noctalia" "msg" "volume-mute"; }
|
||||
XF86AudioMicMute { spawn "noctalia" "msg" "mic-mute"; }
|
||||
XF86MonBrightnessDown { spawn "noctalia" "msg" "brightness-down" "5"; }
|
||||
XF86MonBrightnessUp { spawn "noctalia" "msg" "brightness-up" "5"; }
|
||||
XF86WLAN { spawn-sh "rfkill toggle 0 || rfkill toggle 1"; }
|
||||
XF86NotificationCenter { spawn "noctalia" "msg" "panel-toggle" "control-center" "notifications"; }
|
||||
XF86Display { toggle-overview; }
|
||||
XF86Favorites { spawn "niri-toggle-dwt"; }
|
||||
Print { screenshot; }
|
||||
Shift+Print { screenshot-window; }
|
||||
|
||||
Mod+Slash { spawn "niri-scratch-workspace-toggle"; }
|
||||
Mod+Shift+Slash { move-window-to-workspace "x" focus=false; }
|
||||
}
|
||||
workspace "x" {
|
||||
hidden true
|
||||
}
|
||||
spawn-at-startup "noctalia"
|
||||
spawn-at-startup "niri-listen-for-scratch-workspace-change"
|
||||
spawn-at-startup "niri-clear-state"
|
||||
window-rule {
|
||||
draw-border-with-background false
|
||||
geometry-corner-radius 2
|
||||
clip-to-geometry true
|
||||
}
|
||||
window-rule {
|
||||
match app-id="^floorp$"
|
||||
@@ -140,35 +61,6 @@ window-rule {
|
||||
match app-id="^kitty$"
|
||||
default-column-width { proportion 0.58; }
|
||||
}
|
||||
gestures { hot-corners { off; }; }
|
||||
switch-events {
|
||||
lid-close { spawn "bash" "-c" "noctalia msg session lock && systemctl hibernate"; }
|
||||
}
|
||||
animations {
|
||||
on
|
||||
slowdown 1.0
|
||||
workspace-switch {
|
||||
spring damping-ratio=0.95 stiffness=600 epsilon=0.0001
|
||||
}
|
||||
window-open {
|
||||
duration-ms 125
|
||||
curve "ease-out-expo"
|
||||
}
|
||||
window-close {
|
||||
duration-ms 125
|
||||
curve "ease-out-quad"
|
||||
}
|
||||
horizontal-view-movement {
|
||||
spring damping-ratio=0.95 stiffness=600 epsilon=0.0001
|
||||
}
|
||||
window-movement {
|
||||
spring damping-ratio=0.9 stiffness=750 epsilon=0.0001
|
||||
}
|
||||
window-resize {
|
||||
spring damping-ratio=0.8 stiffness=650 epsilon=0.0001
|
||||
}
|
||||
}
|
||||
layer-rule {
|
||||
match namespace="^noctalia-backdrop"
|
||||
place-within-backdrop true
|
||||
lid-close { spawn "systemctl hibernate"; }
|
||||
}
|
||||
Reference in new issue
Block a user