Waybar use volumectl on click, add rainbow theme for system details

This commit is contained in:
Evie Litherland-Smith 2023-11-05 07:26:32 +00:00
parent 52a51a8700
commit bcfa66e3e2
2 changed files with 26 additions and 15 deletions

View file

@ -34,9 +34,8 @@
position = "top"; position = "top";
# Layout # Layout
"modules-left" = [ "custom/launcher" "hyprland/workspaces" ]; "modules-left" = [ "custom/launcher" "hyprland/workspaces" ];
"modules-center" = [ ]; "modules-center" = [ "mpris" ];
"modules-right" = [ "modules-right" = [
"mpris"
"pulseaudio" "pulseaudio"
"battery" "battery"
"disk" "disk"
@ -51,6 +50,7 @@
format = " 󰛡 "; format = " 󰛡 ";
tooltip = false; tooltip = false;
on-click = "rofi -show combi"; on-click = "rofi -show combi";
on-click-right = "rofi -show power-menu";
}; };
"hyprland/workspaces" = { "hyprland/workspaces" = {
format = "{icon}"; format = "{icon}";
@ -94,18 +94,22 @@
scroll-step = 5; scroll-step = 5;
format = "{volume}% {icon} {format_source}"; format = "{volume}% {icon} {format_source}";
format-muted = " 󰝟 {format_source}"; format-muted = " 󰝟 {format_source}";
format-source = "{volume}% 󰍬"; format-source = "󰍬";
format-source-muted = " 󰍭"; format-source-muted = "󰍭";
format-icons = { format-icons = {
headphone = "󰋋"; car = "󰄍";
default = [ "󰕿" "󰖀" "󰕾" ];
hands-free = "󰥰"; hands-free = "󰥰";
headset = "󰋎"; headset = "󰋎";
phone = "󰏲"; phone = "󰏲";
portable = "󰏳"; portable = "󰏳";
car = "󰄍"; headphone = "󰋋";
default = [ "󰕿" "󰖀" "󰕾" ];
}; };
on-click = "pavucontrol"; on-click = "pavucontrol";
on-click-middle = "volumectl -m %";
on-click-right = "volumectl %";
on-scroll-up = "volumectl -u + 5";
on-scroll-down = "volumectl -u - 5";
}; };
backlight = { backlight = {
format = "{icon}"; format = "{icon}";

View file

@ -25,24 +25,31 @@ tooltip {
} }
#workspaces, #workspaces,
#cava, #mpris,
#pulseaudio,
#battery,
#disk, #disk,
#cpu, #cpu,
#memory, #memory,
#temperature, #temperature,
#clock, #clock,
#mpris,
#pulseaudio,
#bluetooth,
#network,
#backlight,
#battery,
#tray { #tray {
color: @base05;
margin: 0px; margin: 0px;
padding: 1px 5px; padding: 1px 5px;
} }
#workspaces,
#mpris,
#tray { color: @base05; }
#pulseaudio { color: @base07; }
#battery { color: @base08; }
#disk { color: @base09; }
#cpu { color: @base0A; }
#memory { color: @base0B; }
#temperature { color: @base0C; }
#clock { color: @base0D; }
#workspaces button { #workspaces button {
border: 1px solid transparent; border: 1px solid transparent;
border-radius: 10px; border-radius: 10px;