home/programs/niri: add play/pause, add settings button on fn key f12
This commit is contained in:
parent
8b7164739d
commit
5ccb424079
2 changed files with 7 additions and 6 deletions
|
@ -140,6 +140,9 @@ in {
|
|||
action.spawn = ["wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"];
|
||||
allow-when-locked = true;
|
||||
};
|
||||
"XF86AudioPlay" = {
|
||||
action.spawn = ["playerctl" "play-pause"];
|
||||
};
|
||||
"XF86MonBrightnessUp" = {
|
||||
action.spawn = ["brillo" "-q" "-u 300000" "-A 5"];
|
||||
allow-when-locked = true;
|
||||
|
@ -148,5 +151,9 @@ in {
|
|||
action.spawn = ["brillo" "-q" "-u 300000" "-U 5"];
|
||||
allow-when-locked = true;
|
||||
};
|
||||
# set on media key since framework laptops have a gear as the button label
|
||||
"XF86AudioMedia" = {
|
||||
action.spawn = ["sh" "-c" "env XDG_CURRENT_DESKTOP=gnome gnome-control-center"];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,18 +3,12 @@
|
|||
lib,
|
||||
pkgs,
|
||||
osConfig,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
colors = inputs.basix.schemeData.base16.${osConfig.style.scheme}.palette;
|
||||
in {
|
||||
imports = [./binds.nix];
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [pkgs.xdg-desktop-portal pkgs.xdg-desktop-portal-gnome];
|
||||
configPackages = [config.programs.niri.package];
|
||||
};
|
||||
programs.niri = {
|
||||
settings = {
|
||||
input.keyboard.xkb = {
|
||||
|
|
Loading…
Reference in a new issue