hyprlock: fix clock label position

This commit is contained in:
Tigor Hutasuhut 2024-08-14 14:01:26 +07:00
parent 7b27e66ae6
commit d81cae34d7
4 changed files with 5 additions and 3 deletions

View file

@ -6,7 +6,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = [ unstable.hypridle ]; home.packages = [ unstable.hypridle ];
home.file.".config/hypr/hypridle.conf".text = '' home.file.".config/hypr/hypridle.conf".text = /*hyprlang*/ ''
general { general {
lock_cmd = "pidof hyprlock || hyprlock" lock_cmd = "pidof hyprlock || hyprlock"
before_sleep_cmd = "hyprlock" before_sleep_cmd = "hyprlock"

View file

@ -220,7 +220,7 @@ in
config.profile.whatsapp.window_rule config.profile.whatsapp.window_rule
]; ];
}; };
extraConfig = '' extraConfig = /*hyprlang*/ ''
exec-once=dbus-update-activation-enviroment --all exec-once=dbus-update-activation-enviroment --all
exec-once=${gnome-keyring.path} ${config.sops.secrets."gnome-keyring/${config.home.username}".path} exec-once=${gnome-keyring.path} ${config.sops.secrets."gnome-keyring/${config.home.username}".path}

View file

@ -12,6 +12,7 @@ in
let let
blurred_image = "${config.home.homeDirectory}/.cache/wallpaper/blurred.png"; blurred_image = "${config.home.homeDirectory}/.cache/wallpaper/blurred.png";
in in
/*hyprlang*/
'' ''
background { background {
monitor = monitor =
@ -54,7 +55,7 @@ in
color = rgba(200, 200, 200, 1.0) color = rgba(200, 200, 200, 1.0)
font_size = 55 font_size = 55
font_family = Fira Semibold font_family = Fira Semibold
position = -100, -40 position = -100, 25
halign = right halign = right
valign = bottom valign = bottom
shadow_passes = 5 shadow_passes = 5

View file

@ -12,6 +12,7 @@ in
let let
recent_wallpaper = "${config.home.homeDirectory}/.cache/wallpaper/current"; recent_wallpaper = "${config.home.homeDirectory}/.cache/wallpaper/current";
in in
/*hyprlang*/
'' ''
preload = ${recent_wallpaper} preload = ${recent_wallpaper}
wallpaper = ,${recent_wallpaper} wallpaper = ,${recent_wallpaper}