about summary refs log tree commit diff
path: root/users/tazjin/dotfiles/waybar/config.nix
blob: e65edabe7d196822654ec141ced573114f7df4cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ depot, pkgs, ... }:

let
  launcher = "${pkgs.xfce4-appfinder}/bin/xfce4-appfinder --disable-server";
in
{
  mainBar = {
    layer = "top";
    position = "bottom";
    modules-left = [ "image#start" "custom/start" ];

    "image#start" = {
      path = "${depot.third_party.chicago95}/share/icons/Chicago95/panel/24/start-here.png";
      size = 24;
      on-click = "xfce4-appfinder --disable-server";
    };

    "custom/start" = {
      format = " Start";
      on-click = "xfce4-appfinder --disable-server";
    };

    modules-right = [ "pulseaudio" "backlight" "battery" "tray" "clock" ];

    pulseaudio = {
      on-click = "pavucontrol";
      # Font "Awesome" speaker icons can't be made to render, I don't care why, emoji time.
      format = "{volume}% 🎧";
      format-muted = "{volume}% ";
    };

    battery = {
      format = "{capacity}% {icon}";
      format-icons = [ "" "" "" "" "" ];
    };

    backlight = {
      format = "{percent}% {icon}";
      format-icons = [ "" ];
      on-scroll-up = "light -A 1";
      on-scroll-down = "light -U 1";
    };

    clock.format-alt = "{:%a, %d. %b  %H:%M}";

    tray = {
      icon-size = 20;
      spacing = 10;
    };
  };
}