update, hyprland settings

This commit is contained in:
tristan 2023-12-17 18:55:28 +00:00
parent 3409811d55
commit 126584cbcd
10 changed files with 202 additions and 212 deletions

View file

@ -50,15 +50,11 @@ let
bindScript = script: concatStrings (
map
(hotkey: ''
bind = ${hotkey.modifier}, ${hotkey.key}, exec, ${scriptExec {inherit script hotkey;}}
'')
(hotkey:
"${hotkey.modifier}, ${hotkey.key}, exec, ${scriptExec {inherit script hotkey;}}"
)
script.hotkeys);
bindScripts = scripts:
"# === USER SCRIPTS MODULE ===\n"
+ concatStringsSep "\n" (map bindScript scripts);
in
{
options.programs = {
@ -71,7 +67,7 @@ in
config = {
home-manager.users.${user}.imports = [{
home.packages = installScripts scripts;
wayland.windowManager.hyprland.extraConfig = bindScripts scripts;
wayland.windowManager.hyprland.settings.bind = (map bindScript scripts);
}];
};