armory: update to latest config
This commit is contained in:
+5
-13
@@ -5,12 +5,12 @@
|
||||
"position": "top",
|
||||
"height": 38,
|
||||
"spacing": 0,
|
||||
"output": "DP-3",
|
||||
"output": "DP-1",
|
||||
"reload_style_on_change": true,
|
||||
"margin-left": 940,
|
||||
"margin-right": 940,
|
||||
"margin-top": 4,
|
||||
"margin-bottom": 4,
|
||||
"margin-left": 12,
|
||||
"margin-right": 12,
|
||||
"margin-top": 6,
|
||||
"margin-bottom": 6,
|
||||
"modules-left": [
|
||||
"wireplumber",
|
||||
"disk",
|
||||
@@ -22,7 +22,6 @@
|
||||
"modules-center": ["hyprland/workspaces"],
|
||||
"modules-right": [
|
||||
"tray",
|
||||
"custom/weather",
|
||||
"network#ethernet",
|
||||
"clock",
|
||||
"custom/poweroff"
|
||||
@@ -114,12 +113,5 @@
|
||||
"format": " ",
|
||||
"on-click": "bash $HOME/.config/waybar/scripts/poweroff.sh"
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "$HOME/.config/waybar/scripts/get_weather.sh Belleville+Illinois",
|
||||
"return-type": "json",
|
||||
"format": "{}",
|
||||
"tooltip": true,
|
||||
"interval": 3600
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# get_weather.sh
|
||||
for i in {1..5}
|
||||
do
|
||||
text=$(curl -s "https://wttr.in/$1?format=1")
|
||||
if [[ $? == 0 ]]
|
||||
then
|
||||
text=$(echo "$text" | sed -E "s/\s+/ /g")
|
||||
tooltip=$(curl -s "https://wttr.in/$1?format=4")
|
||||
if [[ $? == 0 ]]
|
||||
then
|
||||
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
|
||||
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"
|
||||
+2
-2
@@ -10,8 +10,8 @@
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: alpha(@surface0, 0.3);
|
||||
border-radius: 4px;
|
||||
background-color: alpha(@base, 0.6);
|
||||
border-radius: 6px;
|
||||
border: 0px solid @overlay0;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 6px;
|
||||
|
||||
Reference in New Issue
Block a user