[waybar] small changes

This commit is contained in:
Simon Cornet 2024-03-31 19:52:34 +02:00
parent e12945c6d4
commit 1c9264517e
4 changed files with 16 additions and 19 deletions

View File

@ -6,10 +6,10 @@ function toggle () {
if pgrep "hypridle" > /dev/null if pgrep "hypridle" > /dev/null
then then
pkill hypridle pkill hypridle
notify-send -u normal -t 4500 "󰐩 Hypridle Inactive" notify-send -u normal -t 4500 "󰐩 Hypridle Inactive"
else else
hypridle & hypridle &
notify-send -u normal -t 4500 "󰐨 Hypridle Active" notify-send -u normal -t 4500 "󰐨 Hypridle Active"
fi fi
} }

View File

@ -33,9 +33,6 @@ tooltip {
border-color: #4771c9; border-color: #4771c9;
} }
#battery,
#backlight,
#battery, #battery,
#backlight, #backlight,
#clock, #clock,
@ -85,27 +82,27 @@ tooltip {
/* right segment */ /* right segment */
#tray {
border-radius: 10px 0px 0px 10px;
margin-left: 10px;
margin-right: 0px;
font-size: 20px;
}
#backlight, #backlight,
#pulseaudio, #battery,
#custom-hypridle,
#custom-wireguard, #custom-wireguard,
#network { #network,
#pulseaudio {
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
font-size: 20px; font-size: 20px;
margin-right: -3px; margin-right: -3px;
margin-left: 0px; margin-left: 0px;
} }
#battery { #custom-wireguard {
border-radius: 10px 0px 0px 10px;
font-size: 20px;
margin-left: 10px;
margin-right: 0px;
}
#custom-hypridle {
border-radius: 0px 10px 10px 0px; border-radius: 0px 10px 10px 0px;
font-size: 20px; font-size: 20px;
margin-left: 0px; margin-left: 0px;
margin-right: 10px; margin-right: 15px;
} }

View File

@ -21,12 +21,12 @@
"modules-right": [ "modules-right": [
"tray", "tray",
"custom/hypridle",
"custom/wireguard", "custom/wireguard",
"network", "network",
"pulseaudio", "pulseaudio",
"backlight", "backlight",
"battery", "battery",
"custom/hypridle",
], ],
// modules // modules

View File

@ -16,7 +16,7 @@
margin = "10,10,10"; margin = "10,10,10";
# theme # theme
font = "CommitMono Nerd Font 12"; font = "FiraCode Nerd Font 12";
# size # size
width = 350; width = 350;