Skip to content

Commit

Permalink
feat(desktop)!: allow only one wallpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnvgr committed Oct 4, 2024
1 parent 6b300b5 commit 3993ba4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 84 deletions.
32 changes: 4 additions & 28 deletions hosts/minix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,10 @@

opacity = 0.8;

wallpapers = with pkgs; [
# "${colorScheme.palette.background}"

(fetchurl {
url = "https://w.wallhaven.cc/full/72/wallhaven-72weyy.jpg";
hash = "sha256-H9VpfpdOQzfzHkKE1HzjbfUdBLqGU0+5wuWzxQBB0cc=";
})

# (fetchurl {
# url = "https://w.wallhaven.cc/full/m3/wallhaven-m3zrmy.png";
# hash = "sha256-BNsKALFBm9Ukb6j62fap3n/O0bHlyYFj0ic5qnfdbnI=";
# })

(fetchurl {
url = "https://w.wallhaven.cc/full/2y/wallhaven-2yw9w9.png";
hash = "sha256-ieVRCXZszemw8Ai1nLXrYDm/gLrJGY4yeZntEOCL/GM=";
})

(fetchurl {
url = "https://w.wallhaven.cc/full/p9/wallhaven-p9l9r9.png";
hash = "sha256-yYt4bvU1K/F2xqGzgExckzzbcYPtXFyNPnP/TP5H3dI=";
})

(fetchurl {
url = "https://w.wallhaven.cc/full/73/wallhaven-73qz6y.png";
hash = "sha256-CGZqwT976V8odi8lNThbSTIQFbhI9twC4h1jWPG06zM=";
})
];
wallpaper = pkgs.fetchurl {
url = "https://w.wallhaven.cc/full/73/wallhaven-73qz6y.png";
hash = "sha256-CGZqwT976V8odi8lNThbSTIQFbhI9twC4h1jWPG06zM=";
};
};

feats = {
Expand Down
2 changes: 1 addition & 1 deletion modules/desktop/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
./network.nix
./screenshots.nix
./adb.nix
./wallpapers.nix
./wallpaper.nix

./rices
./guiServers
Expand Down
3 changes: 0 additions & 3 deletions modules/desktop/core/rices/hyprpop/hyprland/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,3 @@ bind = SHIFT, Print, exec, screenshot-full
bind = , XF86AudioRaiseVolume, exec, amixer -q sset Master 1%+
bind = , XF86AudioLowerVolume, exec, amixer -q sset Master 1%-
bind = , XF86AudioMute, exec, amixer -q sset Master toggle

# Theming
bind = $mainMod CTRL, W, exec, chwl
2 changes: 1 addition & 1 deletion modules/desktop/core/rices/hyprpop/hyprland/wallpaper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ in {
config = mkIf (theme.rice == "hyprpop") {
home-manager.users.${user} = {
wayland.windowManager.hyprland.extraConfig = ''
exec-once = chwl & waybar
exec-once = ${pkgs.swaybg}/bin/swaybg -i ${theme.wallpaper} & waybar
'';
};
};
Expand Down
8 changes: 8 additions & 0 deletions modules/desktop/core/wallpaper.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ lib, ... }: let
inherit (lib) mkOption types;
in {
options.modules.desktop.theme.wallpaper = mkOption {
type = with types; nullOr package;
default = null;
};
}
51 changes: 0 additions & 51 deletions modules/desktop/core/wallpapers.nix

This file was deleted.

0 comments on commit 3993ba4

Please sign in to comment.