Configure hyprlock, work on waybar

This commit is contained in:
2024-06-13 22:08:05 +02:00
parent 49cfa7c50d
commit 60dae66fd1
6 changed files with 378 additions and 42 deletions

View File

@ -37,52 +37,86 @@ in
home.packages = with pkgs; [
wofi
xfce.thunar
hyprlock
hyprpicker
# hyprlock
# hyprpicker
hyprcursor
];
programs.hyprlock.enable = true;
programs.hyprlock.settings = {
general = {
disable_loading_bar = true;
hide_cursor = true;
ignore_empty_input = true;
};
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 = "Password...";
shadow_passes = 2;
}
];
};
programs.waybar = {
enable = true;
systemd.enable = true;
style = builtins.readFile ./style-dracula.css;
settings = {
mainBar = {
layer = "top";
position = "bottom";
height = 30;
output = [
"eDP-1"
"HDMI-A-1"
];
modules-left = [
"hyprland/workspaces"
"hyprland/submap"
];
modules-center = [ "hyprland/window" ];
modules-right = [
# "mpd"
# "idle_inhibitor"
"pulseaudio"
# "network"
"power-profiles-daemon"
"cpu"
"memory"
# "temperature"
# "backlight"
# "keyboard-state"
"battery"
# "battery#bat2"
"clock"
"tray"
];
style = builtins.readFile ./style.css;
settings.mainBar = builtins.fromJSON (builtins.readFile ./waybar-config.json);
# settings = {
# mainBar = {
# layer = "top";
# position = "bottom";
# height = 30;
# output = [
# "eDP-1"
# "HDMI-A-1"
# ];
# modules-left = [
# "hyprland/workspaces"
# "hyprland/submap"
# ];
# modules-center = [ "hyprland/window" ];
# modules-right = [
# # "mpd"
# # "idle_inhibitor"
# "pulseaudio"
# # "network"
# "power-profiles-daemon"
# "cpu"
# "memory"
# # "temperature"
# # "backlight"
# # "keyboard-state"
# "battery"
# # "battery#bat2"
# "clock"
# "tray"
# ];
# "sway/workspaces" = {
# disable-scroll = true;
# all-outputs = true;
# };
};
};
# # "sway/workspaces" = {
# # disable-scroll = true;
# # all-outputs = true;
# # };
# };
# };
};
programs.wlogout.enable = true; # can be configured
@ -120,8 +154,8 @@ in
# Look and Feel
general = {
# gaps_in = 5
# gaps_out = 20
gaps_in = 5;
gaps_out = 5;
# border_size = 2
@ -215,7 +249,7 @@ in
# other commands
"$mod, Escape, exec, wlogout -p layer-shell"
"$mod, TAB, exec, loginctl lock-session"
"$mod, TAB, exec, hyprlock"
"$mod SHIFT, R, exec, hyprctl reload"
", Print, exec, grimblast --notify copysave area"