Add hyprpaper

This commit is contained in:
Torjus Håkestad 2024-02-29 09:27:26 +01:00
parent 2ca92fb2a2
commit e7d4580c6e
5 changed files with 19 additions and 4 deletions

View File

@ -1 +1 @@
{ imports = [ ./hyprland.nix ./waybar.nix ]; }
{ imports = [ ./hyprland.nix ./waybar.nix ./xdg.nix ]; }

View File

@ -1,7 +1,7 @@
{ inputs, pkgs, lib, ... }: {
{ inputs, pkgs, lib, config, ... }: {
options.hyprland.enable = lib.mkEnableOption "Hyprland";
config = {
home.packages = with pkgs; [ swww wl-clipboard cliphist ];
home.packages = with pkgs; [ swww wl-clipboard cliphist hyprpaper ];
wayland.windowManager.hyprland = {
enable = true;
@ -54,6 +54,10 @@
master.new_is_master = true;
misc.force_default_wallpaper = -1;
windowrulev2 = [
"opacity 0.85 override 0.5 override,class:^(Alacritty)$"
];
bind = [
# term
"$mainMod,Return,exec,$term"
@ -85,7 +89,7 @@
"$mainMod, ${ws}, workspace, ${toString (x + 1)}"
"ALT, ${ws}, workspace, ${toString (x + 1)}"
]) 10));
exec-once = [ "waybar &" ];
exec-once = [ "waybar & hyprpaper" ];
};
};
};

View File

@ -0,0 +1,2 @@
preload = ~/pics/wallpaper/1.jpg
wallpaper = eDP-1,~/pics/wallpaper/1.jpg

8
home/hyprland/xdg.nix Normal file
View File

@ -0,0 +1,8 @@
{ config, ... }: {
xdg.configFile = {
"hypr/hyprpaper.conf" = {
source = config.lib.file.mkOutOfStoreSymlink ./. + "/hyprpaper.conf";
target = "hypr/hyprpaper.conf";
};
};
}

View File

@ -6,6 +6,7 @@
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
noto-fonts-monochrome-emoji
twemoji-color-font
font-awesome
];