framework: niri brightness and quit keys
This commit is contained in:
parent
76306f2caf
commit
f7307329ab
2 changed files with 29 additions and 3 deletions
|
|
@ -187,7 +187,8 @@ in {
|
|||
{
|
||||
name = "raise-volume";
|
||||
text = ''
|
||||
${my-deps.amixer} sset Master 5%+ && ${my-deps.amixer} sset Master unmute
|
||||
wpctl "set-volume" "@DEFAULT_AUDIO_SINK@" "0.1+" -l 1.0
|
||||
notify-volume
|
||||
'';
|
||||
hotkeys = [
|
||||
{key = "bracketright";}
|
||||
|
|
@ -196,12 +197,24 @@ in {
|
|||
key = "XF86AudioRaiseVolume";
|
||||
}
|
||||
];
|
||||
install = false;
|
||||
install = true;
|
||||
}
|
||||
{
|
||||
name = "notify-volume";
|
||||
text = ''
|
||||
vol=$(wpctl get-volume "@DEFAULT_AUDIO_SINK@" | cut -d"." -f2)
|
||||
|
||||
${my-deps.notify-send} "Volume" -h "int:value:$vol" -h string:x-canonical-private-synchronous:volume -t 3000
|
||||
'';
|
||||
hotkeys = [];
|
||||
install = true;
|
||||
}
|
||||
{
|
||||
name = "lower-volume";
|
||||
text = ''
|
||||
${my-deps.amixer} sset Master 5%-
|
||||
|
||||
notify-volume
|
||||
'';
|
||||
hotkeys = [
|
||||
{key = "bracketleft";}
|
||||
|
|
@ -210,7 +223,7 @@ in {
|
|||
key = "XF86AudioLowerVolume";
|
||||
}
|
||||
];
|
||||
install = false;
|
||||
install = true;
|
||||
}
|
||||
{
|
||||
name = "skip-track";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue