alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
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
0
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
Pipelines
sway: nix fmt
author
lassulus
date
10 months ago
(Dec 2, 2025, 1:49 PM CET)
commit
c56e7bcd
c56e7bcd744f4b78e6e9d2e163bdb2da9d4928b9
parent
c85f7613
c85f7613004688b6a5fc2bedc64ddf7af43a9af8
+128
-95
2 changed files
Expand all
Collapse all
Unified
Split
2configs
desktops
sway
default.nix
tools
lockscreen
flake-module.nix
+1
-1
tools/lockscreen/flake-module.nix
View file
Reviewed
···
1
1
{
2
2
perSystem =
3
3
-
{ pkgs, lib, ... }:
3
3
+
{ pkgs, ... }:
4
4
{
5
5
packages.lockscreen = pkgs.writeShellApplication {
6
6
name = "lockscreen";
+127
-94
2configs/desktops/sway/default.nix
View file
Reviewed
···
3
3
4
4
term = "/run/current-system/sw/bin/alacritty";
5
5
6
6
-
waybarConfig = pkgs.writeText "waybar-config.json" (builtins.toJSON {
7
7
-
height = 30;
8
8
-
spacing = 4;
9
9
-
modules-left = [ "sway/workspaces" "sway/mode" "sway/scratchpad" ];
10
10
-
modules-center = [ "sway/window" ];
11
11
-
modules-right = [
12
12
-
"idle_inhibitor"
13
13
-
"pulseaudio"
14
14
-
"network"
15
15
-
"cpu"
16
16
-
"memory"
17
17
-
"temperature"
18
18
-
"backlight"
19
19
-
"battery"
20
20
-
"clock"
21
21
-
"tray"
22
22
-
];
6
6
+
waybarConfig = pkgs.writeText "waybar-config.json" (
7
7
+
builtins.toJSON {
8
8
+
height = 30;
9
9
+
spacing = 4;
10
10
+
modules-left = [
11
11
+
"sway/workspaces"
12
12
+
"sway/mode"
13
13
+
"sway/scratchpad"
14
14
+
];
15
15
+
modules-center = [ "sway/window" ];
16
16
+
modules-right = [
17
17
+
"idle_inhibitor"
18
18
+
"pulseaudio"
19
19
+
"network"
20
20
+
"cpu"
21
21
+
"memory"
22
22
+
"temperature"
23
23
+
"backlight"
24
24
+
"battery"
25
25
+
"clock"
26
26
+
"tray"
27
27
+
];
23
28
24
24
-
"sway/mode".format = "<span style=\"italic\">{}</span>";
29
29
+
"sway/mode".format = "<span style=\"italic\">{}</span>";
25
30
26
26
-
"sway/scratchpad" = {
27
27
-
format = "{icon} {count}";
28
28
-
show-empty = false;
29
29
-
format-icons = [ "" "" ];
30
30
-
tooltip = true;
31
31
-
tooltip-format = "{app}: {title}";
32
32
-
};
33
33
-
34
34
-
idle_inhibitor = {
35
35
-
format = "{icon}";
36
36
-
format-icons = {
37
37
-
activated = "";
38
38
-
deactivated = "";
31
31
+
"sway/scratchpad" = {
32
32
+
format = "{icon} {count}";
33
33
+
show-empty = false;
34
34
+
format-icons = [
35
35
+
""
36
36
+
""
37
37
+
];
38
38
+
tooltip = true;
39
39
+
tooltip-format = "{app}: {title}";
39
40
};
40
40
-
};
41
41
42
42
-
tray.spacing = 10;
43
43
-
44
44
-
clock = {
45
45
-
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
46
46
-
format-alt = "{:%Y-%m-%d}";
47
47
-
};
48
48
-
49
49
-
cpu = {
50
50
-
format = "{usage}% ";
51
51
-
tooltip = false;
52
52
-
};
53
53
-
54
54
-
memory.format = "{}% ";
55
55
-
56
56
-
temperature = {
57
57
-
critical-threshold = 80;
58
58
-
format = "{temperatureC}°C {icon}";
59
59
-
format-icons = [ "" "" "" ];
60
60
-
};
61
61
-
62
62
-
backlight = {
63
63
-
format = "{percent}% {icon}";
64
64
-
format-icons = [ "" "" "" ];
65
65
-
};
66
66
-
67
67
-
battery = {
68
68
-
states = {
69
69
-
warning = 30;
70
70
-
critical = 15;
42
42
+
idle_inhibitor = {
43
43
+
format = "{icon}";
44
44
+
format-icons = {
45
45
+
activated = "";
46
46
+
deactivated = "";
47
47
+
};
71
48
};
72
72
-
format = "{capacity}% {icon}";
73
73
-
format-full = "{capacity}% {icon}";
74
74
-
format-charging = "{capacity}% ";
75
75
-
format-plugged = "{capacity}% ";
76
76
-
format-alt = "{time} {icon}";
77
77
-
format-icons = [ "" "" "" "" "" "" "" "" "" "" "" ];
78
78
-
};
79
49
80
80
-
network = {
81
81
-
format-wifi = "{essid} ({signalStrength}%) ";
82
82
-
format-ethernet = "{ipaddr}/{cidr} ";
83
83
-
tooltip-format = "{ifname} via {gwaddr} ";
84
84
-
format-linked = "{ifname} (No IP) ";
85
85
-
format-disconnected = "Disconnected ";
86
86
-
format-alt = "{ifname}: {ipaddr}/{cidr}";
87
87
-
};
50
50
+
tray.spacing = 10;
88
51
89
89
-
pulseaudio = {
90
90
-
format = "{volume}% {icon} {format_source}";
91
91
-
format-bluetooth = "{volume}% {icon} {format_source}";
92
92
-
format-bluetooth-muted = " {icon} {format_source}";
93
93
-
format-muted = " {format_source}";
94
94
-
format-source = "{volume}% ";
95
95
-
format-source-muted = "";
96
96
-
format-icons = {
97
97
-
headphone = "";
98
98
-
hands-free = "";
99
99
-
headset = "";
100
100
-
phone = "";
101
101
-
portable = "";
102
102
-
car = "";
103
103
-
default = [ "" "" "" ];
52
52
+
clock = {
53
53
+
tooltip-format = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
54
54
+
format-alt = "{:%Y-%m-%d}";
104
55
};
105
105
-
on-click = "pavucontrol";
106
106
-
};
107
107
-
});
56
56
+
57
57
+
cpu = {
58
58
+
format = "{usage}% ";
59
59
+
tooltip = false;
60
60
+
};
61
61
+
62
62
+
memory.format = "{}% ";
63
63
+
64
64
+
temperature = {
65
65
+
critical-threshold = 80;
66
66
+
format = "{temperatureC}°C {icon}";
67
67
+
format-icons = [
68
68
+
""
69
69
+
""
70
70
+
""
71
71
+
];
72
72
+
};
73
73
+
74
74
+
backlight = {
75
75
+
format = "{percent}% {icon}";
76
76
+
format-icons = [
77
77
+
""
78
78
+
""
79
79
+
""
80
80
+
];
81
81
+
};
82
82
+
83
83
+
battery = {
84
84
+
states = {
85
85
+
warning = 30;
86
86
+
critical = 15;
87
87
+
};
88
88
+
format = "{capacity}% {icon}";
89
89
+
format-full = "{capacity}% {icon}";
90
90
+
format-charging = "{capacity}% ";
91
91
+
format-plugged = "{capacity}% ";
92
92
+
format-alt = "{time} {icon}";
93
93
+
format-icons = [
94
94
+
""
95
95
+
""
96
96
+
""
97
97
+
""
98
98
+
""
99
99
+
""
100
100
+
""
101
101
+
""
102
102
+
""
103
103
+
""
104
104
+
""
105
105
+
];
106
106
+
};
107
107
+
108
108
+
network = {
109
109
+
format-wifi = "{essid} ({signalStrength}%) ";
110
110
+
format-ethernet = "{ipaddr}/{cidr} ";
111
111
+
tooltip-format = "{ifname} via {gwaddr} ";
112
112
+
format-linked = "{ifname} (No IP) ";
113
113
+
format-disconnected = "Disconnected ";
114
114
+
format-alt = "{ifname}: {ipaddr}/{cidr}";
115
115
+
};
116
116
+
117
117
+
pulseaudio = {
118
118
+
format = "{volume}% {icon} {format_source}";
119
119
+
format-bluetooth = "{volume}% {icon} {format_source}";
120
120
+
format-bluetooth-muted = " {icon} {format_source}";
121
121
+
format-muted = " {format_source}";
122
122
+
format-source = "{volume}% ";
123
123
+
format-source-muted = "";
124
124
+
format-icons = {
125
125
+
headphone = "";
126
126
+
hands-free = "";
127
127
+
headset = "";
128
128
+
phone = "";
129
129
+
portable = "";
130
130
+
car = "";
131
131
+
default = [
132
132
+
""
133
133
+
""
134
134
+
""
135
135
+
];
136
136
+
};
137
137
+
on-click = "pavucontrol";
138
138
+
};
139
139
+
}
140
140
+
);
108
141
109
142
waybarStyle = pkgs.writeText "waybar-style.css" ''
110
143
@import "${pkgs.waybar}/etc/xdg/waybar/style.css";