adding waybar clock tooltip, and improving impermanence

This commit is contained in:
Tyler Kelley 2024-02-11 21:44:06 -06:00
commit 9462cb8e35
3 changed files with 6 additions and 3 deletions

View File

@ -27,4 +27,5 @@ in {
]; ];
programs.gh.enable = true; programs.gh.enable = true;
programs.fuse.userAllowOther = true;
} }

View File

@ -2,7 +2,7 @@
let let
palette = config.colorScheme.palette; palette = config.colorScheme.palette;
inherit (import ../../options.nix) slickbar; inherit (import ../../options.nix) slickbar clock24h;
in with lib; { in with lib; {
# Configure & Theme Waybar # Configure & Theme Waybar
programs.waybar = { programs.waybar = {
@ -26,9 +26,10 @@ in with lib; {
on-scroll-down = "hyprctl dispatch workspace e-1"; on-scroll-down = "hyprctl dispatch workspace e-1";
}; };
"clock" = { "clock" = {
format = "{: %I:%M %p}"; format = if clock24h == true then ''{: %H:%M}''
tooltip-format = "<big>{:%A, %d.%B %Y }</big><tt><small>{calendar}</small></tt>"; else ''{: %I:%M %p}'';
tooltip = true; tooltip = true;
tooltip-format = "<big>{:%A, %d.%B %Y }</big><tt><small>{calendar}</small></tt>";
}; };
"hyprland/window" = { "hyprland/window" = {
max-length = 25; max-length = 25;

View File

@ -25,6 +25,7 @@ in {
terminal = "alacritty"; terminal = "alacritty";
# System Settings # System Settings
clock24h = false;
theLocale = "en_US.UTF-8"; theLocale = "en_US.UTF-8";
theKBDLayout = "us"; theKBDLayout = "us";
theSecondKBDLayout = "pl"; theSecondKBDLayout = "pl";