using waybar instead

This commit is contained in:
Chris Cochrun 2024-01-18 09:52:00 -06:00
parent 24cdb6c13d
commit 5bce22f990
3 changed files with 34 additions and 15 deletions

View file

@ -274,9 +274,9 @@
height = 35; height = 35;
width = 1400; width = 1400;
# Choose the order of the modules "custom/wintitle", # Choose the order of the modules "custom/wintitle",
modules-left = ["wlr/workspaces" "workspaces" "hyprland/window"]; modules-left = ["hyprland/workspaces" "hyprland/window"];
modules-center = ["clock"]; modules-center = ["clock"];
modules-right = ["pulseaudio" "backlight" "temperature" "memory" "cpu" "battery" "tray"]; modules-right = ["pulseaudio" "backlight" "disk" "memory" "cpu" "battery" "tray"];
margin-top = -5; margin-top = -5;
margin-bottom = 8; margin-bottom = 8;
margin-left = 6; margin-left = 6;
@ -287,10 +287,21 @@
workspaces = { workspaces = {
format = " {name} "; format = " {name} ";
}; };
"wlr/workspaces" = { "hyprland/workspaces" = {
format = "{icon}"; format = "{icon}";
on-scroll-up = "hyprctl dispatch workspace e+1"; format-icons = {
on-scroll-down = "hyprctl dispatch workspace e-1"; "1" = "";
"2" = "";
"3" = "󰈙";
"4" = "󰭹";
"5" = "";
"6" = "";
"7" = "󰕧";
"8" = "󰭹";
"9" = "";
};
# on-scroll-up = "hyprctl dispatch workspace e+1";
# on-scroll-down = "hyprctl dispatch workspace e-1";
}; };
tray = { tray = {
icon-size = 21; icon-size = 21;
@ -320,6 +331,9 @@
format = "{icon} {percent}%"; format = "{icon} {percent}%";
format-icons = ["" ""]; format-icons = ["" ""];
}; };
disk = {
format = "󰋊 {percentage_used}% {free}";
};
battery = { battery = {
states = { states = {
good = 95; good = 95;
@ -345,14 +359,14 @@
}; };
pulseaudio = { pulseaudio = {
scroll-step = 1; scroll-step = 1;
format = "{icon} {volume}% {format_source}"; format = "{icon} {volume}%";
format-bluetooth = "{icon} {volume}% {format_source}"; format-bluetooth = "{icon} {volume}% {format_source}";
format-bluetooth-muted = " {icon} {format_source}"; format-bluetooth-muted = " {icon} {format_source}";
format-muted = " muted"; format-muted = " muted";
format-source = " {volume}%"; format-source = "";
format-source-muted = ""; format-source-muted = "";
format-icons = { format-icons = {
headphone = ""; headphone = ["" "" ""];
hands-free = ""; hands-free = "";
headset = ""; headset = "";
phone = ""; phone = "";
@ -419,6 +433,7 @@ window#waybar > box {
padding-right: 10px; padding-right: 10px;
background: transparent; background: transparent;
transition: none; transition: none;
color: @base0C;
} }
#tags { #tags {
@ -430,6 +445,7 @@ window#waybar > box {
} }
#workspaces button { #workspaces button {
padding: 0 0.7em;
transition: none; transition: none;
color: rgba(217, 216, 216, 0.4); color: rgba(217, 216, 216, 0.4);
background: transparent; background: transparent;
@ -442,7 +458,7 @@ window#waybar > box {
} }
#workspaces button.visible { #workspaces button.visible {
color: rgba(217, 216, 216, 1); color: @base0C;
} }
#tags button.occupied { #tags button.occupied {
@ -450,7 +466,7 @@ window#waybar > box {
} }
#workspaces button.focused { #workspaces button.focused {
color: @base0C; color: @base09;
} }
#tags button.focused { #tags button.focused {
@ -468,7 +484,7 @@ window#waybar > box {
color: @base08; color: @base08;
} }
#mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #custom-spotify, #custom-weather, #custom-mail { #mode, #battery, #cpu, #memory, #network, #pulseaudio, #idle_inhibitor, #backlight, #custom-storage, #disk, #custom-weather, #custom-mail {
margin: 0px 3px 0px 3px; margin: 0px 3px 0px 3px;
/* min-width: 25px; */ /* min-width: 25px; */
} }
@ -556,7 +572,7 @@ window#waybar > box {
background: transparent; background: transparent;
} }
#temperature { #disk {
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
border-radius: 20px; border-radius: 20px;
@ -566,7 +582,7 @@ window#waybar > box {
} }
#tray { #tray {
padding-left: 5px; padding-left: 15px;
padding-right: 5px; padding-right: 5px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;

View file

@ -228,14 +228,14 @@ in
binde = , XF86MonBrightnessUp, exec, brightnessctl s +10% binde = , XF86MonBrightnessUp, exec, brightnessctl s +10%
binde = , XF86MonBrightnessDown, exec, brightnessctl s 10%- binde = , XF86MonBrightnessDown, exec, brightnessctl s 10%-
bind=SUPERSHIFT,g,exec,eww.sh bind=SUPERSHIFT,g,exec,waybar.sh
bind=SUPERALT,n,exec,eww update rightside=true bind=SUPERALT,n,exec,eww update rightside=true
bindm=SUPER,mouse:272,movewindow bindm=SUPER,mouse:272,movewindow
bindm=SUPER,mouse:273,resizewindow bindm=SUPER,mouse:273,resizewindow
# Blur waybar # Blur waybar
# blurls=gtk-layer-shell blurls=gtk-layer-shell
# blurls=notifications # blurls=notifications
exec-once = swww init exec-once = swww init

3
scripts/waybar.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
kill $(pgrep waybar) && waybar &