| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- { pkgs, lib, ... }:
- {
- programs.waybar = {
- enable = true;
- settings = {
- main = {
- layer = "top";
- position = "bottom";
- height = 16;
- spacing = 0;
- modules-left = [
- "sway/workspaces"
- "mpris"
- ];
- modules-center = [
- "clock"
- ];
- modules-right = [
- "tray"
- "custom/cap-left"
- "pulseaudio"
- "network"
- "battery"
- "custom/cap-right"
- ];
- clock = {
- format = " {:%H:%M}";
- tooltip = false;
- };
- battery = {
- format = "{icon} {capacity}%";
- format-icons = [
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ];
- };
- network = {
- format-wifi = "";
- format-ethernet = "";
- format-disconnected = "";
- tooltip-format = "{essid}\n{ipaddr}";
- };
- pulseaudio = {
- format = "{icon}";
- tooltip-format = "{volume}%";
- format-icons = {
- default = [
- ""
- ""
- ""
- ];
- };
- };
- mpris = {
- format = "{artist} - {title}";
- format-paused = "{artist} - {title}";
- max-length = 25;
- };
- "custom/cap-left" = {
- format = " ";
- tooltip = false;
- };
- "custom/cap-right" = {
- format = " ";
- tooltip = false;
- };
- };
- };
- style = ''
- * {
- border: none;
- font-family: "JetBrainsMono Nerd Font", "Material Symbols Rounded";
- font-size: 12px;
- }
- window#waybar {
- /*background: rgb(26,28,23);*/
- background: rgb(10,1,1);
- border-radius: 0px;
- }
- #clock,
- #tray,
- #mpris,
- #workspaces,
- #workspace button {
- background: rgb(15,2,2);
- color: #e6e1e5;
- font-weight: 600;
- min-width: 12px;
- min-height: 12px;
- padding: 0 6px;
- margin: 2px 2px;
- border-radius: 10px;
- border: 1px solid rgba(255,255,255,0.08);
- transition: all 0.2s ease;
- }
- #workspaces {
- padding: 0;
- }
- #workspaces button label {
- padding: 0;
- margin: 0;
- }
- #workspaces button.active,
- #workspaces button.focused {
- background: rgba(57, 150, 181, 0.1);
- color: white;
- }
- #workspaces button:hover {
- background: rgba(255,255,255,0.08);
- }
- #mpris.playing {
- background: rgba(57, 150, 181, 0.1);
- }
- #mpris.spotify.playing {
- background: rgba(29,185,84,0.1);
- }
- #mpris.firefox.playing {
- background: rgba(255,102,42,0.1);
- }
- #pulseaudio,
- #network,
- #battery {
- background: rgb(15,2,2);
- color: #e6e1e5;
- font-weight: 600;
- padding: 0 6px;
- margin: 2px 0;
- border-radius: 0;
- border-top: 1px solid rgba(255,255,255,0.08);
- border-bottom: 1px solid rgba(255,255,255,0.08);
- }
- #pulseaudio {
- font-size: 18px;
- }
- #custom-cap-left {
- background: rgb(15,2,2);
- margin: 2px 0 2px 2px;
- border-radius: 12px 0 0 12px;
- padding: 0 3px;
- border: 1px solid rgba(255,255,255,0.08);
- border-right: none;
- }
- #custom-cap-right {
- background: rgb(15,2,2);
- margin: 2px 2px 2px 0;
- border-radius: 0 12px 12px 0;
- padding: 0 3px;
- border: 1px solid rgba(255,255,255,0.08);
- border-left: none;
- }
- '';
- };
- }
|