theme-setter/targets/waybar.sh

175 lines
2.3 KiB
Bash
Executable File

fileout="$HOME/.config/waybar/style.css"
printf "* {
font-family: JetbrainsMono Nerd Font;
font-size: 13px;
min-height: 0;
padding-right: 2px;
padding-left: 2px;
padding-bottom: 0px;
}
#waybar {
background: transparent;
color: $color7;
margin: 2px 2px;
}
#workspaces {
border-radius: 5px;
margin: 5px;
background: $color0;
margin-left: 2px;
}
#workspaces button {
color: $color5;
border-radius: 5px;
padding: 0.4rem;
}
#workspaces button.active {
color: $color14;
border-radius: 5px;
}
#workspaces button.focused {
color: $color14;
border-radius: 5px;
}
button {
background: transparent;
}
#workspaces button:hover {
background: $color8;
border: 0px solid transparent;
}
#custom-music,
#tray,
#backlight,
#clock,
#battery,
#pulseaudio,
#network,
#cpu,
#memory,
#custom-lock,
#custom-power,
#custom-weather,
#custom-uptime,
#custom-rss,
#custom-disc,
#custom-mic,
#custom-docker {
background-color: $color0;
padding: 0.5rem 1rem;
margin: 5px 0;
}
#clock {
color: $color4;
border-radius: 0px;
}
#custom-weather {
color: $color4;
margin-left: 0.5rem;
border-radius: 5px;
}
#battery {
color: #a6d189;
}
#battery.charging {
color: #a6d189;
}
#battery.warning:not(.charging) {
color: #e78284;
}
#backlight {
color: #e5c890;
}
#backlight,
#battery {
border-radius: 0;
}
#pulseaudio {
color: $color9;
}
#custom-mic{
color: $color9;
border-radius: 5px 0px 0px 5px;
}
#custom-docker {
color: $color4;
}
#custom-music {
color: #ca9ee6;
border-radius: 5px;
}
#custom-lock {
color: #babbf1;
}
#custom-power {
margin-right: 1rem;
border-radius: 0px 5px 5px 0px;
color: #e78284;
}
#custom-docker.docker {
color: #85c1dc;
}
#custom-docker.docker-none {
color: #737994;
}
#custom-docker.docker-error {
color: #e78284;
}
#custom-weather.clear {
color: #e5c890; /* Sunny yellow */
}
#custom-weather.cloud {
color: #99d1db; /* Light blue */
}
#custom-weather.rain {
color: #8caaee; /* Blue */
}
#custom-weather.snow {
color: #c6d0f5; /* White-ish */
}
#custom-weather.thunder {
color: #ca9ee6; /* Purple */
}
#custom-weather.fog {
color: #b0b4bc; /* Gray */
}
#custom-weather.error {
color: $color0; /* Red */
}" > "$fileout"
sleep 0.1s
pkill waybar
nohup waybar > /dev/null 2> /dev/null < /dev/null & disown