updated hyprland to allow for extra config. this way other services can register hyprland functionality. did extactly that for gpu screen recorder

This commit is contained in:
2026-09-23 21:48:22 +02:00
parent 95d6b0b257
commit e352d52d40
6 changed files with 101 additions and 60 deletions
+11
View File
@@ -7,4 +7,15 @@
libnotify
];
};
# This modules requires the dotfiles-modules.homeManager.hyprland modules to be imported
# It adds the relevant scripts and shortcuts to be used in hyprland
flake.modules.homeManager.gpu-screenrecorder = {
dotfiles-modules.hyprland.extraConfig = ''
hl.bind(MainMod .. " + SHIFT + V", hl.dsp.exec_cmd("${./gpu_screenrecorder/save-replay.sh}"))
hl.on("hyprland.start", function()
hl.exec_cmd("${./gpu_screenrecorder/start-replay.sh}")
end)
'';
};
}