You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I already know it's possible to override the FG text color and BG color by specifying the 3rd and 4th lines with printf/echo doing something like this:
~/.local/share/i3blocks/volume
#!/bin/sh
#set -x
# Define output variables for Pipewire
volsrc="wpctl get-volume @DEFAULT_AUDIO_SINK@"
volume=$(eval "$volsrc" | awk '{print int($2*100)}')
muted=$(eval "$volsrc" | awk '{print $3}')
if [ "$muted" = "[MUTED]" ]; then
printf "MUTE\n"
printf "MUTE\n"
printf "#ff0000\n"
printf "#000000"
exit
fi
# Print volume percentage levels (short then long format)
printf "%s%%\n" "$volume"
printf "%s%%\n" "$volume"
But after learning about the borders, what I want to do next is maybe something more advanced like have the script change the color of the borders from within the script programmatically. Is there a way to do that? Do I need to switch to something more advanced like the JSON markup to be able to do that sort of thing?
The text was updated successfully, but these errors were encountered:
mrjpaxton
changed the title
Change the color of borders or
Change the color of borders from within a script
Jan 27, 2024
Hey everyone,
Firstly, I already know it's possible to override the FG text color and BG color by specifying the 3rd and 4th lines with printf/echo doing something like this:
~/.local/share/i3blocks/volume
The block config is this:
~/.config/i3blocks/config
But after learning about the borders, what I want to do next is maybe something more advanced like have the script change the color of the borders from within the script programmatically. Is there a way to do that? Do I need to switch to something more advanced like the JSON markup to be able to do that sort of thing?
The text was updated successfully, but these errors were encountered: