1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat(waybar): make helvum float and show seconds on clock

This commit is contained in:
oddlama 2024-07-07 00:17:46 +02:00
parent 3cb10af03c
commit 00d2f031b2
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -7,7 +7,7 @@
enable = true;
# Started via hyprland to ensure it restarts properly with hyprland
systemd.enable = false;
style = builtins.readFile ./waybar-style.css;
style = ./waybar-style.css;
settings.main = {
layer = "top";
position = "bottom";
@ -155,7 +155,7 @@
format = "{format_source}";
format-source = "<tt> {volume}%</tt>";
format-source-muted = "<tt> {volume}%</tt>";
on-click = "${lib.getExe pkgs.helvum}";
on-click = "${pkgs.hyprland}/bin/hyprctl dispatch exec \"[float]\" ${lib.getExe pkgs.helvum}";
on-click-middle = "${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 100%";
on-click-right = "${pkgs.wireplumber}/bin/wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
on-scroll-up = "${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_AUDIO_SOURCE@ 1%+";
@ -170,7 +170,8 @@
};
clock = {
format = "{:%H:%M}";
interval = 10;
format = "{:%H:%M:%S}";
format-alt = "{:%A, %B %d, %Y (%R)}";
tooltip-format = "<tt><span size='16pt' font='JetBrains Mono'>{calendar}</span></tt>";
calendar = {