changes
This commit is contained in:
parent
c4f8f8acaa
commit
0bc8e861ea
4 changed files with 23 additions and 17 deletions
|
@ -4,7 +4,7 @@
|
|||
"height": 20, // Waybar height (to be removed for auto height)
|
||||
//"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["hyprland/workspaces","hyprland/window"],
|
||||
"modules-left": ["hyprland/workspaces"], // ,"hyprland/window"
|
||||
// "modules-center": ["cava"],
|
||||
"modules-right": ["custom/spotify", "network", "cpu", "memory", "temperature", "backlight", "pulseaudio", "battery", "tray", "clock"],
|
||||
// Modules configuration
|
||||
|
|
|
@ -5,8 +5,8 @@ icon=" "
|
|||
|
||||
if [[ $class == "playing" ]]; then
|
||||
info=$(playerctl metadata --player=firefox --format '{{title}}')
|
||||
if [[ ${#info} > 30 ]]; then
|
||||
info=$(echo $info | cut -c1-30)"..."
|
||||
if [[ ${#info} > 40 ]]; then
|
||||
info=$(echo $info | cut -c1-40)"..."
|
||||
fi
|
||||
text=$info" "$icon
|
||||
elif [[ $class == "paused" ]]; then
|
||||
|
@ -20,8 +20,8 @@ classa=$(playerctl metadata --player=spotify --format '{{lc(status)}}')
|
|||
if [[ $classa == "playing" ]]; then
|
||||
icon=""
|
||||
info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}')
|
||||
if [[ ${#info} > 30 ]]; then
|
||||
info=$(echo $info | cut -c1-30)"..."
|
||||
if [[ ${#info} > 40 ]]; then
|
||||
info=$(echo $info | cut -c1-40)"..."
|
||||
fi
|
||||
text=$info" "$icon
|
||||
elif [[ $class == "paused" ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue