hmCfg in hyprland module

This commit is contained in:
jacekpoz 2024-03-02 16:14:19 +01:00
parent 9ee8028e9b
commit da690bb8cf
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -7,6 +7,7 @@
}: with lib; let
cfg = config.myOptions.programs.hyprland;
username = config.myOptions.other.system.username;
hmCfg = config.home-manager.users.${username};
osuCfg = config.myOptions.programs.osu;
inherit (inputs.nixpkgs-wayland.packages.${pkgs.system}) foot wl-clipboard swww wlsunset swaylock;
@ -101,9 +102,9 @@ in {
# and make this file stop hanging my neovim every 2 seconds
# and figure out why it triggers E79 every single time I edit something
extraConfig = ''
bind=$mainMod, W, exec, ${removeSuffix " %U" config.home-manager.users.${username}.xdg.desktopEntries.firefox-schizo.exec}
bind=$mainMod SHIFT, W, exec, ${removeSuffix " %U" config.home-manager.users.${username}.xdg.desktopEntries.firefox-unschizo.exec}
${if (cfg.startupSound != "") then "exec-once=${pkgs.mpv}/bin/mpv --no-video --volume=100 ${config.home-manager.users.${username}.xdg.dataHome}/hypr/startup_sound" else ""}
bind=$mainMod, W, exec, ${removeSuffix " %U" hmCfg.xdg.desktopEntries.firefox-schizo.exec}
bind=$mainMod SHIFT, W, exec, ${removeSuffix " %U" hmCfg.xdg.desktopEntries.firefox-unschizo.exec}
${if (cfg.startupSound != "") then "exec-once=${pkgs.mpv}/bin/mpv --no-video --volume=100 ${hmCfg.xdg.dataHome}/hypr/startup_sound" else ""}
'';
settings = {
"$mainMod" = "SUPER";