feat(niri): commonize 2
This commit is contained in:
parent
0560adc22a
commit
6dc649642d
2 changed files with 39 additions and 35 deletions
|
@ -43,43 +43,41 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.niri = {
|
programs.niri.settings = {
|
||||||
settings = {
|
input = {
|
||||||
input = {
|
keyboard.xkb.layout = "fr";
|
||||||
keyboard.xkb.layout = "fr";
|
touchpad = {
|
||||||
touchpad = {
|
tap = true;
|
||||||
tap = true;
|
natural-scroll = true;
|
||||||
natural-scroll = true;
|
accel-profile = "flat";
|
||||||
accel-profile = "flat";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
outputs."eDP-1" = { scale = 1; };
|
};
|
||||||
layout.border.active.color = "#35f835e5";
|
outputs."eDP-1".scale = 1;
|
||||||
binds = with config.lib.niri.actions; {
|
layout.border.active.color = "#35f835e5";
|
||||||
"XF86AudioRaiseVolume" = {
|
binds = with config.lib.niri.actions; {
|
||||||
allow-when-locked = true;
|
"XF86AudioRaiseVolume" = {
|
||||||
action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+";
|
allow-when-locked = true;
|
||||||
};
|
action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+";
|
||||||
"XF86AudioLowerVolume" = {
|
|
||||||
allow-when-locked = true;
|
|
||||||
action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-";
|
|
||||||
};
|
|
||||||
"XF86AudioMute" = {
|
|
||||||
allow-when-locked = true;
|
|
||||||
action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
|
|
||||||
};
|
|
||||||
"XF86MonBrightnessDown" = {
|
|
||||||
allow-when-locked = true;
|
|
||||||
action = spawn "brightnessctl" "set" "10-";
|
|
||||||
};
|
|
||||||
"XF86MonBrightnessUp" = {
|
|
||||||
allow-when-locked = true;
|
|
||||||
action = spawn "brightnessctl" "set" "+10";
|
|
||||||
};
|
|
||||||
"Alt+TouchpadScrollDown".action = spawn "brightnessctl" "set" "10-";
|
|
||||||
"Alt+TouchpadScrollUp".action = spawn "brightnessctl" "set" "+10";
|
|
||||||
"XF86Display".action = power-off-monitors;
|
|
||||||
};
|
};
|
||||||
|
"XF86AudioLowerVolume" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1-";
|
||||||
|
};
|
||||||
|
"XF86AudioMute" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle";
|
||||||
|
};
|
||||||
|
"XF86MonBrightnessDown" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = spawn "brightnessctl" "set" "10-";
|
||||||
|
};
|
||||||
|
"XF86MonBrightnessUp" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = spawn "brightnessctl" "set" "+10";
|
||||||
|
};
|
||||||
|
"Alt+TouchpadScrollDown".action = spawn "brightnessctl" "set" "10-";
|
||||||
|
"Alt+TouchpadScrollUp".action = spawn "brightnessctl" "set" "+10";
|
||||||
|
"XF86Display".action = power-off-monitors;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,4 +28,10 @@
|
||||||
misc.animate_manual_resizes = true;
|
misc.animate_manual_resizes = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.niri.settings = {
|
||||||
|
input.keyboard.xkb.layout = "us";
|
||||||
|
outputs."HDMI-1".scale = 1;
|
||||||
|
layout.border.active.color = "#d966ff";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue