From a8a06dfddd597364f40dff8011816905e546484e Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Sun, 21 Apr 2024 13:15:20 -0300 Subject: [PATCH] colors: multiple specialisations, specialisation selector --- home/misterio/atlas.nix | 16 +++++++++++++++- .../features/desktop/hyprland/default.nix | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/home/misterio/atlas.nix b/home/misterio/atlas.nix index d38f97de..ee941588 100644 --- a/home/misterio/atlas.nix +++ b/home/misterio/atlas.nix @@ -1,6 +1,7 @@ { pkgs, config, + lib, ... }: { imports = [ @@ -15,8 +16,21 @@ ./features/music ]; - wallpaper = pkgs.wallpapers.mountain-pink-purple; + wallpaper = lib.mkDefault pkgs.wallpapers.abstract-cyan-purple; colorscheme.source = config.wallpaper; + specialisation = lib.mkForce ( + lib.mapAttrs (n: w: {configuration.wallpaper = w;}) { + inherit + (pkgs.wallpapers) + abstract-cyan-purple + aurora-borealis-water-mountain + mountain-pink-purple + mountain-yellow-sunset + nebula-purple-gold + plains-gold-field + ; + } + ); # ------ ----- ------ # | DP-3 | | DP-1| | DP-2 | diff --git a/home/misterio/features/desktop/hyprland/default.nix b/home/misterio/features/desktop/hyprland/default.nix index c4d4abb8..6ffb26ca 100644 --- a/home/misterio/features/desktop/hyprland/default.nix +++ b/home/misterio/features/desktop/hyprland/default.nix @@ -226,6 +226,8 @@ in { lib.optionals config.programs.wofi.enable [ "SUPER,x,exec,${wofi} -S drun -x 10 -y 10 -W 25% -H 60%" "SUPER,s,exec,specialisation $(specialisation | ${wofi} -S dmenu)" + "SUPERSHIFT,s,exec,specialisation $(specialisation | shuf -n1)" + "SUPER,d,exec,${wofi} -S run" ] ++ (