From 5ee20afa26733bf193fb65957e1a14b6ff63bae0 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 25 Jul 2025 20:30:07 -0700 Subject: [PATCH] New backup 2025-07-25 20:30:07 --- de/home/.config/eww/scripts/home/nowplaying.sh | 15 +++++++++++++++ de/home/.config/eww/style/bar.scss | 17 ++--------------- 2 files changed, 17 insertions(+), 15 deletions(-) create mode 100755 de/home/.config/eww/scripts/home/nowplaying.sh diff --git a/de/home/.config/eww/scripts/home/nowplaying.sh b/de/home/.config/eww/scripts/home/nowplaying.sh new file mode 100755 index 0000000..a9f8a8e --- /dev/null +++ b/de/home/.config/eww/scripts/home/nowplaying.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +#playerctl --follow metadata --format '{{ title }}' | { +playerctl --follow metadata --format '{{ trunc(artist,23) }}' + +#playerctl metadata --format '{{ title }}\n{{ artist }}' | { +# while read -r nowplaying_title; do +# if [ ${#nowplaying_title} -ge 45 ];then +# echo "${nowplaying_title:0:40}…" +# else +# echo "${nowplaying_title}" +# fi +# echo "${nowplaying_title}" | head -c 50; +# done +#} diff --git a/de/home/.config/eww/style/bar.scss b/de/home/.config/eww/style/bar.scss index 7b85def..f0d841f 100644 --- a/de/home/.config/eww/style/bar.scss +++ b/de/home/.config/eww/style/bar.scss @@ -23,20 +23,13 @@ $bar-reveal-children-bg-color: rgba($color0, 0.2); margin-left: 0px; padding: 6px 10px; min-width: $bar-module-width; -// padding-right: 5px; -// &:first-child { -// margin-left: 0px; -// } -// &:last-child { -// margin-right: 0px; -// } } .revealer-on-hover>widget>box>box>* { border-radius: $bar-module-inner-radius; } .revealer-on-hover>widget>box>box>*, .reveal_children>widget>image, - .reveal_children:not(.tray)>*, + .reveal_children:not(.tray)>*:not(:last-child), &>button, &>label { box-shadow: 3px 0 3px -2px $bar-module-fg-color; @@ -44,6 +37,7 @@ $bar-reveal-children-bg-color: rgba($color0, 0.2); .revealer-on-hover.true { background-color: $bar-reveal-children-bg-color; border-radius: $bar-module-inner-radius; + box-shadow: 3px 0 3px -2px $bar-module-fg-color; &>widget>box>box>* { background-color: $bar-bg-color; } @@ -51,10 +45,6 @@ $bar-reveal-children-bg-color: rgba($color0, 0.2); .reveal_children { border-radius: 0px $bar-module-inner-radius $bar-module-inner-radius 0px; } - .reveal_children>widget>image, - .reveal_children:not(.tray)>* { - margin-left: -6px; - } } .workspaces { @@ -80,7 +70,6 @@ $bar-reveal-children-bg-color: rgba($color0, 0.2); padding: 2px 3px; transition: all 0.3s; &.left { -// margin-right: -2px; border-radius: $bar-module-inner-radius 0px 0px $bar-module-inner-radius; box-shadow: -3px 0 2px -1px $bar-module-fg-color; } @@ -90,8 +79,6 @@ $bar-reveal-children-bg-color: rgba($color0, 0.2); box-shadow: 0 0 2px 1px $bar-module-fg-color; } &.right { -// margin-left: -2px; -// border-radius: $bar-module-border-radius - 1; border-radius: 0px $bar-module-inner-radius $bar-module-inner-radius 0px; box-shadow: 3px 0 2px -1px $bar-module-fg-color; }