mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
Completed with no bugs...
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
:monitor 0
|
||||
:geometry (geometry :x "50"
|
||||
:y "50"
|
||||
:width "20%"
|
||||
:width "30%"
|
||||
:height "40px"
|
||||
:anchor "bottom left")
|
||||
:stacking "bg"
|
||||
|
||||
@@ -36,10 +36,10 @@ case $1 in
|
||||
echo cycle pause | socat - "/tmp/mpvsocket"
|
||||
;;
|
||||
next)
|
||||
/home/tanveer/repos_scripts/yt-music play_next
|
||||
pgrep -f mpvsocket >/dev/null 2>&1 && /home/tanveer/repos_scripts/yt-music play_next
|
||||
;;
|
||||
prev)
|
||||
pgrep -f mpvsocket >/dev/null 2>&1 && $HOME/repos_scripts/yt-music play "$(sed 's| >|\t|g' $HOME/.cache/yt-music/prev | cut -d':' -f2)"
|
||||
pgrep -f mpvsocket >/dev/null 2>&1 && ($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')
|
||||
|
||||
Reference in New Issue
Block a user