DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: 2bedbcd44cca1bbc424f78b7ecfd7a4abd9528f7 nix-arta/hosts/alice/hyprland.nix -rw-r--r-- 5.1 KiB
2bedbcd4Jonni Liljamo feat(lxc): lxc template package 9 days ago
                                                                                
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
{
  roles.hyprland.enable = true;

  hm = {
    wayland.windowManager.hyprland.settings = {
      exec-once = [
        "waybar"
      ];

      general = {
        layout = "hy3";
        border_size = 1;
        gaps_in = 6;
        gaps_out = 12;
      };

      decoration = {
        rounding = 8;
        drop_shadow = false;
        blur = {
          enabled = false;
        };
      };

      animations = {
        enabled = true;
        first_launch_animation = false;
      };

      monitor = [
        "DP-2,3840x2160@60,0x0,1"
        "DP-1,2560x1440@59,3840x0,1"
        "HDMI-A-1,1920x1080@60,6400x0,1,transform,1"
      ];

      workspace = [
        "1,monitor:DP-1,persistent:1"
        "2,monitor:DP-1"
        "3,monitor:DP-1"
        "4,monitor:DP-1"
        "5,monitor:DP-1"
        "6,monitor:DP-2,persistent:1"
        "7,monitor:DP-2,persistent:1"
        "8,monitor:HDMI-A-1,persistent:1"
        "9,monitor:HDMI-A-1,persistent:1"
      ];
    };

    programs.wpaperd.settings = {
      DP-2 = {
        path = "/home/skye/Nextcloud/Wallpapers/forest";
        duration = "15m";
      };
      DP-1 = {
        path = "/home/skye/Nextcloud/Wallpapers/minimalgals";
        duration = "15m";
      };
      HDMI-A-1 = {
        path = "/home/skye/Nextcloud/Wallpapers/sailormoonmobile";
        duration = "15m";
      };
    };

    programs.waybar = {
      settings = [
        {
          output = "DP-2";
          layer = "bottom";
          position = "bottom";
          height = 0;
          spacing = 8;
          margin = "0 12 12 12";

          modules-center = ["mpris"];
          modules-right = ["hyprland/workspaces"];

          mpris = {
            format = "{title} - {artist} - {album}";
          };

          "hyprland/workspaces" = {
            format = "";
            persistent-workspaces = {
              "DP-2" = [6 7];
            };
          };
        }
        {
          output = "DP-1";
          layer = "bottom";
          position = "bottom";
          height = 0;
          spacing = 8;
          margin = "0 12 12 12";

          modules-left = ["hyprland/window"];
          modules-center = ["hyprland/workspaces"];
          modules-right = ["hyprland/language" "clock" "tray"];

          "hyprland/workspaces" = {
            format = "";
            persistent-workspaces = {
              "DP-1" = [1 2 3 4 5];
            };
          };

          "hyprland/language" = {
            format-en = "US";
            format-fi = "FI";
            format-no = "NO";
          };

          clock = {
            format = "{:%H:%M}";
            format-alt = "{:%A, %B %d, %Y (%R)}";
          };
        }
        {
          output = "HDMI-A-1";
          layer = "bottom";
          position = "top";
          height = 0;
          spacing = 8;
          margin = "12 12 0 12";

          modules-left = ["hyprland/workspaces"];
          modules-right = ["cpu" "memory" "disk"];

          "hyprland/workspaces" = {
            format = "";
            persistent-workspaces = {
              "HDMI-A-1" = [8 9];
            };
          };

          cpu = {
            format = " {usage}%";
          };
          memory = {
            format = " {used}/{total}GiB";
          };
          disk = {
            format = " {used}/{total}";
          };
        }
      ];
      style = ''
        @define-color text #444444;

        /* https://www.color-hex.com/color-palette/45494 */
        @define-color white0 #ffffff;
        @define-color white1 #f6f6f6;
        @define-color white2 #ececec;
        @define-color white3 #e1e1e1;
        @define-color white4 #d0d0d0;

        /* https://www.color-hex.com/color-palette/5361 */
        @define-color red #ffb3ba;
        @define-color orange #ffdfba;
        @define-color yellow #ffffba;
        @define-color green #baffc9;
        @define-color blue #bae1ff;

        * {
          font-family: VictorMono Nerd Font;
          border: none;
          border-radius: 10px;
        }

        window#waybar {
          background: transparent;
          color: @text;
          font-size: 14px;
          font-weight: 900;
        }

        #clock,
        #cpu,
        #disk,
        #language,
        #memory,
        #mpris,
        #tray,
        #window,
        #workspaces {
          background: @white0;
          padding: 0 6px;
        }

        #mpris.paused {
          color: @orange;
        }

        #window {
          font-weight: 700;
          font-style: italic;
        }

        #workspaces button {
          background: @white4;
          font-size: 0px;
          min-height: 10px;
          min-width: 10px;
          padding: 0px;
          margin: 10px;
          transition: all 200ms linear;
        }

        #workspaces button.empty {
          background: @white2;
        }

        #workspaces button.visible {
          background: @blue;
          padding: 0 6px;
        }

        #workspaces button.active {
          background: @green;
          padding: 0 6px;
        }

        #workspaces button.urgent {
          background: @red;
        }
      '';
    };
  };
}