aboutsummaryrefslogtreecommitdiff
path: root/home/rices/finals/niri/kdl
diff options
context:
space:
mode:
Diffstat (limited to 'home/rices/finals/niri/kdl')
-rw-r--r--home/rices/finals/niri/kdl/binds.kdl77
-rw-r--r--home/rices/finals/niri/kdl/input.kdl21
-rw-r--r--home/rices/finals/niri/kdl/style.kdl33
3 files changed, 131 insertions, 0 deletions
diff --git a/home/rices/finals/niri/kdl/binds.kdl b/home/rices/finals/niri/kdl/binds.kdl
new file mode 100644
index 0000000..171d31c
--- /dev/null
+++ b/home/rices/finals/niri/kdl/binds.kdl
@@ -0,0 +1,77 @@
+binds {
+ // spawn
+ Mod+Return repeat=false { spawn "kitty"; }
+ Mod+D repeat=false { spawn "fuzzel"; }
+ Mod+N repeat=false { spawn "firefox"; }
+
+ // session
+ Mod+Ctrl+Shift+E { quit; }
+ Mod+Shift+Q { close-window; }
+ Mod+Ctrl+Shift+P { power-off-monitors; }
+ Mod+Shift+Slash { show-hotkey-overlay; }
+
+ // focus (vim keys)
+ Mod+H { focus-column-left; }
+ Mod+J { focus-window-down; }
+ Mod+K { focus-window-up; }
+ Mod+L { focus-column-right; }
+
+ // focus (arrow keys)
+ Mod+Left { focus-column-left; }
+ Mod+Down { focus-window-down; }
+ Mod+Up { focus-window-up; }
+ Mod+Right { focus-column-right; }
+
+ // move windows (vim keys)
+ Mod+Shift+H { move-column-left; }
+ Mod+Shift+J { move-window-down; }
+ Mod+Shift+K { move-window-up; }
+ Mod+Shift+L { move-column-right; }
+
+ // move windows (arrow keys)
+ Mod+Shift+Left { move-column-left; }
+ Mod+Shift+Down { move-window-down; }
+ Mod+Shift+Up { move-window-up; }
+ Mod+Shift+Right { move-column-right; }
+
+ Mod+R { switch-preset-column-width; }
+ Mod+Space { toggle-overview; }
+ Mod+V { toggle-window-floating; }
+
+ // workspaces
+ Mod+1 { focus-workspace 1; }
+ Mod+2 { focus-workspace 2; }
+ Mod+3 { focus-workspace 3; }
+ Mod+4 { focus-workspace 4; }
+ Mod+5 { focus-workspace 5; }
+ Mod+Ctrl+1 { move-column-to-workspace 1; }
+ Mod+Ctrl+2 { move-column-to-workspace 2; }
+ Mod+Ctrl+3 { move-column-to-workspace 3; }
+ Mod+Ctrl+4 { move-column-to-workspace 4; }
+ Mod+Ctrl+5 { move-column-to-workspace 5; }
+
+ // monitor controls
+ Mod+Ctrl+H { focus-monitor-left; }
+ Mod+Ctrl+L { focus-monitor-right; }
+ Mod+Shift+Ctrl+H { move-column-to-monitor-left; }
+ Mod+Shift+Ctrl+L { move-column-to-monitor-right; }
+
+ // column editing
+ Mod+BracketLeft { consume-or-expel-window-left; }
+ Mod+BracketRight { consume-or-expel-window-right; }
+ Mod+C { center-column; }
+ Mod+Minus { set-column-width "-5%"; }
+ Mod+Equal { set-column-width "+5%"; }
+ Mod+F { maximize-column; }
+ Mod+Ctrl+F { fullscreen-window; }
+
+ // media keys
+ XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"; }
+ XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+"; }
+ XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
+ XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
+
+ // brightness
+ XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; }
+ XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; }
+}
diff --git a/home/rices/finals/niri/kdl/input.kdl b/home/rices/finals/niri/kdl/input.kdl
new file mode 100644
index 0000000..a610dc9
--- /dev/null
+++ b/home/rices/finals/niri/kdl/input.kdl
@@ -0,0 +1,21 @@
+input {
+ keyboard {
+ xkb {
+ layout "us"
+ }
+
+ repeat-delay 600
+ repeat-rate 25
+ track-layout "global"
+ }
+
+ touchpad {
+ dwt
+ dwtp
+ natural-scroll
+ }
+
+ mouse {
+ accel-profile "flat"
+ }
+}
diff --git a/home/rices/finals/niri/kdl/style.kdl b/home/rices/finals/niri/kdl/style.kdl
new file mode 100644
index 0000000..46ec587
--- /dev/null
+++ b/home/rices/finals/niri/kdl/style.kdl
@@ -0,0 +1,33 @@
+prefer-no-csd
+
+cursor {
+ hide-when-typing
+ hide-after-inactive-ms 10000
+}
+
+layout {
+ gaps 15
+ focus-ring { off; }
+ border {
+ on
+ width 3
+ }
+ default-column-width
+ center-focused-column "never"
+}
+
+window-rule {
+ geometry-corner-radius 1
+ clip-to-geometry true
+}
+
+layer-rule {
+ match namespace="launcher"
+ geometry-corner-radius 10
+ shadow {
+ on
+ offset x=0 y=0
+ softness 40
+ }
+ baba-is-float true
+}