new waybar
This commit is contained in:
parent
4c6082972e
commit
25ce5a7780
3 changed files with 196 additions and 254 deletions
|
@ -1,117 +0,0 @@
|
|||
name: base16:
|
||||
|
||||
''
|
||||
window#waybar {
|
||||
background-color: #${base16."base00"};
|
||||
border-bottom: 3px solid #${base16."base01"};
|
||||
color: #${base16."base0B"};
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
background-color: #${base16."base00"};
|
||||
color: #${base16."base0B"};
|
||||
border-bottom: 3px solid #${base16."base01"};
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: #${base16."base00"};
|
||||
border-bottom: 3px solid #${base16."base01"};
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #${base16."base02"};
|
||||
border-bottom: 3px solid #${base16."base01"};
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #${base16."base01"};
|
||||
color: #${base16."base0B"};
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #${base16."base0D"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #${base16."base0E"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #${base16."base08"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #${base16."base00"};
|
||||
color: #${base16."base0B"};
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #${base16."base09"};
|
||||
color: #${base16."base00"};
|
||||
}
|
||||
''
|
|
@ -1,111 +0,0 @@
|
|||
{
|
||||
layer = "top";
|
||||
height = 30;
|
||||
modules-left = [ "sway/workspaces" "sway/mode" "custom/media" ];
|
||||
modules-center = [ "sway/window" ];
|
||||
modules-right = [
|
||||
"mpd"
|
||||
"idle_inhibitor"
|
||||
"pulseaudio"
|
||||
"network"
|
||||
"cpu"
|
||||
"memory"
|
||||
"temperature"
|
||||
"backlight"
|
||||
"battery"
|
||||
"battery#bat2"
|
||||
"clock"
|
||||
"tray"
|
||||
];
|
||||
"sway/mode" = { format = ''<span style="italic">{}</span>''; };
|
||||
mpd = {
|
||||
format =
|
||||
"{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ";
|
||||
format-disconnected = "Disconnected ";
|
||||
format-stopped =
|
||||
"{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ";
|
||||
unknown-tag = "N/A";
|
||||
interval = 2;
|
||||
consume-icons = { on = " "; };
|
||||
random-icons = {
|
||||
off = ''<span color="#f53c3c"></span> '';
|
||||
on = " ";
|
||||
};
|
||||
repeat-icons = { on = " "; };
|
||||
single-icons = { on = "1 "; };
|
||||
state-icons = {
|
||||
paused = "";
|
||||
playing = "";
|
||||
};
|
||||
tooltip-format = "MPD (connected)";
|
||||
tooltip-format-disconnected = "MPD (disconnected)";
|
||||
};
|
||||
tray = { spacing = 10; };
|
||||
clock = {
|
||||
tooltip-format = "{:%Y-%m-%d | %H:%M}";
|
||||
format-alt = "{:%Y-%m-%d}";
|
||||
};
|
||||
cpu = {
|
||||
format = "{usage}% ";
|
||||
tooltip = false;
|
||||
};
|
||||
memory = { format = "{}% "; };
|
||||
temperature = {
|
||||
critical-threshold = 80;
|
||||
|
||||
format = "{temperatureC}°C {icon}";
|
||||
format-icons = [ "" "" "" ];
|
||||
};
|
||||
backlight = {
|
||||
format = "{percent}% {icon}";
|
||||
format-icons = [ "" "" ];
|
||||
};
|
||||
battery = {
|
||||
states = {
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{capacity}% {icon}";
|
||||
format-charging = "{capacity}% ";
|
||||
format-plugged = "{capacity}% ";
|
||||
format-alt = "{time} {icon}";
|
||||
format-icons = [ "" "" "" "" "" ];
|
||||
};
|
||||
"battery#bat2" = { bat = "BAT2"; };
|
||||
network = {
|
||||
format-wifi = "{essid} ({signalStrength}%) ";
|
||||
format-ethernet = "{ifname}: {ipaddr}/{cidr} ";
|
||||
format-linked = "{ifname} (No IP) ";
|
||||
format-disconnected = "Disconnected ⚠";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
};
|
||||
pulseaudio = {
|
||||
format = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth-muted = " {icon} {format_source}";
|
||||
format-muted = " {format_source}";
|
||||
format-source = "{volume}% ";
|
||||
format-source-muted = "";
|
||||
format-icons = {
|
||||
headphones = "";
|
||||
handsfree = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = [ "" "" "" ];
|
||||
};
|
||||
on-click = "pavucontrol";
|
||||
};
|
||||
"custom/media" = {
|
||||
format = "{icon} {}";
|
||||
return-type = "json";
|
||||
max-length = 40;
|
||||
format-icons = {
|
||||
spotify = "";
|
||||
default = "🎜";
|
||||
};
|
||||
escape = true;
|
||||
exec = "$HOME/.config/waybar/mediaplayer.py 2> /dev/null";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue