project lead is allergic to changes...

This commit is contained in:
coolnsx
2023-01-05 16:27:19 +05:30
parent 1f568f3cc2
commit a9c0c5c8a2
10 changed files with 63 additions and 232 deletions

View File

@@ -89,11 +89,10 @@
.music_bar scale trough highlight {
all: unset;
background-image: linear-gradient(to right, #8A3288 30%, #8A32AA 50%, #8A326F 100% *50);
background-image: linear-gradient(to right, #EA3288 30%, #EA32AA 50%, #EA326F 100% *50);
border-radius: 24px;
}
.music_bar scale trough {
all: unset;
background-color: #232232;
border-radius: 24px;
min-height: 13px;

View File

@@ -14,7 +14,7 @@
(defwindow time_0
:monitor 0
:geometry (geometry :x "-10px"
:geometry (geometry :x "0px"
:y "20px"
:width "20%"
:height "200px"
@@ -25,9 +25,9 @@
:wm-ignore false
(clock))
(defpoll HOUR :interval "5s" `date +\"%I\"`)
(defpoll MIN :interval "5s" `date +\"%M\"`)
(defpoll MER :interval "5s" `date +\"%p\"`)
(defpoll HOUR :interval "2s" `date +\"%I\"`)
(defpoll MIN :interval "2s" `date +\"%M\"`)
(defpoll MER :interval "2s" `date +\"%p\"`)
(defpoll DAY :interval "5s" `date +\"%A\"`)
(defwidget clock []
@@ -45,7 +45,7 @@
:geometry (geometry :x "50"
:y "50"
:width "20%"
:height "0px"
:height "40px"
:anchor "bottom left")
:stacking "bg"
:reserve (struts :distance "10px" :side "bottom")

View File

@@ -40,11 +40,11 @@ case $1 in
$HOME/repos_scripts/yt-music play_next >/dev/null
;;
prev)
$HOME/repos_scripts/yt-music play "$(sed 's| >|\t|g' $HOME/.cache/yt-music/prev | cut -d':' -f2)"
pgrep -f mpvsocket && ($HOME/repos_scripts/yt-music play "$(sed 's| >|\t|g' $HOME/.cache/yt-music/prev | cut -d':' -f2)")
;;
time)
out=$(echo '{"command" :["get_property" , "percent-pos"]}' | socat - /tmp/mpvsocket 2>/dev/null | sed -nE 's_.*data":([^,]*).*_\1_p')
[ -z "$out" ] && echo "0" || echo "$out"
[ -z "$out" ] && echo "100" || echo "$out"
;;
seek)
echo "{\"command\" :[\"seek\" ,\"$2\",\"relative-percent\"]}" | socat - /tmp/mpvsocket