summaryrefslogtreecommitdiffstats
path: root/usecases/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'usecases/desktop')
-rw-r--r--usecases/desktop/graphical/niri.kdl14
-rw-r--r--usecases/desktop/graphical/niri.nix6
2 files changed, 16 insertions, 4 deletions
diff --git a/usecases/desktop/graphical/niri.kdl b/usecases/desktop/graphical/niri.kdl
index f9ead23..aa5e610 100644
--- a/usecases/desktop/graphical/niri.kdl
+++ b/usecases/desktop/graphical/niri.kdl
@@ -246,7 +246,11 @@ layout {
246// Note that running niri as a session supports xdg-desktop-autostart, 246// Note that running niri as a session supports xdg-desktop-autostart,
247// which may be more convenient to use. 247// which may be more convenient to use.
248// See the binds section below for more spawn examples. 248// See the binds section below for more spawn examples.
249// spawn-at-startup "alacritty" "-e" "fish" 249spawn-at-startup "xwayland-satellite"
250
251environment {
252 DISPLAY ":0"
253}
250 254
251// Uncomment this line to ask the clients to omit their client-side decorations if possible. 255// Uncomment this line to ask the clients to omit their client-side decorations if possible.
252// If the client will specifically ask for CSD, the request will be honored. 256// If the client will specifically ask for CSD, the request will be honored.
@@ -337,6 +341,7 @@ binds {
337 Super+Alt+L { spawn "swaylock"; } 341 Super+Alt+L { spawn "swaylock"; }
338 342
339 Mod+Period { spawn "swaync-client" "-t"; } 343 Mod+Period { spawn "swaync-client" "-t"; }
344 Mod+Shift+Semicolon { spawn "swaync-client" "-t"; }
340 345
341 // You can also use a shell. Do this if you need pipes, multiple commands, etc. 346 // You can also use a shell. Do this if you need pipes, multiple commands, etc.
342 // Note: the entire command goes as a single argument in the end. 347 // Note: the entire command goes as a single argument in the end.
@@ -344,11 +349,14 @@ binds {
344 349
345 // Example volume keys mappings for PipeWire & WirePlumber. 350 // Example volume keys mappings for PipeWire & WirePlumber.
346 // The allow-when-locked=true property makes them work even when the session is locked. 351 // The allow-when-locked=true property makes them work even when the session is locked.
347 XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+"; } 352 XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05+"; }
348 XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-"; } 353 XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.05-"; }
349 XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } 354 XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
350 XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; } 355 XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
351 356
357 XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "--" "+10%"; }
358 XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "--" "-10%"; }
359
352 Mod+Q { close-window; } 360 Mod+Q { close-window; }
353 361
354 Mod+Left { focus-column-left; } 362 Mod+Left { focus-column-left; }
diff --git a/usecases/desktop/graphical/niri.nix b/usecases/desktop/graphical/niri.nix
index 85960dd..21c3946 100644
--- a/usecases/desktop/graphical/niri.nix
+++ b/usecases/desktop/graphical/niri.nix
@@ -24,7 +24,11 @@ in
24 24
25 programs.niri.enable = true; 25 programs.niri.enable = true;
26 26
27 environment.systemPackages = [ pkgs.walker ]; 27 environment.systemPackages = with pkgs; [
28 brightnessctl
29 walker
30 xwayland-satellite
31 ];
28 32
29 home-manager.users.minijackson.xdg.configFile."niri/config.kdl".source = ./niri.kdl; 33 home-manager.users.minijackson.xdg.configFile."niri/config.kdl".source = ./niri.kdl;
30 34