update, hyprland settings
This commit is contained in:
parent
3409811d55
commit
126584cbcd
10 changed files with 202 additions and 212 deletions
|
|
@ -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);
|
||||
}];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue