Skip to content

Commit f92d5b0

Browse files
Reformat code
Original commit: a54c058 This is an automated task. If you have questions or concerns about this task, please contact the repository owner.
1 parent a54c058 commit f92d5b0

File tree

13 files changed

+140
-121
lines changed

13 files changed

+140
-121
lines changed

http/convert.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55

66
name = re.fullmatch(r"(.*)\..+", sys.argv[-1]).group(1)
77
print(name)
8-
subprocess.Popen(["ffmpeg", "-i", sys.argv[-1], "-c:v", "libvpx-vp9", "-c:a", "libopus", name + ".tmp.webm"]).wait()
8+
subprocess.Popen(
9+
[
10+
"ffmpeg",
11+
"-i",
12+
sys.argv[-1],
13+
"-c:v",
14+
"libvpx-vp9",
15+
"-c:a",
16+
"libopus",
17+
name + ".tmp.webm",
18+
]
19+
).wait()
920
os.remove(sys.argv[-1])
1021
os.rename(name + ".tmp.webm", name + ".webm")
11-

http/convertaudio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
name = re.fullmatch(r"(.*)\..+", sys.argv[-1]).group(1)
77
print(name)
8-
subprocess.Popen(["ffmpeg", "-i", sys.argv[-1], "-map", "0:a", "-c:a", "libopus", name + ".tmp.webm"]).wait()
8+
subprocess.Popen(
9+
["ffmpeg", "-i", sys.argv[-1], "-map", "0:a", "-c:a", "libopus", name + ".tmp.webm"]
10+
).wait()
911
os.remove(sys.argv[-1])
1012
os.rename(name + ".tmp.webm", name + ".webm")
11-

linux/.config/waybar/config.jsonc

Lines changed: 70 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,77 @@
11
// -*- mode: jsonc -*-
22
{
3-
"position": "top", // Waybar position (top|bottom|left|right)
4-
"height": 30, // Waybar height (to be removed for auto height)
5-
"spacing": 4, // Gaps between modules (4px)
6-
7-
// LAYOUT CONFIGURATION
3+
"position": "top", // Waybar position (top|bottom|left|right)
4+
"height": 30, // Waybar height (to be removed for auto height)
5+
"spacing": 4, // Gaps between modules (4px)
86

9-
"modules-left": [],
10-
"modules-center": [
11-
"hyprland/window"
12-
],
13-
"modules-right": [
14-
"pulseaudio",
15-
"network",
16-
"cpu",
17-
"memory",
18-
"temperature",
19-
"clock"
20-
],
21-
22-
// MODULE CONFIGURATION
7+
// LAYOUT CONFIGURATION
238

24-
"keyboard-state": {
25-
"numlock": true,
26-
"capslock": true,
27-
"format": "{name} {icon}",
28-
"format-icons": {
29-
"locked": "",
30-
"unlocked": ""
31-
}
32-
},
33-
"clock": {
34-
"tooltip-format": "{:%Y-%m-%d}"
35-
},
36-
"cpu": {
37-
"format": "{usage}% ",
38-
"tooltip": false
39-
},
40-
"memory": {
41-
"format": "{}% "
42-
},
43-
"temperature": {
44-
// "thermal-zone": 2,
45-
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
46-
"critical-threshold": 80,
47-
"format-critical": "!! {temperatureC}°C !! {icon}",
48-
"format": "{temperatureC}°C {icon}",
49-
"format-icons": ["", "", ""]
9+
"modules-left": [],
10+
"modules-center": ["hyprland/window"],
11+
"modules-right": [
12+
"pulseaudio",
13+
"network",
14+
"cpu",
15+
"memory",
16+
"temperature",
17+
"clock",
18+
],
19+
20+
// MODULE CONFIGURATION
21+
22+
"keyboard-state": {
23+
"numlock": true,
24+
"capslock": true,
25+
"format": "{name} {icon}",
26+
"format-icons": {
27+
"locked": "",
28+
"unlocked": "",
5029
},
51-
"network": {
52-
"format-wifi": "{essid} ({signalStrength}%) ",
53-
"format-ethernet": "{ipaddr} ",
54-
"tooltip-format": "{ifname} via {gwaddr} ",
55-
"format-linked": "{ifname} (No IP) ",
56-
"format-disconnected": "Disconnected ⚠"
30+
},
31+
"clock": {
32+
"tooltip-format": "{:%Y-%m-%d}",
33+
},
34+
"cpu": {
35+
"format": "{usage}% ",
36+
"tooltip": false,
37+
},
38+
"memory": {
39+
"format": "{}% ",
40+
},
41+
"temperature": {
42+
// "thermal-zone": 2,
43+
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
44+
"critical-threshold": 80,
45+
"format-critical": "!! {temperatureC}°C !! {icon}",
46+
"format": "{temperatureC}°C {icon}",
47+
"format-icons": ["", "", ""],
48+
},
49+
"network": {
50+
"format-wifi": "{essid} ({signalStrength}%) ",
51+
"format-ethernet": "{ipaddr} ",
52+
"tooltip-format": "{ifname} via {gwaddr} ",
53+
"format-linked": "{ifname} (No IP) ",
54+
"format-disconnected": "Disconnected ⚠",
55+
},
56+
57+
// Use pipewire + pipewire-pulse instead of pulseaudio
58+
"pulseaudio": {
59+
"scroll-step": 5,
60+
"format": "{volume}% {icon} {format_source}",
61+
"format-bluetooth": "{volume}% {icon} {format_source}",
62+
"format-bluetooth-muted": " {icon} {format_source}",
63+
"format-muted": " {format_source}",
64+
"format-source": "",
65+
"format-source-muted": "",
66+
"format-icons": {
67+
"headphone": "",
68+
"hands-free": "",
69+
"headset": "",
70+
"phone": "",
71+
"portable": "",
72+
"car": "",
73+
"default": ["", "", ""],
5774
},
58-
59-
// Use pipewire + pipewire-pulse instead of pulseaudio
60-
"pulseaudio": {
61-
"scroll-step": 5,
62-
"format": "{volume}% {icon} {format_source}",
63-
"format-bluetooth": "{volume}% {icon} {format_source}",
64-
"format-bluetooth-muted": " {icon} {format_source}",
65-
"format-muted": " {format_source}",
66-
"format-source": "",
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": "pavucontrol"
78-
}
75+
"on-click": "pavucontrol",
76+
},
7977
}

linux/.config/waybar/style.css

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
* {
2-
/* `otf-font-awesome` is required to be installed for icons */
3-
font-family: FontAwesome, Ubuntu, Roboto, Helvetica, system-ui, monospace, sans-serif;
4-
font-size: 13px;
2+
/* `otf-font-awesome` is required to be installed for icons */
3+
font-family: FontAwesome, Ubuntu, Roboto, Helvetica, system-ui, monospace,
4+
sans-serif;
5+
font-size: 13px;
56
}
67

78
window#waybar {
8-
background-color: rgba(0, 0, 0, 0.87);
9-
border-bottom: 3px solid rgba(0, 0, 0, 0.92);
10-
color: #ffffff;
11-
transition: background-color .5s;
9+
background-color: rgba(0, 0, 0, 0.87);
10+
border-bottom: 3px solid rgba(0, 0, 0, 0.92);
11+
color: #ffffff;
12+
transition: background-color 0.5s;
1213
}
1314

1415
window#waybar.hidden {
15-
opacity: 0.2;
16+
opacity: 0.2;
1617
}
1718

1819
.module {
19-
border-radius: 40px;
20+
border-radius: 40px;
2021
}
2122

2223
#clock,
@@ -25,54 +26,53 @@ window#waybar.hidden {
2526
#temperature,
2627
#network,
2728
#pulseaudio {
28-
padding: 0 12px;
29-
color: #ffffff;
29+
padding: 0 12px;
30+
color: #ffffff;
3031
}
3132

3233
#window {
33-
margin: 0 4px;
34+
margin: 0 4px;
3435
}
3536

3637
#clock {
37-
background-color: #64727D;
38+
background-color: #64727d;
3839
}
3940

4041
label:focus {
41-
background-color: #000000;
42+
background-color: #000000;
4243
}
4344

4445
#cpu {
45-
background-color: #2ecc71;
46-
color: #000000;
46+
background-color: #2ecc71;
47+
color: #000000;
4748
}
4849

4950
#memory {
50-
background-color: #9b59b6;
51+
background-color: #9b59b6;
5152
}
5253

5354
#network {
54-
background-color: #2980b9;
55+
background-color: #2980b9;
5556
}
5657

5758
#network.disconnected {
58-
background-color: #f53c3c;
59+
background-color: #f53c3c;
5960
}
6061

6162
#pulseaudio {
62-
background-color: #f1c40f;
63-
color: #000000;
63+
background-color: #f1c40f;
64+
color: #000000;
6465
}
6566

6667
#pulseaudio.muted {
67-
background-color: #90b1b1;
68-
color: #2a5c45;
68+
background-color: #90b1b1;
69+
color: #2a5c45;
6970
}
7071

7172
#temperature {
72-
background-color: #f0932b;
73+
background-color: #f0932b;
7374
}
7475

7576
#temperature.critical {
76-
background-color: #eb4d4b;
77+
background-color: #eb4d4b;
7778
}
78-

linux/.config/wofi/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#window {
2-
background: none;
2+
background: none;
33
}
44
#outer-box {
5-
background: rgba(0, 0, 0, 0.87);
5+
background: rgba(0, 0, 0, 0.87);
66
}
77
#input {
8-
border-radius: 4px 4px 0 0;
8+
border-radius: 4px 4px 0 0;
99
}

www/css/global.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,18 @@
66

77
body {
88
background: variables.$background;
9-
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
10-
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
9+
font-family:
10+
system-ui,
11+
-apple-system,
12+
BlinkMacSystemFont,
13+
"Segoe UI",
14+
Roboto,
15+
Oxygen,
16+
Ubuntu,
17+
Cantarell,
18+
"Open Sans",
19+
"Helvetica Neue",
20+
sans-serif;
1121
color: variables.$title-color;
1222

1323
a {

www/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

www/indox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

www/indux.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

www/secret.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

0 commit comments

Comments
 (0)