clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add weather and minimal addition

sspaeti ce77ab43 c9c5acbf

+68 -1
+25 -1
waybar/.config/waybar/config.jsonc
··· 5 5 "spacing": 0, 6 6 "height": 15, 7 7 "modules-left": ["custom/omarchy", "hyprland/workspaces"], 8 - "modules-center": ["clock", "custom/update", "custom/voxtype", "custom/screenrecording-indicator", "custom/idle-indicator", "custom/notification-silencing-indicator"], 8 + "modules-center": ["clock", "custom/spacer", "custom/weather", "custom/update", "custom/voxtype", "custom/screenrecording-indicator", "custom/idle-indicator", "custom/notification-silencing-indicator"], 9 9 "modules-right": [ 10 10 "group/tray-expander", 11 11 "bluetooth", ··· 13 13 "pulseaudio", 14 14 "temperature", 15 15 "custom/cpu-governor", 16 + "disk", 17 + "memory", 16 18 "cpu", 17 19 "battery" 18 20 ], ··· 65 67 "interval": 5, 66 68 "format": "󰍛", 67 69 "on-click": "omarchy-launch-or-focus-tui btop" 70 + }, 71 + "memory": { 72 + "interval": 30, 73 + "format": "󰘚", 74 + "tooltip-format": "Memory: {used:0.1f}G / {total:0.1f}G ({percentage}%)\nSwap: {swapUsed:0.1f}G / {swapTotal:0.1f}G" 75 + }, 76 + "disk": { 77 + "interval": 120, 78 + "format": "󰋊", 79 + "path": "/", 80 + "tooltip-format": "Disk: {used} / {total} ({percentage_used}%)\nFree: {free}" 68 81 }, 69 82 "clock": { 70 83 "format": "{:L%A %H:%M}", ··· 172 185 "tray": { 173 186 "icon-size": 12, 174 187 "spacing": 12 188 + }, 189 + "custom/spacer": { 190 + "format": "", 191 + "tooltip": false 192 + }, 193 + "custom/weather": { 194 + "exec": "~/.config/waybar/scripts/weather.sh", 195 + "return-type": "json", 196 + "interval": 1800, 197 + "tooltip": true, 198 + "on-click": "xdg-open https://meteonews.ch/de/Wetter/G2661513/Biel" 175 199 }, 176 200 // sspaeti customizations 177 201 "clock-sspaeti": {
+27
waybar/.config/waybar/scripts/weather.sh
··· 1 + #!/bin/bash 2 + # Minimal weather for waybar — uses wttr.in, monochrome Nerd Font icons 3 + 4 + data=$(curl -sf "wttr.in/Biel~Switzerland?format=%C|%t" 2>/dev/null) 5 + 6 + if [ -z "$data" ]; then 7 + echo '{"text": "", "tooltip": "Weather unavailable"}' 8 + exit 0 9 + fi 10 + 11 + condition="${data%%|*}" 12 + temp="${data##*|}" 13 + temp=$(echo "$temp" | sed 's/^ *//;s/ *$//') 14 + 15 + # Map condition text to monochrome Nerd Font icons (using unicode escapes) 16 + case "$condition" in 17 + *"Sunny"*|*"Clear"*) icon=$(echo -e "\uf185") ;; 18 + *"Partly cloudy"*|*"Partly Cloudy"*) icon=$(echo -e "\uf0c2") ;; 19 + *"Cloudy"*|*"Overcast"*) icon=$(echo -e "\uf0c2") ;; 20 + *"Mist"*|*"Fog"*) icon=$(echo -e "\uf73c") ;; 21 + *"Rain"*|*"Drizzle"*|*"shower"*) icon=$(echo -e "\uf740") ;; 22 + *"Thunderstorm"*|*"Thunder"*) icon=$(echo -e "\uf76c") ;; 23 + *"Snow"*|*"Blizzard"*|*"Sleet"*) icon=$(echo -e "\uf2dc") ;; 24 + *) icon=$(echo -e "\uf0c2") ;; 25 + esac 26 + 27 + echo "{\"text\": \"${temp} ${icon}\", \"tooltip\": \"${condition}\"}"
+16
waybar/.config/waybar/style.css
··· 91 91 opacity: 1; 92 92 } 93 93 94 + /* ── Weather ───────────────────────────────────────────── */ 95 + 96 + #custom-weather { 97 + padding: 0 6px; 98 + opacity: 0.7; 99 + font-size: 11px; 100 + } 101 + 102 + #custom-weather:hover { 103 + opacity: 1; 104 + } 105 + 94 106 /* ── Right-side modules: shared pill style ─────────────── */ 95 107 96 108 #battery, ··· 98 110 #network, 99 111 #bluetooth, 100 112 #cpu, 113 + #memory, 114 + #disk, 101 115 #temperature, 102 116 #custom-cpu-governor { 103 117 padding: 0 6px; ··· 110 124 #pulseaudio:hover, 111 125 #network:hover, 112 126 #bluetooth:hover, 127 + #disk:hover, 128 + #memory:hover, 113 129 #cpu:hover, 114 130 #temperature:hover, 115 131 #custom-cpu-governor:hover {