From cfa3feb365535cd5c30838a05d9274a29da73486 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Wed, 5 Feb 2025 16:14:29 +0100 Subject: [PATCH] Add some more customization. --- modules/home-manager/hyprland.nix | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index 2f8e0ca..3048b5a 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -74,7 +74,7 @@ in { settings = { anchor = "top"; width = "100%"; - height = "28"; + height = "34"; horizontal = true; history = false; require-match = false; @@ -121,6 +121,11 @@ in { timeout = 300; # 5min 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 = { enable = true; style = '' + .modules-left { + padding-left: 10px; + } + #workspaces { background-color: @base01; margin: 0.25em; @@ -197,7 +206,7 @@ in { } #window { - color: @base0B; + color: @base0D; padding: 0 1em; } @@ -205,20 +214,26 @@ in { #memory, #temperature, #battery, + #disk, #clock { color: @base00; - background-color: @base0C; + background-color: @base0D; margin: 0.25em; border-radius: 0.5em; + padding: 0 0.5em; } #tray { background-color: @base00; } + + .modules-right { + padding-right: 10px; + } ''; settings = { mainBar = { - height = 30; + height = 34; modules-left = [ "hyprland/workspaces" "hyprland/window" @@ -229,6 +244,7 @@ in { "cpu" "memory" "temperature" + "disk" "battery" "clock" "tray" @@ -238,6 +254,11 @@ in { "*" = [1 2 3 4 5 6 7 8 9]; }; }; + disk = { + path = "/"; + unit = "GB"; + format = "󰋊 {percentage_used}%"; + }; tray = { spacing = 10; };