diff --git a/modules/default.nix b/modules/default.nix index 4063fc49..ee247d10 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -24,6 +24,7 @@ ./swaylock ./thunar ./waybar + ./waycorner ./xdg-user-dirs ./zathura ]; diff --git a/modules/waycorner/default.nix b/modules/waycorner/default.nix new file mode 100644 index 00000000..d183b1da --- /dev/null +++ b/modules/waycorner/default.nix @@ -0,0 +1,26 @@ +{pkgs, ...}: +{ + environment.systemPackages = with pkgs; [ + waycorner + ]; + + home-manager.sharedModules = [ + { + xdg.configFile."waycorner/config.toml".text = '' + [application_launcher] + enter_command = [ "hyprctl", "dispatch", "workspace", "empty" ] + exit_command = [ "${pkgs.lnch}/bin/lnch", "${pkgs.rofi}/bin/rofi", "-show", "drun" ] + locations = ["top_right"] # default + size = 10 + timeout_ms = 250 + + [show_desktop] + enter_command = [ "hyprctl", "dispatch", "workspace", "empty" ] + exit_command = [ "hyprctl", "dispatch", "workspace", "previous"] + locations = ["bottom_right"] # default + size = 10 + timeout_ms = 250 + ''; + } + ]; +}