🖼️ Replaced Swww with Hyprpaper, turned back on screen off after idle,
fixed wallpaper on lockscreen, fixed hyprshot dir
This commit is contained in:
parent
6fbe3a6da0
commit
b12c09719a
@ -7,6 +7,7 @@
|
||||
./hypridle
|
||||
./hyprlock
|
||||
./hyprpanel
|
||||
./hyprpaper.nix
|
||||
./hyprshot.nix
|
||||
./settings.nix
|
||||
./swaync
|
||||
|
@ -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;
|
||||
|
@ -8,6 +8,12 @@ in
|
||||
settings = {
|
||||
"$font" = "${theme.nerdFont} Nerd Font";
|
||||
|
||||
background = [
|
||||
{
|
||||
path = "${../../../wallpapers/tropic_island_night.jpg}";
|
||||
}
|
||||
];
|
||||
|
||||
# GENERAL
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
|
34
home-manager/hyprland/hyprpaper.nix
Normal file
34
home-manager/hyprland/hyprpaper.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
@ -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
|
||||
|
@ -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 = {
|
||||
|
@ -1,8 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
swww
|
||||
waypaper
|
||||
];
|
||||
}
|
BIN
wallpapers/ekg_v2.png
Normal file
BIN
wallpapers/ekg_v2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
BIN
wallpapers/nixos_waves.png
Normal file
BIN
wallpapers/nixos_waves.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
Loading…
x
Reference in New Issue
Block a user