more readable format
This commit is contained in:
parent
10a118f234
commit
5c6b231f56
4 changed files with 126 additions and 118 deletions
62
modules/home/nyxerinys/linux/hyprland/binds.nix
Normal file
62
modules/home/nyxerinys/linux/hyprland/binds.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
mainMod = "SUPER";
|
||||
appBinds = [
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + c"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.exec_cmd("kitty")'')
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + e"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.exec_cmd("nautilus")'')
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + q"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.window.close()'')
|
||||
];
|
||||
}
|
||||
];
|
||||
windowBinds = [
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + s"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.workspace.toggle_special("special")'')
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + SHIFT + s"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.window.move({ workspace = "special:special", follow = true })'')
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + mouse:272"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.window.drag()'')
|
||||
{ mouse = true; }
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + mouse:273"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.window.resize()'')
|
||||
{ mouse = true; }
|
||||
];
|
||||
}
|
||||
{
|
||||
_args = [
|
||||
"${mainMod} + f"
|
||||
(lib.generators.mkLuaInline ''hl.dsp.window.fullscreen({mode = "fullscreen", action = "toggle"})'')
|
||||
];
|
||||
}
|
||||
];
|
||||
in
|
||||
builtins.concatLists [
|
||||
appBinds
|
||||
windowBinds
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue