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 |
29
home/core/services/mako/default.nix
Normal file
29
home/core/services/mako/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = [pkgs.libnotify];
|
||||
|
||||
services.mako = {
|
||||
enable = true;
|
||||
iconPath = "$HOME/.nix-profile/share/icons/Gruvbox-Plus-Dark";
|
||||
font = "FiraCode Nerd Font Medium 12";
|
||||
padding = "20";
|
||||
margin = "10";
|
||||
anchor = "top-right";
|
||||
width = 400;
|
||||
height = 150;
|
||||
borderSize = 2;
|
||||
defaultTimeout = 12000;
|
||||
backgroundColor = "#3c3836dd";
|
||||
borderColor = "#689d6add";
|
||||
textColor = "#d5c4a1dd";
|
||||
layer = "overlay";
|
||||
extraConfig = ''
|
||||
max-history=50
|
||||
max-visible=4
|
||||
outer-margin=25
|
||||
icon-location=right
|
||||
max-icon-size=48
|
||||
[mode=do-not-disturb]
|
||||
invisible=1
|
||||
'';
|
||||
};
|
||||
}
|
||||
19
home/core/services/polkit/default.nix
Normal file
19
home/core/services/polkit/default.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{pkgs, ...}: {
|
||||
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||
Unit.Description = "polkit-gnome-authentication-agent-1";
|
||||
|
||||
Install = {
|
||||
WantedBy = ["graphical-session.target"];
|
||||
Wants = ["graphical-session.target"];
|
||||
After = ["graphical-session.target"];
|
||||
};
|
||||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 1;
|
||||
TimeoutStopSec = 10;
|
||||
};
|
||||
};
|
||||
}
|
||||
7
home/core/services/udiskie/default.nix
Normal file
7
home/core/services/udiskie/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
services.udiskie = {
|
||||
enable = true;
|
||||
tray = "always";
|
||||
notify = false;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user