about summary refs log tree commit diff
path: root/home/profiles/gui/config/waybar/style.nix
blob: 1f5327e7d90edb8567852dad672c7066f93360e9 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{ 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};
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
  }

  #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 blinkBattery {
    to {
      border-color: #${color3};
    }
  }

  #battery.charging {
    border-bottom: 1px solid transparent;
    animation-name: blinkBattery;
    animation-duration: 1s;
    animation-timing-function: steps(12);
    animation-iteration-count: infinite;
    animation-direction: alternate;
  }

  #tray {
    /* TODO: https://github.com/Alexays/Waybar/issues/2906 */
    margin: 0;
    padding: 0;
    padding-left: 0.1rem;
  }

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

  #custom-tray-placeholder {
    color: #${color6};
    padding-right: 0.2rem;
  }

  #custom-scratchpad-indicator {
    color: #f0a0c0;
  }

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