Add some more customization.

This commit is contained in:
CronyAkatsuki 2025-02-05 16:14:29 +01:00
parent 230f7fa4ec
commit cfa3feb365

View file

@ -74,7 +74,7 @@ in {
settings = { settings = {
anchor = "top"; anchor = "top";
width = "100%"; width = "100%";
height = "28"; height = "34";
horizontal = true; horizontal = true;
history = false; history = false;
require-match = false; require-match = false;
@ -121,6 +121,11 @@ in {
timeout = 300; # 5min timeout = 300; # 5min
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
} }
{
timeout = 310; # 5min and 10 sec
on-timeout = "hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
}
]; ];
}; };
}; };
@ -174,6 +179,10 @@ in {
programs.waybar = { programs.waybar = {
enable = true; enable = true;
style = '' style = ''
.modules-left {
padding-left: 10px;
}
#workspaces { #workspaces {
background-color: @base01; background-color: @base01;
margin: 0.25em; margin: 0.25em;
@ -197,7 +206,7 @@ in {
} }
#window { #window {
color: @base0B; color: @base0D;
padding: 0 1em; padding: 0 1em;
} }
@ -205,20 +214,26 @@ in {
#memory, #memory,
#temperature, #temperature,
#battery, #battery,
#disk,
#clock { #clock {
color: @base00; color: @base00;
background-color: @base0C; background-color: @base0D;
margin: 0.25em; margin: 0.25em;
border-radius: 0.5em; border-radius: 0.5em;
padding: 0 0.5em;
} }
#tray { #tray {
background-color: @base00; background-color: @base00;
} }
.modules-right {
padding-right: 10px;
}
''; '';
settings = { settings = {
mainBar = { mainBar = {
height = 30; height = 34;
modules-left = [ modules-left = [
"hyprland/workspaces" "hyprland/workspaces"
"hyprland/window" "hyprland/window"
@ -229,6 +244,7 @@ in {
"cpu" "cpu"
"memory" "memory"
"temperature" "temperature"
"disk"
"battery" "battery"
"clock" "clock"
"tray" "tray"
@ -238,6 +254,11 @@ in {
"*" = [1 2 3 4 5 6 7 8 9]; "*" = [1 2 3 4 5 6 7 8 9];
}; };
}; };
disk = {
path = "/";
unit = "GB";
format = "󰋊 {percentage_used}%";
};
tray = { tray = {
spacing = 10; spacing = 10;
}; };