From e7d4580c6e1e5707b8a83e29bf1e58bd8d2e788c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Thu, 29 Feb 2024 09:27:26 +0100 Subject: [PATCH] Add hyprpaper --- home/hyprland/default.nix | 2 +- home/hyprland/hyprland.nix | 10 +++++++--- home/hyprland/hyprpaper.conf | 2 ++ home/hyprland/xdg.nix | 8 ++++++++ system/fonts.nix | 1 + 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 home/hyprland/hyprpaper.conf create mode 100644 home/hyprland/xdg.nix diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index ed7da74..7c97a5a 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -1 +1 @@ -{ imports = [ ./hyprland.nix ./waybar.nix ]; } +{ imports = [ ./hyprland.nix ./waybar.nix ./xdg.nix ]; } diff --git a/home/hyprland/hyprland.nix b/home/hyprland/hyprland.nix index 1202e35..7e372c8 100644 --- a/home/hyprland/hyprland.nix +++ b/home/hyprland/hyprland.nix @@ -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" ]; }; }; }; diff --git a/home/hyprland/hyprpaper.conf b/home/hyprland/hyprpaper.conf new file mode 100644 index 0000000..da82015 --- /dev/null +++ b/home/hyprland/hyprpaper.conf @@ -0,0 +1,2 @@ +preload = ~/pics/wallpaper/1.jpg +wallpaper = eDP-1,~/pics/wallpaper/1.jpg diff --git a/home/hyprland/xdg.nix b/home/hyprland/xdg.nix new file mode 100644 index 0000000..ddcac6b --- /dev/null +++ b/home/hyprland/xdg.nix @@ -0,0 +1,8 @@ +{ config, ... }: { + xdg.configFile = { + "hypr/hyprpaper.conf" = { + source = config.lib.file.mkOutOfStoreSymlink ./. + "/hyprpaper.conf"; + target = "hypr/hyprpaper.conf"; + }; + }; +} diff --git a/system/fonts.nix b/system/fonts.nix index cbf1e03..c80370b 100644 --- a/system/fonts.nix +++ b/system/fonts.nix @@ -6,6 +6,7 @@ noto-fonts noto-fonts-cjk noto-fonts-emoji + noto-fonts-monochrome-emoji twemoji-color-font font-awesome ];