hypr eco systems
This commit is contained in:
27
home/core/services/hypr/idle/default.nix
Normal file
27
home/core/services/hypr/idle/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
importantPrefixes = [
|
||||
"$lock_cmd = pidof hyprlock || hyprlock"
|
||||
"$suspend_cmd = pidof steam || systemctl suspend || loginctl suspend"
|
||||
];
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "$lock_cmd";
|
||||
before_sleep_cmd = "$lock_cmd";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 900; # 15mins
|
||||
on-timeout = "$lock_cmd";
|
||||
}
|
||||
{
|
||||
timeout = 1200; # 20mins
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
69
home/core/services/hypr/lock/default.nix
Normal file
69
home/core/services/hypr/lock/default.nix
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
hide_cursor = false;
|
||||
no_fade_in = true;
|
||||
};
|
||||
background = [
|
||||
{
|
||||
path = "/src/wallpaper.png";
|
||||
blur_size = 3;
|
||||
blur_passes = 2;
|
||||
}
|
||||
];
|
||||
input-field = [
|
||||
{
|
||||
monitor = "";
|
||||
size = "200, 50";
|
||||
outline_thickness = 2;
|
||||
dots_size = 0.33;
|
||||
dots_spacing = 0.15;
|
||||
dots_center = true;
|
||||
dots_rounding = -1;
|
||||
outer_color = "rgba(3B3B3B55)";
|
||||
inner_color = "rgba(33333311)";
|
||||
font_color = "rgba(FFFFFFFF)";
|
||||
fade_on_empty = true;
|
||||
fade_timeout = 5000;
|
||||
placeholder_text = "";
|
||||
hide_input = false;
|
||||
rounding = -1;
|
||||
check_color = "rgb(204, 136, 34)";
|
||||
failed_color = "rgb(204, 34, 34)";
|
||||
}
|
||||
];
|
||||
label = [
|
||||
{
|
||||
# Clock
|
||||
monitor = "";
|
||||
text = "cmd[update:1000] echo '$TIME'";
|
||||
shadow_passes = 1;
|
||||
shadow_boost = 0.5;
|
||||
color = "rgba(FFFFFFFF)";
|
||||
font_size = 85;
|
||||
font_family = "Input Mono";
|
||||
position = "0, 300";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
{
|
||||
# Date
|
||||
monitor = "";
|
||||
text = "cmd[update:1000] echo '$(date -I)'";
|
||||
shadow_passes = 1;
|
||||
shadow_boost = 0.5;
|
||||
color = "rgba(FFFFFFFF)";
|
||||
font_size = 25;
|
||||
font_family = "Input Mono Compressed";
|
||||
|
||||
position = "0, 280";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
17
home/core/services/hypr/paper/default.nix
Normal file
17
home/core/services/hypr/paper/default.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ipc = "on";
|
||||
splash = false;
|
||||
splash_offset = 2.0;
|
||||
|
||||
preload = ["./src/nix.png" "./src/wallpaper.png"];
|
||||
|
||||
wallpaper = [
|
||||
"DP-3,./src/wallpaper.png"
|
||||
# "DP-1,/share/wallpapers/cat_pacman.png"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
BIN
home/core/services/hypr/paper/src/nix.png
Normal file
BIN
home/core/services/hypr/paper/src/nix.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
BIN
home/core/services/hypr/paper/src/wallpaper.png
Normal file
BIN
home/core/services/hypr/paper/src/wallpaper.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 638 KiB |
Reference in New Issue
Block a user