Skip to content

Commit 0929584

Browse files
committed
feat: dbus setup, niri basic keybind configs
1 parent 8c218ee commit 0929584

1 file changed

Lines changed: 78 additions & 9 deletions

File tree

system_files/etc/niri/config.kdl

Lines changed: 78 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
// spawn-at-startup "/usr/lib/polkit-kde-authentication-agent-1"
2-
// spawn-at-startup "/usr/lib/pam_kwallet_init"
1+
spawn-at-startup "systemctl" "--user" "import-environment" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP"
2+
spawn-at-startup "dbus-update-activation-environment" "--systemd" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP=niri"
3+
34
spawn-at-startup "qs" "-c" "noctalia-shell"
45

5-
input {
6-
keyboard {
7-
xkb { layout "us"; }
8-
numlock
9-
}
6+
screenshot-path "~/Pictures/Screenshots/Screenshot_%Y%m%d_%H%M%S.png"
107

11-
// focus-follows-mouse
8+
input {
9+
keyboard {
10+
xkb { layout "us"; }
11+
numlock
12+
}
1213
}
1314

1415
output "DP-1" {
@@ -17,9 +18,77 @@ output "DP-1" {
1718

1819
binds {
1920
Mod+Return cooldown-ms=500 { spawn "kitty"; }
20-
Mod+Space repeat=false { spawn-sh "qs -c noctalia-shell ipc call launcher toggle"; }
21+
Mod+Space repeat=false { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "launcher" "toggle"; }
22+
Mod+Shift+E { quit; }
23+
Mod+O repeat=false { toggle-overview; }
24+
Mod+Q repeat=false { close-window; }
25+
26+
Mod+Left { focus-column-left; }
27+
Mod+Down { focus-window-down; }
28+
Mod+Up { focus-window-up; }
29+
Mod+Right { focus-column-right; }
30+
Mod+H { focus-column-left; }
31+
Mod+J { focus-window-down; }
32+
Mod+K { focus-window-up; }
33+
Mod+L { focus-column-right; }
34+
Mod+Home { focus-column-first; }
35+
Mod+End { focus-column-last; }
36+
Mod+Page_Down { focus-workspace-down; }
37+
Mod+Page_Up { focus-workspace-up; }
38+
Mod+U { focus-workspace-down; }
39+
Mod+I { focus-workspace-up; }
40+
41+
Mod+Shift+Left { move-column-left; }
42+
Mod+Shift+Down { move-window-down; }
43+
Mod+Shift+Up { move-window-up; }
44+
Mod+Shift+Right { move-column-right; }
45+
Mod+Shift+H { move-column-left; }
46+
Mod+Shift+J { move-window-down; }
47+
Mod+Shift+K { move-window-up; }
48+
Mod+Shift+L { move-column-right; }
49+
Mod+Shift+Home { move-column-to-first; }
50+
Mod+Shift+End { move-column-to-last; }
51+
Mod+Shift+Page_Down { move-column-to-workspace-down; }
52+
Mod+Shift+Page_Up { move-column-to-workspace-up; }
53+
Mod+Shift+U { move-column-to-workspace-down; }
54+
Mod+Shift+I { move-column-to-workspace-up; }
55+
56+
Mod+1 { focus-workspace 1; }
57+
Mod+2 { focus-workspace 2; }
58+
Mod+3 { focus-workspace 3; }
59+
Mod+4 { focus-workspace 4; }
60+
Mod+5 { focus-workspace 5; }
61+
Mod+6 { focus-workspace 6; }
62+
Mod+7 { focus-workspace 7; }
63+
Mod+8 { focus-workspace 8; }
64+
Mod+9 { focus-workspace 9; }
65+
Mod+Shift+1 { move-column-to-workspace 1; }
66+
Mod+Shift+2 { move-column-to-workspace 2; }
67+
Mod+Shift+3 { move-column-to-workspace 3; }
68+
Mod+Shift+4 { move-column-to-workspace 4; }
69+
Mod+Shift+5 { move-column-to-workspace 5; }
70+
Mod+Shift+6 { move-column-to-workspace 6; }
71+
Mod+Shift+7 { move-column-to-workspace 7; }
72+
Mod+Shift+8 { move-column-to-workspace 8; }
73+
Mod+Shift+9 { move-column-to-workspace 9; }
74+
75+
Mod+C { center-column; }
76+
77+
Mod+Shift+A { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "lockScreen" "lock"; }
78+
Mod+Shift+S { spawn "qs" "-c" "noctalia-shell" "ipc" "call" "lockScreen" "lockAndSuspend"; }
79+
80+
Print { screenshot; }
81+
Shift+Print { screenshot-screen; }
82+
Mod+Print { screenshot-window; }
83+
84+
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; }
85+
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; }
86+
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
87+
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
2188
}
2289

90+
prefer-no-csd
91+
2392
window-rule {
2493
geometry-corner-radius 20
2594
clip-to-geometry true

0 commit comments

Comments
 (0)