Skip to content

Commit 5ea062d

Browse files
committed
feat(waybar): add notebook config
1 parent 5e23ce7 commit 5ea062d

File tree

3 files changed

+208
-0
lines changed

3 files changed

+208
-0
lines changed

waybar-notebook/config.jsonc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"layer": "top",
3+
"position": "top",
4+
"height": 46,
5+
"spacing": 0,
6+
"modules-left": [
7+
"custom/arch",
8+
"hyprland/window"
9+
],
10+
"modules-center": [
11+
],
12+
"modules-right": [
13+
"mpris",
14+
"privacy",
15+
"tray",
16+
"custom/notification",
17+
"wireplumber",
18+
"battery",
19+
"clock"
20+
],
21+
"include": [
22+
"~/.config/waybar/modules.json"
23+
]
24+
}

waybar-notebook/modules.json

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"custom/arch": {
3+
"format": "󰣇",
4+
"tooltip": false
5+
},
6+
"hyprland/workspaces": {
7+
"disable-scroll": true,
8+
"all-outputs": true,
9+
"warp-on-scroll": false,
10+
"format": "{name}",
11+
"format-icons": {
12+
"urgent": "",
13+
"active": "",
14+
"default": ""
15+
}
16+
},
17+
"hyprland/window": {
18+
"format": " {}"
19+
},
20+
"mpris": {
21+
"format": "{status_icon} {title} - {artist}",
22+
"status-icons": {
23+
"playing": "",
24+
"paused": "",
25+
"stopped": ""
26+
}
27+
},
28+
"privacy": {
29+
"icon-spacing": 12,
30+
"icon-size": 14,
31+
"transition-duration": 250,
32+
"modules": [
33+
{
34+
"type": "screenshare",
35+
"tooltip": true,
36+
"tooltip-icon-size": 24
37+
},
38+
{
39+
"type": "audio-out",
40+
"tooltip": true,
41+
"tooltip-icon-size": 24
42+
},
43+
{
44+
"type": "audio-in",
45+
"tooltip": true,
46+
"tooltip-icon-size": 24
47+
}
48+
],
49+
"ignore-monitor": true,
50+
"ignore": [
51+
{
52+
"type": "audio-in",
53+
"name": "cava"
54+
},
55+
{
56+
"type": "screenshare",
57+
"name": "obs"
58+
}
59+
]
60+
},
61+
"wireplumber": {
62+
"format": "{icon} {volume}%",
63+
"format-bluetooth": "{icon} {volume}%  {format_source}",
64+
"format-bluetooth-muted": " {icon} {format_source}",
65+
"format-muted": " {volume}%",
66+
"format-source": " {volume}%",
67+
"format-source-muted": "",
68+
"format-icons": {
69+
"headphone": "",
70+
"hands-free": "",
71+
"headset": "",
72+
"phone": "",
73+
"portable": "",
74+
"car": "",
75+
"default": ["", "", ""]
76+
},
77+
"on-click": "alacritty -e wiremix"
78+
},
79+
"tray": {
80+
"icon-size": 16,
81+
"spacing": 12
82+
},
83+
"custom/notification": {
84+
"tooltip": false,
85+
"format": "{icon}",
86+
"format-icons": {
87+
"notification": "<span foreground='red'><sup></sup></span>",
88+
"none": "",
89+
"dnd-notification": "<span foreground='red'><sup></sup></span>",
90+
"dnd-none": "",
91+
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
92+
"inhibited-none": "",
93+
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
94+
"dnd-inhibited-none": ""
95+
},
96+
"return-type": "json",
97+
"exec-if": "which swaync-client",
98+
"exec": "swaync-client -swb",
99+
"on-click": "swaync-client -t -sw",
100+
"on-click-right": "swaync-client -d -sw",
101+
"escape": true
102+
},
103+
"battery": {
104+
"format": "{icon} {capacity}%",
105+
"format-icons": [
106+
"", "", "", "", ""
107+
]
108+
},
109+
"clock": {
110+
"format": " {:%H:%M}"
111+
}
112+
}

waybar-notebook/style.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/* General */
2+
* {
3+
font-family: BlexMono Nerd Font;
4+
font-weight: 400;
5+
font-size: 14px;
6+
}
7+
8+
window#waybar {
9+
background-color: transparent;
10+
color: #d4d4d8;
11+
}
12+
13+
label {
14+
margin: 0;
15+
padding: 0;
16+
}
17+
18+
.modules-left,
19+
.modules-center,
20+
.modules-right {
21+
margin: 6px 8px 0 8px;
22+
padding: 0;
23+
}
24+
25+
#custom-arch,
26+
#tray,
27+
#custom-notification,
28+
#wireplumber,
29+
#mpris,
30+
#window,
31+
#privacy,
32+
#battery,
33+
#clock {
34+
min-width: 16px;
35+
background: rgba(24, 24, 27, 0.8);
36+
border: 1px solid rgba(39, 39, 42, 0.8);
37+
margin: 0;
38+
padding: 6px 12px;
39+
border-radius: 64px;
40+
}
41+
42+
/* Left */
43+
#custom-arch {
44+
background: #7300ff;
45+
border: 1px solid #7300ff;
46+
color: #000000;
47+
padding: 2px 14px 2px 10px;
48+
font-size: 24px;
49+
}
50+
51+
/* Center */
52+
53+
/* Right */
54+
#tray menu {
55+
background: rgba(24, 24, 27, .8);
56+
border: unset;
57+
outline: none;
58+
}
59+
60+
#custom-notification {
61+
padding: 2px 14px 2px 10px;
62+
}
63+
64+
#window,
65+
#tray,
66+
#custom-notification,
67+
#wireplumber,
68+
#privacy,
69+
#battery,
70+
#clock {
71+
margin-left: 8px;
72+
}

0 commit comments

Comments
 (0)