diff --git a/configs/hypr/old/hypridle.conf b/configs/hypr/old/hypridle.conf new file mode 100644 index 0000000..44c1fc0 --- /dev/null +++ b/configs/hypr/old/hypridle.conf @@ -0,0 +1,13 @@ +general { + lock_cmd = notify-send "hyprctl notify 0 5000 'rgb(ff0000)' 'Locking...'" # dbus/sysd lock command (loginctl lock-session) + # unlock_cmd = notify-send "unlock!" # same as above, but unlock + before_sleep_cmd = notify-send "hyprctl notify 0 5000 'rgb(ff0000)' 'Going to sleep...'" # command ran before sleep + # after_sleep_cmd = notify-send "Awake!" # command ran after sleep + ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) +} + +listener { + timeout = 500 # in seconds + on-timeout = notify-send "You are idle!" # command to run when timeout has passed + on-resume = notify-send "Welcome back!" # command to run when activity is detected after timeout has fired. +} \ No newline at end of file diff --git a/configs/hypr/old/hyprlock.conf b/configs/hypr/old/hyprlock.conf new file mode 100644 index 0000000..4f3ac04 --- /dev/null +++ b/configs/hypr/old/hyprlock.conf @@ -0,0 +1,86 @@ +background { + monitor = + path = /mnt/Data/Pictures/LockScreen.jpg + color = rgba(25, 20, 20, 1.0) + + # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations + blur_passes = 0 # 0 disables blurring + blur_size = 7 + noise = 0.0117 + contrast = 0.8916 + brightness = 0.8172 + vibrancy = 0.1696 + vibrancy_darkness = 0.0 +} +image { + monitor = + path = /mnt/Data/Pictures/LockScreen.jpg + size = 150 # lesser side if not 1:1 ratio + rounding = -1 # negative values mean circle + border_size = 4 + border_color = rgb(221, 221, 221) + rotate = 0 # degrees, counter-clockwise + reload_time = -1 # seconds between reloading, 0 to reload with SIGUSR2 + reload_cmd = # command to get new path. if empty, old path will be used. don't run "follow" commands like tail -F + + position = 0, 200 + halign = center + valign = center +} +shape { + monitor = + size = 360, 60 + color = rgba(17, 17, 17, 1.0) + rounding = -1 + border_size = 8 + border_color = rgba(0, 207, 230, 1.0) + rotate = 0 + xray = false # if true, make a "hole" in the background (rectangle of specified size, no rotation) + + position = 0, 80 + halign = center + valign = center +} +input-field { + monitor = + size = 200, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = false + dots_rounding = -1 # -1 default circle, -2 follow input-field rounding + outer_color = rgb(151515) + inner_color = rgb(200, 200, 200) + font_color = rgb(10, 10, 10) + fade_on_empty = true + fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. + placeholder_text = Input Password... # Text rendered in the input box when it's empty. + hide_input = false + rounding = -1 # -1 means complete rounding (circle/oval) + check_color = rgb(204, 136, 34) + fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color + fail_text = $FAIL ($ATTEMPTS) # can be set to empty + fail_transition = 300 # transition time in ms between normal outer_color and fail_color + capslock_color = -1 + numlock_color = -1 + bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) + invert_numlock = false # change color if numlock is off + swap_font_color = false # see below + + position = 0, -20 + halign = center + valign = center +} + +label { + monitor = + text = Hi there, $USER + text_align = center # center/right or any value for default left. multi-line text alignment inside label container + color = rgba(200, 200, 200, 1.0) + font_size = 25 + font_family = Noto Sans + rotate = 0 # degrees, counter-clockwise + position = 0, 80 + halign = center + valign = center +} \ No newline at end of file diff --git a/modules/home/default.nix b/modules/home/default.nix index 6d63e2b..7969e9d 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -39,6 +39,7 @@ in , ... }@user: { pkgs, ... }: { fonts = fontsModule; + gtk = (import "./gtk.nix" { inherit pkgs; }); home = homeModule // { username = name; homeDirectory = "/home/${name}"; diff --git a/modules/home/gtk.nix b/modules/home/gtk.nix new file mode 100644 index 0000000..8c16117 --- /dev/null +++ b/modules/home/gtk.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + enable = true; + theme = { + name = "Adwaita-dark"; + }; +} diff --git a/modules/nixos/common/fonts.nix b/modules/nixos/common/fonts.nix index dca9a71..4340b83 100644 --- a/modules/nixos/common/fonts.nix +++ b/modules/nixos/common/fonts.nix @@ -6,7 +6,8 @@ fira-code-symbols font-awesome mplus-outline-fonts.githubRelease - noto-fonts-emoji + jetbrains-mono + ubuntu_font_family ]; enableDefaultPackages = true; fontDir.enable = true; diff --git a/modules/nixos/desktop/hyprland.nix b/modules/nixos/desktop/hyprland.nix index 938bdda..3841014 100644 --- a/modules/nixos/desktop/hyprland.nix +++ b/modules/nixos/desktop/hyprland.nix @@ -18,6 +18,7 @@ in services.hypridle.enable = true; # services.xserver.windowManager.hypr.enable = true; programs.hyprlock.enable = true; + programs.waybar.enable = true; environment.sessionVariables = { NIXOS_OZONE_WL = "1"; }; environment.systemPackages = with pkgs; [ # common utilities