add sway displays
This commit is contained in:
parent
7d549912c6
commit
954c85f23b
5 changed files with 81 additions and 43 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ...}:
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
my-deps = {
|
||||
notify-send = "${pkgs.libnotify}/bin/notify-send";
|
||||
|
|
@ -37,8 +37,8 @@ in
|
|||
fi
|
||||
'';
|
||||
hotkeys = [
|
||||
{key = "W";}
|
||||
{modifier = ""; key = "XF86AudioPlay";}
|
||||
{ key = "W"; }
|
||||
{ modifier = ""; key = "XF86AudioPlay"; }
|
||||
];
|
||||
}
|
||||
{
|
||||
|
|
@ -47,7 +47,7 @@ in
|
|||
items="$(rbw list)"
|
||||
echo "$items" | ${ my-deps.menu } | xargs -I_ rbw get _ | wl-copy
|
||||
'';
|
||||
hotkeys = [ { key = "P"; } ];
|
||||
hotkeys = [{ key = "P"; }];
|
||||
install = false;
|
||||
}
|
||||
{
|
||||
|
|
@ -56,7 +56,7 @@ in
|
|||
items="$(rbw list)"
|
||||
echo "$items" | ${ my-deps.menu } | xargs -I_ rbw code _ | wl-copy
|
||||
'';
|
||||
hotkeys = [ { modifier = "SUPER_SHIFT"; key = "P"; } ];
|
||||
hotkeys = [{ modifier = "SUPER_SHIFT"; key = "P"; }];
|
||||
install = false;
|
||||
}
|
||||
{
|
||||
|
|
@ -72,7 +72,7 @@ in
|
|||
cat "$FILE" | wl-copy -t image/png
|
||||
'';
|
||||
hotkeys = [
|
||||
{modifier = "SUPER_SHIFT"; key = "S";}
|
||||
{ modifier = "SUPER_SHIFT"; key = "S"; }
|
||||
];
|
||||
}
|
||||
{
|
||||
|
|
@ -82,8 +82,8 @@ in
|
|||
${my-deps.notify-send} "Brightness" -h int:value:$(light) -a brightness-down -t 1000
|
||||
'';
|
||||
hotkeys = [
|
||||
{modifier = ""; key = "XF86MonBrightnessDown"; args = "10";}
|
||||
{modifier = "SHIFT"; key = "XF86MonBrightnessDown"; args = "1";}
|
||||
{ modifier = ""; key = "XF86MonBrightnessDown"; args = "10"; }
|
||||
{ modifier = "SHIFT"; key = "XF86MonBrightnessDown"; args = "1"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -94,8 +94,8 @@ in
|
|||
${my-deps.notify-send} "Brightness" -h int:value:$(light) -a brightness-up -t 1000
|
||||
'';
|
||||
hotkeys = [
|
||||
{modifier = ""; key = "XF86MonBrightnessUp"; args = "10";}
|
||||
{modifier = "SHIFT"; key = "XF86MonBrightnessUp"; args = "1";}
|
||||
{ modifier = ""; key = "XF86MonBrightnessUp"; args = "10"; }
|
||||
{ modifier = "SHIFT"; key = "XF86MonBrightnessUp"; args = "1"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ in
|
|||
${my-deps.xargs} -I_ ${my-deps.hyprctl} dispatch focuswindow title:"_"
|
||||
'';
|
||||
hotkeys = [
|
||||
{key = "TAB";}
|
||||
{ key = "TAB"; }
|
||||
];
|
||||
}
|
||||
{
|
||||
|
|
@ -168,8 +168,8 @@ in
|
|||
${my-deps.amixer} sset Master 5%+ && ${my-deps.amixer} sset Master unmute
|
||||
'';
|
||||
hotkeys = [
|
||||
{key = "bracketright";}
|
||||
{modifier = ""; key = "XF86AudioRaiseVolume";}
|
||||
{ key = "bracketright"; }
|
||||
{ modifier = ""; key = "XF86AudioRaiseVolume"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -179,8 +179,8 @@ in
|
|||
${ my-deps.amixer } sset Master 5%-
|
||||
'';
|
||||
hotkeys = [
|
||||
{key = "bracketleft";}
|
||||
{modifier = ""; key = "XF86AudioLowerVolume";}
|
||||
{ key = "bracketleft"; }
|
||||
{ modifier = ""; key = "XF86AudioLowerVolume"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -190,8 +190,8 @@ in
|
|||
${my-deps.playerctl} next
|
||||
'';
|
||||
hotkeys = [
|
||||
{modifier = "SUPER_SHIFT"; key = "period";}
|
||||
{modifier = ""; key = "XF86AudioNext";}
|
||||
{ modifier = "SUPER_SHIFT"; key = "period"; }
|
||||
{ modifier = ""; key = "XF86AudioNext"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -201,8 +201,8 @@ in
|
|||
${my-deps.playerctl} previous
|
||||
'';
|
||||
hotkeys = [
|
||||
{modifier = "SUPER_SHIFT"; key = "comma";}
|
||||
{modifier = ""; key = "XF86AudioPrev";}
|
||||
{ modifier = "SUPER_SHIFT"; key = "comma"; }
|
||||
{ modifier = ""; key = "XF86AudioPrev"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -210,7 +210,7 @@ in
|
|||
name = "terminal";
|
||||
text = my-deps.terminal;
|
||||
hotkeys = [
|
||||
{key = "RETURN";}
|
||||
{ key = "RETURN"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -218,7 +218,7 @@ in
|
|||
name = "fileman";
|
||||
text = my-deps.fileman;
|
||||
hotkeys = [
|
||||
{key = "O";}
|
||||
{ key = "O"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
|
|
@ -233,9 +233,9 @@ in
|
|||
esac
|
||||
'';
|
||||
hotkeys = [
|
||||
{key = "Z";}
|
||||
{ key = "Z"; }
|
||||
];
|
||||
install = false;
|
||||
}
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue