tangled
alpha
login
or
join now
m1emi1em.dev
/
nixos-flake
1
fork
atom
Personal NixOS flake
1
fork
atom
overview
issues
pulls
pipelines
feat(hyprpanel): add battery to laptop panel
m1emi1em.dev
9 months ago
6d682355
38693ade
+68
-22
3 changed files
expand all
collapse all
unified
split
desktop.nix
home
emily
gui
hyprland
hyprpanel.nix
laptop.nix
+22
desktop.nix
···
93
93
94
94
monitor = [ "DP-2, 1920x1080@144, 0x0, 1" "DP-3, 1920x1080@144, auto, 1, transform, 3"];
95
95
};
96
96
+
home-manager.users.emily = {
97
97
+
programs = {
98
98
+
hyprpanel = {
99
99
+
settings = {
100
100
+
layout = {
101
101
+
"bar.layouts" = {
102
102
+
"0" = {
103
103
+
left = [ "dashboard" "workspaces" ];
104
104
+
middle = [ "windowtitle" ];
105
105
+
right = [ "systray" "network" "weather" "volume" "clock" "notifications"];
106
106
+
};
107
107
+
"1" = {
108
108
+
left = ["workspaces"];
109
109
+
middle = ["windowtitle"];
110
110
+
right = [];
111
111
+
};
112
112
+
};
113
113
+
};
114
114
+
};
115
115
+
};
116
116
+
};
117
117
+
};
96
118
}
+14
-14
home/emily/gui/hyprland/hyprpanel.nix
···
48
48
osd.radius = "0.0em";
49
49
};
50
50
51
51
-
layout = {
52
52
-
"bar.layouts" = {
53
53
-
"0" = {
54
54
-
left = [ "dashboard" "workspaces" ];
55
55
-
middle = [ "windowtitle" ];
56
56
-
right = [ "systray" "network" "weather" "volume" "clock" "notifications"];
57
57
-
};
58
58
-
"1" = {
59
59
-
left = ["workspaces"];
60
60
-
middle = ["windowtitle"];
61
61
-
right = [];
62
62
-
};
63
63
-
};
64
64
-
};
51
51
+
# layout = {
52
52
+
# "bar.layouts" = {
53
53
+
# "0" = {
54
54
+
# left = [ "dashboard" "workspaces" ];
55
55
+
# middle = [ "windowtitle" ];
56
56
+
# right = [ "systray" "network" "weather" "volume" "clock" "notifications"];
57
57
+
# };
58
58
+
# "1" = {
59
59
+
# left = ["workspaces"];
60
60
+
# middle = ["windowtitle"];
61
61
+
# right = [];
62
62
+
# };
63
63
+
# };
64
64
+
# };
65
65
};
66
66
};
67
67
}
+32
-8
laptop.nix
···
29
29
};
30
30
};
31
31
32
32
-
home-manager.users.emily.wayland.windowManager.hyprland.settings = {
33
33
-
monitor = [ ",highres@highrr,auto,1"];
34
34
-
# xwayland = {
35
35
-
# force_zero_scaling = true;
36
36
-
# };
37
37
-
# env = [
38
38
-
# "GDK_SCALE,2"
39
39
-
# ];
32
32
+
home-manager.users.emily.wayland.windowManager = {
33
33
+
hyprland = {
34
34
+
settings = {
35
35
+
monitor = [ ",highres@highrr,auto,1"];
36
36
+
# env = [
37
37
+
# "AQ_DRM_DEVICES,/dev/dri/card2:/dev/dri/card1"
38
38
+
# ];
39
39
+
# xwayland = {
40
40
+
# force_zero_scaling = true;
41
41
+
# };
42
42
+
# env = [
43
43
+
# "GDK_SCALE,2"
44
44
+
# ];
45
45
+
};
46
46
+
};
47
47
+
};
48
48
+
home-manager.users.emily = {
49
49
+
programs = {
50
50
+
hyprpanel = {
51
51
+
settings = {
52
52
+
layout = {
53
53
+
"bar.layouts" = {
54
54
+
"0" = {
55
55
+
left = [ "dashboard" "workspaces" ];
56
56
+
middle = [ "windowtitle" ];
57
57
+
right = [ "systray" "network" "weather" "volume" "battery" "clock" "notifications"];
58
58
+
};
59
59
+
};
60
60
+
};
61
61
+
};
62
62
+
};
63
63
+
};
40
64
};
41
65
}