From 5341bc074a5da6a784903c2c2c40a3007ddb0bc4 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Thu, 6 Nov 2025 15:43:59 -0500 Subject: [PATCH] clean up --- configs/hypr/hypridle.conf | 4 +- configs/hypr/hyprlock | 96 +++++++++++++++++++++++++ configs/niri/config.kdl | 5 -- hosts/fwbook.nix | 2 +- modules/nixos/desktop/tiler/default.nix | 2 + 5 files changed, 101 insertions(+), 8 deletions(-) create mode 100644 configs/hypr/hyprlock diff --git a/configs/hypr/hypridle.conf b/configs/hypr/hypridle.conf index e8cdd89..9d2934b 100644 --- a/configs/hypr/hypridle.conf +++ b/configs/hypr/hypridle.conf @@ -1,7 +1,7 @@ general { # lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. before_sleep_cmd = loginctl lock-session # lock before suspend. - after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. + # after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. } listener { @@ -25,7 +25,7 @@ listener { listener { timeout = 300 # 5min - on-timeout = loginctl lock-session # lock screen when timeout has passed + on-timeout = hyprlock && loginctl lock-session # lock screen when timeout has passed } #listener { diff --git a/configs/hypr/hyprlock b/configs/hypr/hyprlock new file mode 100644 index 0000000..7172b87 --- /dev/null +++ b/configs/hypr/hyprlock @@ -0,0 +1,96 @@ +$userName = "ari" +$profilePhoto = /var/lib/AccountsService/icons/$userName +$background = rgb(255,0,0) +$foreground = rgb(0,255,0) + +# BACKGROUND +background { + monitor = + # path = /home/justin/Pictures/wal.png + color = $background + blur_passes = 2 + contrast = 1 + brightness = 0.5 + vibrancy = 0.2 + vibrancy_darkness = 0.2 +} + +# GENERAL +general { + no_fade_in = true + no_fade_out = true + hide_cursor = false + grace = 0 + disable_loading_bar = true +} + +# INPUT FIELD +input-field { + monitor = + size = 250, 60 + outline_thickness = 2 + dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = rgba(0, 0, 0, 0) + inner_color = rgba(0, 0, 0, 0.2) + font_color = $foreground + fade_on_empty = false + rounding = -1 + check_color = rgb(204, 136, 34) + placeholder_text = Input Password... + hide_input = false + position = 0, -200 + halign = center + valign = center +} + +# DATE +label { + monitor = + text = cmd[update:1000] echo "$(date +"%A, %B %d")" + color = rgba(242, 243, 244, 0.75) + font_size = 22 + font_family = JetBrains Mono + position = 0, 300 + halign = center + valign = center +} + +# TIME +label { + monitor = + text = cmd[update:1000] echo "$(date +"%-I:%M")" + color = rgba(242, 243, 244, 0.75) + font_size = 95 + font_family = JetBrains Mono Extrabold + position = 0, 200 + halign = center + valign = center +} + + + +# Profile Picture +image { + monitor = + path = $profilePhoto + size = 100 + border_size = 2 + border_color = $foreground + position = 0, -100 + halign = center + valign = center +} + +# Desktop Environment +image { + monitor = + path = $profilePhoto + size = 75 + border_size = 2 + border_color = $foreground + position = -50, 50 + halign = right + valign = bottom +} diff --git a/configs/niri/config.kdl b/configs/niri/config.kdl index b6be9d7..59f5c64 100644 --- a/configs/niri/config.kdl +++ b/configs/niri/config.kdl @@ -26,14 +26,9 @@ environment { // Programs to start on startup // ========================= -/// Com Apps -workspace "chat" { - open-on-output "eDP-1" -} window-rule { match app-id=r#"^Slack$"# match app-id=r#"^signal$"# - open-on-workspace "chat" open-focused true } diff --git a/hosts/fwbook.nix b/hosts/fwbook.nix index db3d9b6..0ffac7b 100644 --- a/hosts/fwbook.nix +++ b/hosts/fwbook.nix @@ -30,7 +30,7 @@ in cosmic.enable = false; kde.enable = false; crypto.enable = true; - gnome.enable = true; + gnome.enable = false; tiler = { enable = true; hyprland.enable = false; diff --git a/modules/nixos/desktop/tiler/default.nix b/modules/nixos/desktop/tiler/default.nix index 7978929..d11533f 100644 --- a/modules/nixos/desktop/tiler/default.nix +++ b/modules/nixos/desktop/tiler/default.nix @@ -22,6 +22,7 @@ in ]; }; # services.blueman.enable = true; + programs.hyprlock.enable = true; programs.nm-applet.enable = true; environment.systemPackages = with pkgs; [ # Protocols and libraries @@ -42,6 +43,7 @@ in sherlock-launcher waybar nwg-bar + gnome-calendar # Screen capture and recording tools (flameshot.override { enableWlrSupport = true; }) grim