style: formatting
This commit is contained in:
parent
f748e2d0e2
commit
866e541a92
@ -1,4 +1,5 @@
|
|||||||
{
|
[
|
||||||
|
{
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
@ -8,11 +9,10 @@
|
|||||||
"memory",
|
"memory",
|
||||||
"battery",
|
"battery",
|
||||||
"disk",
|
"disk",
|
||||||
"pulseaudio",
|
"pulseaudio"
|
||||||
"custom/media"
|
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"sway/workspaces"
|
"custom/media"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/weather",
|
"custom/weather",
|
||||||
@ -20,7 +20,6 @@
|
|||||||
"clock",
|
"clock",
|
||||||
"custom/offswitch"
|
"custom/offswitch"
|
||||||
],
|
],
|
||||||
"sway/window": {},
|
|
||||||
"custom/weather": {
|
"custom/weather": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"min-length": 5,
|
"min-length": 5,
|
||||||
@ -141,6 +140,19 @@
|
|||||||
"critical": 90
|
"critical": 90
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"custom/media": {
|
||||||
|
"interval": 1,
|
||||||
|
"return-type": "json",
|
||||||
|
"exec": "~/.config/waybar/scripts/get-media.bash",
|
||||||
|
"escape": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"layer": "bottom",
|
||||||
|
"position": "bottom",
|
||||||
|
"modules-center": [
|
||||||
|
"sway/workspaces"
|
||||||
|
],
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
@ -152,11 +164,6 @@
|
|||||||
"5": [],
|
"5": [],
|
||||||
"6": []
|
"6": []
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"custom/media": {
|
|
||||||
"interval": 1,
|
|
||||||
"return-type": "json",
|
|
||||||
"exec": "~/.config/waybar/scripts/get-media.bash",
|
|
||||||
"escape": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
@ -8,10 +8,10 @@ main() {
|
|||||||
local player_ctl_info="$(playerctl metadata --format '{{ artist }} | {{ title }} | {{ album }}')"
|
local player_ctl_info="$(playerctl metadata --format '{{ artist }} | {{ title }} | {{ album }}')"
|
||||||
|
|
||||||
if [[ "${class}" == "playing" ]]; then
|
if [[ "${class}" == "playing" ]]; then
|
||||||
text="▶ ${player_ctl_info}"
|
text=" ${player_ctl_info}"
|
||||||
|
|
||||||
elif [[ "${class}" == "paused" ]]; then
|
elif [[ "${class}" == "paused" ]]; then
|
||||||
text="⏸︎ ${player_ctl_info}"
|
text=" ${player_ctl_info}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf '{"class": "%s", "text": "%s"}\n' "${class}" "${text}"
|
printf '{"class": "%s", "text": "%s"}\n' "${class}" "${text}"
|
||||||
|
@ -38,9 +38,10 @@
|
|||||||
* {
|
* {
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
margin: 3px;
|
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
padding-left: 20px;
|
padding-left: 20px;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,6 +56,7 @@
|
|||||||
background: @sumiInk0;
|
background: @sumiInk0;
|
||||||
border-top: 2px solid @oniViolet;
|
border-top: 2px solid @oniViolet;
|
||||||
border-left: 2px solid @oniViolet;
|
border-left: 2px solid @oniViolet;
|
||||||
|
border-right: 2px solid @oniViolet;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
|
Loading…
Reference in New Issue
Block a user