about summary refs log tree commit diff
path: root/home/profiles/gui/config/waybar/style.nix
blob: 05d3746063fe5fceac36cac043b8650babed640c (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{ config, neotheme }:

with neotheme.colors;

let
  guiCfg = config.profiles.gui;
in
''
  * {
    border: none;
    border-radius: 0;
    font-family: "${guiCfg.font.name}, JetBrainsMono Nerd Font";
    font-size: ${toString guiCfg.font.pixelSize}px;
    min-height: 0;
  }

  window#waybar {
    background: #${background};
    color: #${foreground};
    border-bottom: 1px solid #${bright0};
  }

  #workspaces button {
    min-width: 0;
    padding: 0 8px;
    background: #${background};
    color: #${foreground};
    border-bottom: 1px solid #${bright0};
  }

  #workspaces button.focused {
    color: #${foreground};
    background-color: #${alt0};
  }

  #workspaces button.urgent {
    color: #${color1};
  }

  #workspaces button.persistent {
    color: #${alt1};
  }

  #workspaces button:hover {
    color: #${foreground};
    background: #${alt1};
    box-shadow: inherit;
    text-shadow: inherit;
  }

  #clock,
  #cpu,
  #temperature,
  #backlight,
  #battery,
  #network,
  #memory,
  #idle_inhibitor,
  #language,
  #wireplumber,
  #tray,
  #mode,
  #mpd {
    padding: 0.2rem 0.6rem;
    margin: 0 2px;
    color: #${foreground};
    background-color: #${background};
    border-bottom: 1px solid #${bright0};
  }

  @keyframes blink {
    to {
      background-color: #${color4};
      color: #${background};
    }
  }

  #custom-separator {
    color: #${alt1};
    background-color: #${background};
    border-bottom: 1px solid #${bright0};
  }
''