This commit is contained in:
2024-09-15 22:51:12 -07:00
parent 7c9c25f09d
commit cb2490baae
7 changed files with 40 additions and 37 deletions
+9 -9
View File
@@ -4,7 +4,7 @@
"height": 44,
"modules-left": ["sway/workspaces"],
"modules-center": ["clock","custom/padd","custom/weather"],
"modules-right": ["custom/l_end","custom/music","custom/padd","pulseaudio","custom/padd","network", "custom/padd","battery","custom/padd","custom/wlsunset","custom/padd", "tray","custom/power","custom/padd"],
"modules-right": ["custom/l_end","custom/music","custom/padd","pulseaudio","custom/padd","network", "custom/padd","battery","custom/padd", "tray","custom/power","custom/padd"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
@@ -20,7 +20,7 @@
},
"clock": {
"format": " {:%H:%M  %a %B %d}",
"format": " {:%H:%M  %D}",
"tooltip-format": "<tt><big>{calendar}</big></tt>"
},
"custom/music": {
@@ -29,7 +29,7 @@
"tooltip": false
},
"custom/weather": {
"exec": "~/.config/waybar/scripts/weather.py",
"exec": "~/.config/waybar/scripts/weather.scm",
"interval": 600,
"tooltip": false
},
@@ -42,9 +42,9 @@
},
"full-at": "99",
"format": "{icon} {capacity}%",
"format-icons": ["","", "","", ""],
"format-good": " {capacity}%", // An empty format will hide the module
"format-full": " Full",
"format-icons": [" ","", "","", ""],
"format-good": " %", // An empty format will hide the module
"format-full": "",
"format-charging": " {capacity}% "
},
"custom/wlsunset": {
@@ -54,8 +54,8 @@
},
"network": {
"interval": 5,
"format-wifi": " {essid}",
"format-ethernet": " {ifname}",
"format-wifi": "",
"format-ethernet": "",
"format-disconnected": " ",
"tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}",
"on-click": "alacritty -e nmtui"
@@ -76,7 +76,7 @@
},
"custom/power": {
"format": "{}",
"format": "",
//"exec": "echo ; echo  logout",
"on-click": "wlogout -p layer-shell",
"interval" : 86400, // once every day
+3
View File
@@ -24,6 +24,7 @@
("overcast clouds" . "☁️")
("shower rain" . "🌦️")
("light rain" . "🌧️")
("light intensity drizzle" . "🌧️")
("rain" . "🌧️")
("moderate rain" . "🌧️")
("thunderstorm" . "⛈️")
@@ -73,6 +74,8 @@
(call-with-values
(lambda () (extract-weather-data json-data))
(lambda (temp-c temp-f description icon)
;; For debugging
;;(format #t "Description: ~a ~%" description)
;; Display the weather information
(if temp-c
+4 -12
View File
@@ -2,7 +2,7 @@
* {
border: none;
border-radius: 0;
font-family: "ETBookOT", "Font Awesome 6 Free";
font-family: "ETBembo", "Font Awesome 6 Free";
font-size: 20px;
min-height: 0;
color: #bebebe;
@@ -32,7 +32,6 @@ window#waybar {
}
#mode {
font-family: "ETBookOT";
color: black;
background: white;
}
@@ -72,20 +71,13 @@ window#waybar {
animation-direction: alternate;
}
#clock {
font-family: "ETBookOT";
}
#clock {}
#custom-weather {
font-family: ETBookOT;
}
#custom-weather {}
#custom-music {
font-family: ETBookOT;
}
#custom-music {}
#custom-wlsunset {}
#pulseaudio {
background: transparent;
}