62 lines
No EOL
1.3 KiB
Nix
62 lines
No EOL
1.3 KiB
Nix
{ 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
|
|
] |