alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
alacritty: use toml config
author
lassulus
date
2 years ago
(Jan 8, 2024, 9:42 PM CET)
commit
7d98b660
7d98b660d889f71fa01d75c0941dff7fe2b49a33
parent
d526588c
d526588cfc68bde376fa3c3145e2ef06474161a0
+27
-28
2 changed files
Expand all
Collapse all
Unified
Split
2configs
alacritty.nix
xdg-open.nix
+25
-26
2configs/alacritty.nix
View file
Reviewed
···
1
1
{ config, lib, pkgs, ... }: let
2
2
3
3
-
alacritty-cfg = extrVals: builtins.toJSON ({
3
3
+
alacritty-cfg = extrVals: pkgs.writers.writeTOML "alacritty.toml" ({
4
4
font = let
5
5
family = "Iosevka Term SS15";
6
6
in {
···
28
28
lines = 20;
29
29
};
30
30
env.WINIT_X11_SCALE_FACTOR = "1.0";
31
31
-
# window.opacity = 0;
32
31
hints.enabled = [
33
32
{
34
33
regex = ''(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-\u009F<>"\s{-}\^⟨⟩`]+'';
···
47
46
name = "alacritty";
48
47
paths = [
49
48
(pkgs.writeDashBin "alacritty" ''
50
50
-
# ${pkgs.alacritty}/bin/alacritty --config-file /var/theme/config/alacritty.yaml msg create-window "$@" ||
51
51
-
${pkgs.alacritty}/bin/alacritty --config-file /var/theme/config/alacritty.yaml "$@"
49
49
+
# ${pkgs.alacritty}/bin/alacritty --config-file /var/theme/config/alacritty.toml msg create-window "$@" ||
50
50
+
${pkgs.alacritty}/bin/alacritty --config-file /var/theme/config/alacritty.toml "$@"
52
51
'')
53
52
pkgs.alacritty
54
53
];
···
56
55
57
56
in {
58
57
environment.etc = {
59
59
-
"themes/light/alacritty.yaml".text = alacritty-cfg {
58
58
+
"themes/light/alacritty.toml".source = alacritty-cfg {
60
59
colors = {
61
60
# Default colors
62
61
primary = {
···
92
91
};
93
92
};
94
93
};
95
95
-
"themes/dark/alacritty.yaml".text = alacritty-cfg {
94
94
+
"themes/dark/alacritty.toml".source = alacritty-cfg {
96
95
colors = {
97
96
# Default colors
98
97
primary = {
99
99
-
background = "0x000000";
100
100
-
foreground = "0xffffff";
98
98
+
background = "#000000";
99
99
+
foreground = "#ffffff";
101
100
};
102
101
cursor = {
103
103
-
text = "0xF81CE5";
104
104
-
cursor = "0xffffff";
102
102
+
text = "#F81CE5";
103
103
+
cursor = "#ffffff";
105
104
};
106
105
107
106
# Normal colors
108
107
normal = {
109
109
-
black = "0x000000";
110
110
-
red = "0xfe0100";
111
111
-
green = "0x33ff00";
112
112
-
yellow = "0xfeff00";
113
113
-
blue = "0x0066ff";
114
114
-
magenta = "0xcc00ff";
115
115
-
cyan = "0x00ffff";
116
116
-
white = "0xd0d0d0";
108
108
+
black = "#000000";
109
109
+
red = "#fe0100";
110
110
+
green = "#33ff00";
111
111
+
yellow = "#feff00";
112
112
+
blue = "#0066ff";
113
113
+
magenta = "#cc00ff";
114
114
+
cyan = "#00ffff";
115
115
+
white = "#d0d0d0";
117
116
};
118
117
119
118
# Bright colors
120
119
bright = {
121
121
-
black = "0x808080";
122
122
-
red = "0xfe0100";
123
123
-
green = "0x33ff00";
124
124
-
yellow = "0xfeff00";
125
125
-
blue = "0x0066ff";
126
126
-
magenta = "0xcc00ff";
127
127
-
cyan = "0x00ffff";
128
128
-
white = "0xFFFFFF";
120
120
+
black = "#808080";
121
121
+
red = "#fe0100";
122
122
+
green = "#33ff00";
123
123
+
yellow = "#feff00";
124
124
+
blue = "#0066ff";
125
125
+
magenta = "#cc00ff";
126
126
+
cyan = "#00ffff";
127
127
+
white = "#FFFFFF";
129
128
};
130
129
};
131
130
};
+2
-2
2configs/xdg-open.nix
View file
Reviewed
···
34
34
special/mailaddress)
35
35
alacritty --execute vim "$FILE" ;;
36
36
text/html)
37
37
-
firefox "$FILE" ;;
37
37
+
firefox-devedition "$FILE" ;;
38
38
text/xml)
39
39
-
firefox "$FILE" ;;
39
39
+
firefox-devedition "$FILE" ;;
40
40
text/*)
41
41
alacritty --execute vim "$FILE" ;;
42
42
image/*)