Hyprlock ricing

This commit is contained in:
xqtc 2025-01-16 12:16:37 +01:00
parent 328430a158
commit 068bf6c3fa
Signed by: xqtc
GPG key ID: 2C064D095926D9D1
14 changed files with 179 additions and 99 deletions

View file

@ -14,7 +14,7 @@
networking.hosts = {
"192.168.178.35" = ["jellyfin.fritz.box" "grafana.fritz.box"];
};
users.users.xqtc.extraGroups = [ "dialout" ];
users.users.xqtc.extraGroups = ["dialout"];
users.users.xqtc.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN7UkcmSVo+SeB5Obevz3mf3UHruYxn0UHUzoOs2gDBy xqtc@heroin.trade"
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIM7DHEfQB5RV4jYX6phufk7nzOI0+p6mn4AWjNdefvAfAAAABHNzaDo= xqtc@yubicat"

View file

@ -128,7 +128,8 @@ bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod, F, fullscreen,
bind = $mainMod SHIFT, X, exit,
# bind = $mainMod, L, exec, swaylock --indicator --clock --effect-blur 7x5 -e -f -i "~/dotfiles_new/walls/walls/1543142967600.jpg"
bind = $mainMod, U, exec, swaylock --indicator --clock --effect-blur 4x5 -e -f -S --fade-in 0.4 --inside-color 1e1e2e --ring-color 45475a --text-color cdd6f4 --inside-wrong-color f38ba8 --ring-wrong-color f38ba8 --inside-ver-color 89b4fa --ring-ver-color 89b4fa
# bind = $mainMod, U, exec, swaylock --indicator --clock --effect-blur 4x5 -e -f -S --fade-in 0.4 --inside-color 1e1e2e --ring-color 45475a --text-color cdd6f4 --inside-wrong-color f38ba8 --ring-wrong-color f38ba8 --inside-ver-color 89b4fa --ring-ver-color 89b4fa
bind = $mainMod, U, exec, hyprlock
bind = $mainMod CONTROL, h, movecurrentworkspacetomonitor, l
bind = $mainMod CONTROL, l, movecurrentworkspacetomonitor, r
bind = $mainMod CONTROL, k, movecurrentworkspacetomonitor, u

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View file

@ -93,17 +93,17 @@
lualine = {
enable = true;
settings = {
options = {
disabled_filetypes.statusline = ["neo-tree"];
component_separators = {
left = "";
right = "";
options = {
disabled_filetypes.statusline = ["neo-tree"];
component_separators = {
left = "";
right = "";
};
section_separators = {
left = "";
right = "";
};
};
section_separators = {
left = "";
right = "";
};
};
sections = {
lualine_y = [
{
@ -219,7 +219,7 @@
};
typos_lsp.enable = false;
docker_compose_language_service.enable = true;
zls.enable = true;
zls.enable = true;
pylsp.enable = true;
bashls.enable = true;
lua_ls.enable = true;

View file

@ -39,18 +39,18 @@
# bg = mkLiteral "#303446FF";
# fg = mkLiteral "#D9E0EEFF";
# ac = mkLiteral "#8CAAEEFF";
accent= mkLiteral "#E6B450";
bg= mkLiteral "#0e1419";
bg-semilight= mkLiteral "#0D1017";
bg-light= mkLiteral "#131721";
fg= mkLiteral "#e5e1cf";
red= mkLiteral "#ff6565";
blue= mkLiteral "#36a3d9";
green= mkLiteral "#b8cc52";
# bg-hover= @accent";
# fg-hover= mkLiteral "#15191f";
# fg-unhover= @accent;
# header-image: url("assets/dark/header.svg", height);
accent = mkLiteral "#E6B450";
bg = mkLiteral "#0e1419";
bg-semilight = mkLiteral "#0D1017";
bg-light = mkLiteral "#131721";
fg = mkLiteral "#e5e1cf";
red = mkLiteral "#ff6565";
blue = mkLiteral "#36a3d9";
green = mkLiteral "#b8cc52";
# bg-hover= @accent";
# fg-hover= mkLiteral "#15191f";
# fg-unhover= @accent;
# header-image: url("assets/dark/header.svg", height);
};
"#window" = {

View file

@ -15,6 +15,83 @@
extraConfig = builtins.readFile ../config-files/hyprland.conf;
};
home.file.".config/hypr/pfp.jpg".source = ../config-files/hyprlock-pfp.jpg;
programs.hyprlock = {
enable = true;
settings = {
general = {
disable_loading_bar = true;
grace = 2;
hide_cursor = true;
no_fade_in = false;
};
background = [
{
path = "screenshot";
blur_passes = 3;
blur_size = 8;
}
];
input-field = [
{
size = "200, 50";
position = "0, -80";
monitor = "";
dots_center = true;
fade_on_empty = false;
font_color = "rgb(202, 211, 245)";
inner_color = "rgb(91, 96, 120)";
outer_color = "rgb(24, 25, 38)";
outline_thickness = 5;
placeholder_text = "<span foreground=\"##cad3f5\">Password...</span>";
shadow_passes = 2;
}
];
image = [
{
size = "150";
path = "/home/xqtc/.config/hypr/pfp.jpg";
rounding = "-1";
position = "0, 230";
}
];
label = [
# Time
{
text = "cmd[update:200] date +'%r'";
color = "$text";
font_size = 30;
halign = "center";
valign = "center";
position = "0, 100";
}
# Date
{
text = "cmd[update:1000] date +'%a, %x'";
color = "$text";
font_size = 20;
halign = "center";
valign = "center";
position = "0, 50";
}
{
text = "nyaa~";
color = "$text";
font_size = 10;
halign = "center";
valign = "center";
position = "0, 0";
}
];
};
};
programs.waybar =
/*
lib.mkIf (pkgs.system == "x86_64-linux")

View file

@ -9,83 +9,83 @@
url = "https://github.com/karimould/zellij-forgot/releases/download/0.4.1/zellij_forgot.wasm";
hash = "sha256-kBGZG+I9PMKhXtyAy6XRW4Sqht0/RCDcv86p0WjxvN8=";
};
xdg.configFile."zellij/layouts/default.kdl".text = '' layout {
default_tab_template {
children
pane size=1 borderless=true {
plugin location="file:${inputs.zjstatus.packages.x86_64-linux.default}/bin/zjstatus.wasm" {
color_bg "#0F1419"
color_fg "#E6E1CF"
color_fg_dim "#3E4B59"
color_red "#f07178"
color_orange "#ff8f40"
color_yellow "#ffb454"
color_pink "#d2a6ff"
color_blue "#59c2ff"
color_green "#b8cc52"
xdg.configFile."zellij/layouts/default.kdl".text = '' layout {
default_tab_template {
children
pane size=1 borderless=true {
plugin location="file:${inputs.zjstatus.packages.x86_64-linux.default}/bin/zjstatus.wasm" {
color_bg "#0F1419"
color_fg "#E6E1CF"
color_fg_dim "#3E4B59"
color_red "#f07178"
color_orange "#ff8f40"
color_yellow "#ffb454"
color_pink "#d2a6ff"
color_blue "#59c2ff"
color_green "#b8cc52"
format_left "#[bg=$bg] {mode} #[fg=$pink,bold] {command_hostname}"
format_center "{tabs}"
format_right "{command_git_branch} {datetime}"
format_space ""
format_left "#[bg=$bg] {mode} #[fg=$pink,bold] {command_hostname}"
format_center "{tabs}"
format_right "{command_git_branch} {datetime}"
format_space ""
border_enabled "true"
border_char ""
border_format "#[fg=$pink]{char}"
border_position "top"
border_enabled "true"
border_char ""
border_format "#[fg=$pink]{char}"
border_position "top"
hide_frame_for_single_pane "false"
hide_frame_for_single_pane "false"
mode_normal "#[bg=$green,fg=$fg_dim,bold] NORMAL "
mode_locked "#[bg=$red] LOCKED "
mode_tab "#[bg=$orange] TAB "
mode_session "#[bg=$orange] SESSION "
mode_pane "#[bg=$orange] PANE "
mode_search "#[bg=$blue] SEARCH "
mode_enter_search "#[bg=$blue] ENTER-SEARCH "
mode_move "#[bg=$orange] MOVE "
mode_rename_tab "#[bg=$blue] RENAME TAB "
mode_rename_pane "#[bg=$blue] RENAME PANE "
mode_normal "#[bg=$green,fg=$fg_dim,bold] NORMAL "
mode_locked "#[bg=$red] LOCKED "
mode_tab "#[bg=$orange] TAB "
mode_session "#[bg=$orange] SESSION "
mode_pane "#[bg=$orange] PANE "
mode_search "#[bg=$blue] SEARCH "
mode_enter_search "#[bg=$blue] ENTER-SEARCH "
mode_move "#[bg=$orange] MOVE "
mode_rename_tab "#[bg=$blue] RENAME TAB "
mode_rename_pane "#[bg=$blue] RENAME PANE "
tab_normal "#[fg=$fg_dim] {name} "
tab_normal_fullscreen "#[fg=$fg_dim] {name} [FULLSCREEN] "
tab_active "#[fg=$fg,bold,italic] {name} "
tab_active_fullscreen "#[fg=$fg,bold,italic] {name} [FULLSCREEN] "
tab_normal "#[fg=$fg_dim] {name} "
tab_normal_fullscreen "#[fg=$fg_dim] {name} [FULLSCREEN] "
tab_active "#[fg=$fg,bold,italic] {name} "
tab_active_fullscreen "#[fg=$fg,bold,italic] {name} [FULLSCREEN] "
command_git_branch_command "git rev-parse --abbrev-ref HEAD"
command_git_branch_format "#[fg=$fg_dim] {stdout} "
command_git_branch_interval "10"
command_git_branch_rendermode "static"
command_git_branch_command "git rev-parse --abbrev-ref HEAD"
command_git_branch_format "#[fg=$fg_dim] {stdout} "
command_git_branch_interval "10"
command_git_branch_rendermode "static"
command_hostname_command "bash -c 'hostname'"
command_hostname_format "#[fg=$pink] xqtc@{stdout}"
command_hostname_interval "0"
command_hostname_rendermode "static"
command_hostname_command "bash -c 'hostname'"
command_hostname_format "#[fg=$pink] xqtc@{stdout}"
command_hostname_interval "0"
command_hostname_rendermode "static"
// command_ram_usage_command "bash -c \"free -g | awk '/Mem:/ {print \\$3\\\"/\\\"\\$2 \\\" GiB\\\"}'\""
// command_ram_usage_format "#[fg=$fg_dim]{stdout}"
// command_ram_usage_interval "5"
// command_ram_usage_rendermode "static"
// command_ram_usage_command "bash -c \"free -g | awk '/Mem:/ {print \\$3\\\"/\\\"\\$2 \\\" GiB\\\"}'\""
// command_ram_usage_format "#[fg=$fg_dim]{stdout}"
// command_ram_usage_interval "5"
// command_ram_usage_rendermode "static"
// command_cpu_usage_command "bash -c \"top -bn1 | grep 'Cpu(s)' | awk '{print 100 - \\$8\\\"%\\\"}'\""
// command_cpu_usage_format "#[fg=$fg_dim]{stdout}"
// command_cpu_usage_interval "5"
// command_cpu_usage_rendermode "static"
// command_cpu_usage_command "bash -c \"top -bn1 | grep 'Cpu(s)' | awk '{print 100 - \\$8\\\"%\\\"}'\""
// command_cpu_usage_format "#[fg=$fg_dim]{stdout}"
// command_cpu_usage_interval "5"
// command_cpu_usage_rendermode "static"
datetime "#[fg=$fg_dim,bold] {format} "
datetime_format "%A, %d %b %Y %H:%M:%S"
datetime_timezone "Europe/Berlin"
}
}
}
}'';
datetime "#[fg=$fg_dim,bold] {format} "
datetime_format "%A, %d %b %Y %H:%M:%S"
datetime_timezone "Europe/Berlin"
}
}
}
}'';
programs.zellij = {
enable = true;
enableZshIntegration = true;
settings = {
plugins ={
"zellij-forgot location=\"file:~/.config/zellij/plugins/zellij-forgot.wasm\"" = {};
plugins = {
"zellij-forgot location=\"file:~/.config/zellij/plugins/zellij-forgot.wasm\"" = {};
};
keybinds = {
"shared_except \"locked\"" = {
@ -147,4 +147,3 @@
};
};
}

View file

@ -204,6 +204,7 @@
programs.dconf.enable = true;
security.pam.services.swaylock = {};
security.pam.services.hyprlock = {};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.

View file

@ -104,12 +104,12 @@
};
"marie.software" = {
extraConfig = ''
root * /var/www/marie-website/
file_server
@textFiles {
path *.txt
}
header @textFiles Content-Type "text/plain; charset=utf-8"
root * /var/www/marie-website/
file_server
@textFiles {
path *.txt
}
header @textFiles Content-Type "text/plain; charset=utf-8"
'';
};
"juvi.likes.graphics" = {
@ -124,10 +124,10 @@
'';
};
"sifiligr.nrw.fi" = {
extraConfig = ''
extraConfig = ''
root * /var/www/sifiligr-nrw-fi/
file_server
'';
'';
};
"servers" = {
extraConfig = ''

View file

@ -8,7 +8,7 @@
services.openssh.settings.PasswordAuthentication = false;
services.tailscale.extraSetFlags = [ "--advertise-exit-node" "--webclient=true" ];
services.tailscale.extraSetFlags = ["--advertise-exit-node" "--webclient=true"];
# networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;

View file

@ -32,6 +32,7 @@
nixpkgs.config.allowUnfree = true;
security.pam.services.swaylock = {};
security.pam.services.hyprlock = {};
hardware.graphics = {
enable = true;

View file

@ -19,7 +19,7 @@
nixpkgs.config.allowUnfree = true;
security.pam.services.swaylock = {};
security.pam.services.swaylock.fprintAuth = true;
security.pam.services.hyprlock = {};
services.fprintd.enable = true;

View file

@ -22,7 +22,7 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
services.tailscale.extraSetFlags = [ "--advertise-exit-node" "--webclient=true" ];
services.tailscale.extraSetFlags = ["--advertise-exit-node" "--webclient=true"];
networking.hostName = "seraphim"; # Define your hostname.
# Pick only one of the below networking options.

View file

@ -44,6 +44,7 @@
programs.dconf.enable = true;
security.pam.services.swaylock = {};
security.pam.services.hyprlock = {};
services.udev.packages = [pkgs.yubikey-personalization];
services.pcscd.enable = true;