Update
This commit is contained in:
parent
089c57802e
commit
fad7c6e46d
@ -1,23 +1,21 @@
|
||||
{ config, pkgs, ... }: {
|
||||
home.packages = with pkgs; [ hypridle ];
|
||||
{ pkgs, ... }: {
|
||||
|
||||
xdg.configFile."hypr/hypridle.conf".text = ''
|
||||
general {
|
||||
ignore_dbus_inhibit = false
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = { ignore_dbus_inhibit = false; };
|
||||
listener = [
|
||||
{
|
||||
timeout = 600;
|
||||
on-timeout = pkgs.hyprlock + "/bin/hyprlock";
|
||||
}
|
||||
|
||||
# Screenlock
|
||||
listener {
|
||||
timeout = 600
|
||||
on-timeout = ${pkgs.hyprlock}/bin/hyprlock
|
||||
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
|
||||
{
|
||||
timeout = 660;
|
||||
on-timeout = "systemctl suspend";
|
||||
on-resume = pkgs.libnotify
|
||||
+ "/bin/notify-send 'Welcome back to your desktop!'";
|
||||
}
|
||||
|
||||
# Suspend (not working on my laptop)
|
||||
#listener {
|
||||
# timeout = 660
|
||||
# on-timeout = systemctl suspend
|
||||
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
|
||||
#}
|
||||
'';
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,75 +1,84 @@
|
||||
{ pkgs, config, ... }: {
|
||||
{ config, ... }: {
|
||||
|
||||
home.packages = with pkgs; [ hyprlock ];
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
disable_loading_bar = true;
|
||||
grace = 5;
|
||||
no_fade_in = true;
|
||||
no_fade_out = true;
|
||||
};
|
||||
|
||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
||||
background {
|
||||
monitor =
|
||||
path = $HOME/wallpapers/${config.var.theme.wallpaper}
|
||||
color = rgb(${config.var.theme.colors.bg})
|
||||
background = {
|
||||
monitor = "";
|
||||
path = "$HOME/wallpapers/${config.var.theme.wallpaper}";
|
||||
color = "rgb(${config.var.theme.colors.bg})";
|
||||
|
||||
blur_size = 4
|
||||
blur_passes = 3
|
||||
noise = 0.0117
|
||||
contrast = 1.3000
|
||||
brightness = 0.8000
|
||||
vibrancy = 0.2100
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
blur_size = 4;
|
||||
blur_passes = 3;
|
||||
noise = 1.17e-2;
|
||||
contrast = 1.3;
|
||||
brightness = 0.8;
|
||||
vibrancy = 0.21;
|
||||
vibrancy_darkness = 0.0;
|
||||
};
|
||||
|
||||
input-field {
|
||||
monitor =
|
||||
size = 250, 50
|
||||
outline_thickness = 3
|
||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.64 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
outer_color = rgb(${config.var.theme.colors.accent})
|
||||
inner_color = rgb(${config.var.theme.colors.bg})
|
||||
font_color = rgb(${config.var.theme.colors.fg})
|
||||
fade_on_empty = true
|
||||
placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty.
|
||||
hide_input = false
|
||||
position = 0, 80
|
||||
halign = center
|
||||
valign = bottom
|
||||
}
|
||||
input-field = [{
|
||||
monitor = "";
|
||||
size = "250, 50";
|
||||
outline_thickness = 3;
|
||||
dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.64; # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true;
|
||||
outer_color = "rgb(${config.var.theme.colors.accent})";
|
||||
inner_color = "rgb(${config.var.theme.colors.bg})";
|
||||
font_color = "rgb(${config.var.theme.colors.fg})";
|
||||
fade_on_empty = true;
|
||||
placeholder_text =
|
||||
"Password..."; # Text rendered in the input box when it's empty.
|
||||
position = "0, 80";
|
||||
halign = "center";
|
||||
valign = "bottom";
|
||||
}];
|
||||
|
||||
label = [
|
||||
# Current time
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>"
|
||||
color = rgb(${config.var.theme.colors.fg})
|
||||
font_size = 64
|
||||
font_family = ${config.var.theme.font}
|
||||
position = 0, 16
|
||||
halign = center
|
||||
valign = center
|
||||
{
|
||||
monitor = "";
|
||||
text =
|
||||
''cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>"'';
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = 64;
|
||||
font_family = config.var.theme.font;
|
||||
position = "0, 16";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
|
||||
# User label
|
||||
label {
|
||||
monitor =
|
||||
text = Hey <span text_transform="capitalize" size="larger">$USER</span>
|
||||
color = rgb(${config.var.theme.colors.fg})
|
||||
font_size = 20
|
||||
font_family = ${config.var.theme.font}
|
||||
position = 0, 0
|
||||
halign = center
|
||||
valign = center
|
||||
{
|
||||
monitor = "";
|
||||
text = ''
|
||||
Hey <span text_transform="capitalize" size="larger">$USER</span>'';
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = 20;
|
||||
font_family = config.var.theme.font;
|
||||
position = "0, 0";
|
||||
halign = "center";
|
||||
valign = "center";
|
||||
}
|
||||
|
||||
|
||||
# Type to unlock
|
||||
label {
|
||||
monitor =
|
||||
text = Type to unlock!
|
||||
color = rgb(${config.var.theme.colors.fg})
|
||||
font_size = 16
|
||||
font_family = ${config.var.theme.font}
|
||||
position = 0, 30
|
||||
halign = center
|
||||
valign = bottom
|
||||
{
|
||||
monitor = "";
|
||||
text = "Type to unlock!";
|
||||
color = "rgb(${config.var.theme.colors.fg})";
|
||||
font_size = 16;
|
||||
font_family = config.var.theme.font;
|
||||
position = "0, 30";
|
||||
halign = "center";
|
||||
valign = "bottom";
|
||||
}
|
||||
'';
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -1,10 +1,12 @@
|
||||
{ pkgs, config, ... }: {
|
||||
home.packages = with pkgs; [ hyprpaper ];
|
||||
|
||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
||||
preload = ~/wallpapers/${config.var.theme.wallpaper}
|
||||
wallpaper = ,~/wallpapers/${config.var.theme.wallpaper}
|
||||
ipc=true
|
||||
splash=false
|
||||
'';
|
||||
{ config, ... }: {
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ipc = "on";
|
||||
splash = false;
|
||||
splash_offset = 2.0;
|
||||
preload = [ "~/wallpapers/${config.var.theme.wallpaper}" ];
|
||||
wallpaper = [ ",~/wallpapers/${config.var.theme.wallpaper}" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -9,10 +9,16 @@
|
||||
# package = inputs.waybar.packages."${pkgs.system}".waybar;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
layer = config.var.theme.waybar.position;
|
||||
position = config.var.theme.waybar.position;
|
||||
spacing = 0;
|
||||
"margin-top" = if config.var.theme.waybar.float then
|
||||
"margin-top" = if config.var.theme.waybar.float
|
||||
&& config.var.theme.waybar.position == "top" then
|
||||
config.var.theme.gaps-out
|
||||
else
|
||||
0;
|
||||
"margin-bottom" = if config.var.theme.waybar.float
|
||||
&& config.var.theme.waybar.position == "bottom" then
|
||||
config.var.theme.gaps-out
|
||||
else
|
||||
0;
|
||||
|
@ -40,6 +40,7 @@
|
||||
waybar = {
|
||||
transparent = true;
|
||||
float = true;
|
||||
position = "top";
|
||||
};
|
||||
|
||||
colors = {
|
||||
|
@ -40,6 +40,7 @@
|
||||
waybar = {
|
||||
transparent = true;
|
||||
float = true;
|
||||
position = "top";
|
||||
};
|
||||
|
||||
colors = {
|
||||
|
Loading…
Reference in New Issue
Block a user