Compare commits

...

4 commits

Author SHA1 Message Date
367e650979
feat: switch to tui-greet instead of sddm 2024-08-09 02:09:01 -07:00
0f6a0efcae
fix: convert webp wallpaper to png for swaybg 2024-08-09 01:27:01 -07:00
5e899c86ab
feat: disable default hyprland wallpaper 2024-08-09 01:14:05 -07:00
f759911783
feat: add lock screen capability
also switch to swaybg from swww because of instability
2024-08-09 00:41:55 -07:00
8 changed files with 99 additions and 22 deletions

View file

@ -52,6 +52,7 @@
./modules/nixos/audio
./modules/nixos/networking
./modules/nixos/fonts
./modules/nixos/greeter
catppuccin.nixosModules.catppuccin
lix-module.nixosModules.default
@ -81,6 +82,7 @@
./modules/nixos/audio
./modules/nixos/networking
./modules/nixos/fonts
./modules/nixos/greeter
apple-silicon.nixosModules.apple-silicon-support
catppuccin.nixosModules.catppuccin

View file

@ -71,16 +71,6 @@
libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ];
};
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "catppuccin-mocha";
package = pkgs.kdePackages.sddm;
};
# services.desktopManager.plasma6.enable = true;
# Configure keymap in X11
services.xserver = {
xkb.layout = "us";
@ -153,7 +143,6 @@
# gnupg
# openssh
# python3
(pkgs.catppuccin-sddm.override { flavor = "mocha"; })
# steam-run
# # deps for neovim compilation

View file

@ -70,14 +70,6 @@
libraries = with pkgs; [ icu xorg.libXtst xorg.libXi ];
};
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm = {
enable = true;
wayland.enable = true;
theme = "catppuccin-mocha";
package = pkgs.kdePackages.sddm;
};
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
@ -166,7 +158,6 @@
gnupg
openssh
python3
(pkgs.catppuccin-sddm.override { flavor = "mocha"; })
steam-run
# deps for neovim compilation

View file

@ -0,0 +1,23 @@
{pkgs, ...}:
{
services.greetd = {
enable = true;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland --remember --greeting 'Welcome to liminalOS. Access is restricted to authorized personnel only.'";
user = "greeter";
};
};
};
systemd.services.greetd.serviceConfig = {
Type = "idle";
StandardInput = "tty";
StandardOutput = "tty";
StandardError = "journal"; # Without this errors will spam on screen
# Without these bootlogs will spam on screen
TTYReset = true;
TTYVHangup = true;
TTYVTDisallocate = true;
};
}

View file

@ -65,7 +65,9 @@
''$mod, P, exec, grim -g "$(slurp)" - | swappy -f -'' # Screenshot
"$mod, Backspace, exec, wlogout" # Screenshot
"$mod, Backspace, exec, wlogout" # show logout menu
"$mod, L, exec, hyprlock"
];
bindm = [
"$mod, mouse:272, movewindow"
@ -179,6 +181,7 @@
"workspaces, 1, 5, wind"
];
};
general = {
gaps_in = "3";
gaps_out = "8";
@ -191,6 +194,12 @@
resize_on_border = "true";
sensitivity = "0.5";
};
misc = {
disable_hyprland_logo = true;
disable_splash_rendering = true;
};
decoration = {
rounding = "10";
drop_shadow = "false";
@ -207,4 +216,67 @@
};
};
};
programs.hyprlock = {
enable = true;
settings = {
general = {
hide_cursor = true;
grace = 1;
};
background = {
monitor = "";
path = "screenshot";
blur_passes = 3;
blur_size = 7;
noise = 1.17e-2;
contrast = 0.8916;
brightness = 0.8172;
vibrancy = 0.1696;
vibrancy_darkness = 0.0;
};
input-field = {
monitor = "";
size = "200, 50";
outline_thickness = 3;
dots_size = 0.33;
dots_spacing = 0.15;
dots_center = false;
dots_rounding = -1;
outer_color = "rgb(151515)";
inner_color = "rgb(200, 200, 200)";
font_color = "rgb(10, 10, 10)";
fade_on_empty = true;
fade_timeout = 1000;
placeholder_text = "<i>Input Password...</i>";
hide_input = false;
rounding = -1;
check_color = "rgb(204, 136, 34)";
fail_color = "rgb(204, 34, 34)";
fail_text = "<i>$FAIL <b>($ATTEMPTS)</b></i>";
fail_timeout = 2000;
fail_transition = 300;
capslock_color = -1;
numlock_color = -1;
bothlock_color = -1;
invert_numlock = false;
swap_font_color = false;
position = "0, -20";
halign = "center";
valign = "center";
};
};
};
services.hypridle = {
enable = true;
settings = {
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.
};
};
}

View file

@ -27,8 +27,8 @@ with pkgs; [
slurp
swappy
pavucontrol
swww
waypaper
swaybg
# desktop apps
dolphin

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB