hyprpaper fix

This commit is contained in:
sascha.koenig 2025-08-29 07:30:45 +02:00
parent de264e37d2
commit bb707f6ab4
3 changed files with 341 additions and 314 deletions

View File

@ -1,4 +1,16 @@
{ {
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.features.desktop.hyprland;
in {
options.features.desktop.hyprland.enable =
mkEnableOption "Hyprland related stuff";
config = mkIf cfg.enable {
home.file.".config/hypr/colors.conf".text = '' home.file.".config/hypr/colors.conf".text = ''
$background = rgb(282A36) $background = rgb(282A36)
$backgroundRaw = 282A36 $backgroundRaw = 282A36
@ -34,11 +46,11 @@
exec-once = [ exec-once = [
"hyprpanel" "hyprpanel"
"hyprpaper" "hyprpaper-random"
"hypridle" "hypridle"
"sleep 1 && hyprpaper-random"
"wl-paste --type text --watch cliphist store" # Stores only text data "wl-paste --type text --watch cliphist store" # Stores only text data
"wl-paste --type image --watch cliphist store" # Stores only image data "wl-paste -p -t text --watch clipman store -P --histpath=\"~/.local/share/clipman-primary.json\"" "wl-paste --type image --watch cliphist store" # Stores only image data "wl-paste -p -t text --watch clipman store -P --histpath=\"~/.local/share/clipman-primary.json\""
"xwaylandvideobridge"
]; ];
env = [ env = [
@ -170,6 +182,12 @@
"noshadow, initialTitle:.*streamlabs.com.*" "noshadow, initialTitle:.*streamlabs.com.*"
"noblur, initialTitle:.*streamlabs.com.*" "noblur, initialTitle:.*streamlabs.com.*"
"bordercolor rgb(ffffff),xwayland:1" "bordercolor rgb(ffffff),xwayland:1"
"opacity 0.0 override, class:^(xwaylandvideobridge)$"
"noanim, class:^(xwaylandvideobridge)$"
"noinitialfocus, class:^(xwaylandvideobridge)$"
"maxsize 1 1, class:^(xwaylandvideobridge)$"
"noblur, class:^(xwaylandvideobridge)$"
"nofocus, class:^(xwaylandvideobridge)$"
]; ];
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
@ -255,6 +273,8 @@
}; };
}; };
services.hyprpaper.enable = true;
programs.hyprlock = { programs.hyprlock = {
enable = true; enable = true;
settings = { settings = {
@ -325,4 +345,5 @@
]; ];
}; };
}; };
};
} }

View File

@ -14,7 +14,7 @@ in {
grim grim
hyprcursor hyprcursor
hyprlock hyprlock
hyprpaper kdePackages.xwaylandvideobridge
nwg-displays nwg-displays
nwg-look nwg-look
qt6.qtwayland qt6.qtwayland

View File

@ -13,14 +13,9 @@ in {
../features/desktop ../features/desktop
]; ];
options.features.desktop.hyprland.enable =
mkEnableOption "enable Hyprland";
config = mkMerge [ config = mkMerge [
# Base configuration
{ {
xdg = { xdg = {
# TODO: better structure
enable = true; enable = true;
configFile."mimeapps.list".force = true; configFile."mimeapps.list".force = true;
mimeApps = { mimeApps = {
@ -43,6 +38,17 @@ in {
}; };
}; };
}; };
services.hyprpaper.settings = {
ipc = "on";
preload = ["/home/sascha.koenig/.config/hypr/wallpapers/wallhaven-lmmo8r_2560x1600.png"];
wallpaper = [
"eDP-1,/home/sascha.koenig/.config/hypr/wallpapers/wallhaven-lmmo8r_2560x1600.png"
"DP-8,/home/sascha.koenig/.config/hypr/wallpapers/wallhaven-lmmo8r_2560x1600.png"
"DP-9,/home/sascha.koenig/.config/hypr/wallpapers/wallhaven-lmmo8r_2560x1600.png"
];
};
features = { features = {
cli = { cli = {
fish.enable = true; fish.enable = true;
@ -74,7 +80,7 @@ in {
"2, monitor:eDP-1" "2, monitor:eDP-1"
"3, monitor:DP-9" "3, monitor:DP-9"
"4, monitor:DP-9" "4, monitor:DP-9"
"5, monitor:DP-8,border:false,rounding:false" "5, monitor:DP-8"
"6, monitor:DP-8" "6, monitor:DP-8"
]; ];
windowrule = [ windowrule = [