🖼️ Replaced Swww with Hyprpaper, turned back on screen off after idle,

fixed wallpaper on lockscreen, fixed hyprshot dir
This commit is contained in:
Martin Berg Alstad 2025-01-12 20:32:36 +01:00
parent 6fbe3a6da0
commit b12c09719a
Signed by: martials
GPG Key ID: 706F53DD087A91DE
9 changed files with 52 additions and 24 deletions

View File

@ -7,6 +7,7 @@
./hypridle
./hyprlock
./hyprpanel
./hyprpaper.nix
./hyprshot.nix
./settings.nix
./swaync

View File

@ -1,6 +1,7 @@
let
# Time in seconds
lockAfter = 1200;
screenOffAfter = 1500;
suspendAfter = 7200;
in
{
@ -19,12 +20,12 @@ in
timeout = lockAfter;
on-timeout = "loginctl lock-session";
}
# Turn off screens TODO buggy main monitor, turns off and on after resume
# {
# timeout = 120;
# on-timeout = "hyprctl dispatch dpms off";
# on-resume = "hyprctl dispatch dpms on";
# }
# Turn off screens
{
timeout = screenOffAfter;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
# Suspend
{
timeout = suspendAfter;

View File

@ -8,6 +8,12 @@ in
settings = {
"$font" = "${theme.nerdFont} Nerd Font";
background = [
{
path = "${../../../wallpapers/tropic_island_night.jpg}";
}
];
# GENERAL
general = {
disable_loading_bar = true;

View File

@ -0,0 +1,34 @@
# Wallpapers
{ pkgs, ... }:
{
home.packages = with pkgs; [
hyprpaper
];
services.hyprpaper = {
enable = true;
settings =
let
wallpaperDir = ../../wallpapers;
monitor1 = "${wallpaperDir}/nixos_waves.png";
monitor2 = "${wallpaperDir}/ekg_v2.png";
in
{
ipc = "on";
splash = false;
splash_offset = 2.0;
preload = [
monitor1
monitor2
];
wallpaper = [
"DP-1,${monitor1}"
"DP-3,${monitor2}"
w
];
};
};
}

View File

@ -2,15 +2,14 @@ let
common = import ../../common.nix;
in
{
# TODO not working?
home.sessionVariables = {
HYPRSHOT_DIR = "${common.dir.pictures}/screenshots"; # Store screenshots here
};
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";
"$shiftMod" = "$mainMod SHIFT";
env = [
"HYPRSHOT_DIR,${common.dir.pictures}/screenshots" # Store screenshots here
];
bind = [
"$mainMod, PRINT, exec, hyprshot -m window" # Window
", PRINT, exec, hyprshot -m output" # Monitor

View File

@ -2,15 +2,10 @@
{ pkgs, ... }:
{
imports = [
./wallpaper.nix
];
environment.systemPackages = with pkgs; [
xdg-desktop-portal-hyprland
hyprpolkitagent # Auth deamon providing modals for password auth
hyprshot # Screenshots
# waybar
];
programs = {

View File

@ -1,8 +0,0 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
swww
waypaper
];
}

BIN
wallpapers/ekg_v2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
wallpapers/nixos_waves.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB