diff --git a/users/myuser/graphical/waybar-style.css b/users/myuser/graphical/waybar-style.css index 0e31c7b..dbae8b6 100644 --- a/users/myuser/graphical/waybar-style.css +++ b/users/myuser/graphical/waybar-style.css @@ -25,8 +25,9 @@ button { /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ #clock:hover, #custom-notification:hover, -#custom-pickcolor:hover, -#custom-scanqr:hover, +#custom-pick_color:hover, +#custom-scan_qr:hover, +#custom-cycle_wallpaper:hover, #wireplumber:hover, #pulseaudio:hover, button:hover { @@ -39,8 +40,9 @@ button:hover { #clock, #cpu, #custom-notification, -#custom-pickcolor, -#custom-scanqr, +#custom-pick_color, +#custom-scan_qr, +#custom-cycle_wallpaper, #disk, #idle_inhibitor, #memory, @@ -60,8 +62,12 @@ button:hover { } #cpu, -#memory, -#wireplumber { +#memory { + min-width: 44px; +} + +#wireplumber, +#pulseaudio { min-width: 56px; } @@ -133,6 +139,11 @@ button:hover { color: #000000; } +/* +#bluetooth.on { + box-shadow: inset 0 -2px alpha(#70a5eb, 0.4); +} +*/ #memory.critical, #network.disconnected, diff --git a/users/myuser/graphical/waybar.nix b/users/myuser/graphical/waybar.nix index 161deac..2de9c02 100644 --- a/users/myuser/graphical/waybar.nix +++ b/users/myuser/graphical/waybar.nix @@ -5,6 +5,7 @@ }: { programs.waybar = { enable = true; + systemd.enable = true; style = builtins.readFile ./waybar-style.css; settings.main = { layer = "top"; @@ -21,8 +22,9 @@ "hyprland/window" ]; modules-right = [ - "custom/scanqr" - "custom/pickcolor" + "custom/scan_qr" + "custom/pick_color" + "custom/cycle_wallpaper" #"custom/screencast" #"custom/gpuscreenrecorder" @@ -36,6 +38,7 @@ "bluetooth" #"temps" + #"temperature" "cpu" "memory" #"battery" @@ -44,18 +47,27 @@ "clock" ]; - "custom/scanqr" = { - tooltip = false; + "custom/scan_qr" = { + tooltip = true; + tooltip-format = "Scan QR Code"; format = "󰐲"; on-click = lib.getExe pkgs.scripts.screenshot-area-scan-qr; }; - "custom/pickcolor" = { - tooltip = false; + "custom/pick_color" = { + tooltip = true; + tooltip-format = "Pick color"; format = ""; on-click = "${lib.getExe pkgs.hyprpicker} --autocopy"; }; + "custom/cycle_wallpaper" = { + format = " "; + tooltip = true; + tooltip-format = "Change wallpaper"; + on-click = "echo"; + }; + "custom/notification" = { tooltip = false; format = "{icon} {}";