| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- { pkgs, lib, ... }:
- {
- imports = [
- ./style.nix
- ];
-
- programs.waybar = {
- enable = true;
- settings = {
- main = {
- layer = "top";
- position = "bottom";
- height = 16;
- spacing = 0;
- modules-left = [
- "sway/workspaces"
- "mpris"
- ];
- modules-center = [
- "custom/clock"
- ];
- modules-right = [
- "tray"
- "custom/cap-left"
- "pulseaudio"
- "bluetooth"
- "network"
- "battery"
- "custom/cap-right"
- ];
- "custom/clock" = {
- format = "{}";
- exec = "~/.config/waybar/clock.sh";
- return-type = "json";
- restart-interval = 1;
- };
- tray = {
- spacing = 8;
- };
- battery = {
- format = "{icon}";
- tooltip-format = "{capacity}%";
- format-icons = [
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ];
- };
- network = {
- format-wifi = "{icon}";
- format-icons = [
- ""
- ""
- ""
- ""
- ""
- ];
- 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;
- };
- bluetooth = {
- format-on = "";
- format-off = "";
- format-disabled = "";
- format-connected = " {num_connections}";
- tooltip-format-connected = "{device_enumerate}";
- tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
- };
- "custom/cap-left" = {
- format = " ";
- tooltip = false;
- };
- "custom/cap-right" = {
- format = " ";
- tooltip = false;
- };
- };
- };
- };
- }
|