mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-05-05 02:14:57 +02:00
wm/niri: Add a key to present
This commit is contained in:
parent
cef4aa7ae3
commit
6877484085
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ lib.mkIf (config.traxys.wm == "niri") {
|
|||
home.packages = with pkgs; [
|
||||
swaybg
|
||||
config.traxys.pkgs.xwayland-satellite-unstable
|
||||
wl-mirror
|
||||
];
|
||||
|
||||
services.gnome-keyring.enable = true;
|
||||
|
|
@ -85,6 +86,7 @@ ckgrounds/nixos/nix-wallpaper-simple-dark-gray.png";
|
|||
let
|
||||
inherit (config.lib.niri.actions)
|
||||
spawn
|
||||
spawn-sh
|
||||
close-window
|
||||
show-hotkey-overlay
|
||||
toggle-overview
|
||||
|
|
@ -200,6 +202,8 @@ ckgrounds/nixos/nix-wallpaper-simple-dark-gray.png";
|
|||
"Mod+Shift+KP_Subtract".action = set-window-height "-10%";
|
||||
"Mod+Shift+KP_Add".action = set-window-height "+10%";
|
||||
|
||||
"Mod+P".action = spawn-sh "wl-mirror $(niri msg --json focused-output | jq -r .name)";
|
||||
|
||||
# Media Keys
|
||||
"XF86AudioRaiseVolume" = {
|
||||
action = spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-volume" "@DEFAULT_SINK@" "'+10%'";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue