mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
oops
This commit is contained in:
17
eww/eww.scss
17
eww/eww.scss
@@ -11,7 +11,8 @@
|
||||
|
||||
/** Generic window ***********************************/
|
||||
.genwin {
|
||||
background-color: rgba(46, 52, 64, 0.5);
|
||||
//background-color: rgba(46, 52, 64, 0.5);
|
||||
background-color: rgba(0,0,0,0);
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
@@ -47,8 +48,8 @@
|
||||
background-size: cover;
|
||||
background-repeat:no-repeat;
|
||||
background-color: rgba(0,0,0,0);
|
||||
min-height: 210px;
|
||||
min-width: 210px;
|
||||
min-height: 240px;
|
||||
min-width: 240px;
|
||||
margin: 0px 50px 0px 0px;
|
||||
border-radius: 15px;
|
||||
border-style:none;
|
||||
@@ -58,21 +59,21 @@
|
||||
color: #8FBCBB;
|
||||
font-size : 24px;
|
||||
font-weight : bold;
|
||||
margin : 5px 0px 0px 0px;
|
||||
margin : 10px 0px 0px 0px;
|
||||
}
|
||||
|
||||
.artist {
|
||||
color: #EBCB8B;
|
||||
font-size : 20px;
|
||||
font-weight : normal;
|
||||
margin : 0px 0px -10px 0px;
|
||||
margin : 0px 0px 0px 0px;
|
||||
}
|
||||
|
||||
.btn_play {
|
||||
margin : 0px 0px 0px 0px;
|
||||
color: #A3BE8C;
|
||||
font-family: IosevkaTerm Nerd Font Mono;
|
||||
font-size : 70px;
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
.btn_prev {
|
||||
@@ -89,7 +90,7 @@
|
||||
|
||||
.music_bar scale trough highlight {
|
||||
all: unset;
|
||||
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
|
||||
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
|
||||
border-radius: 24px;
|
||||
}
|
||||
.music_bar scale trough {
|
||||
@@ -97,5 +98,5 @@
|
||||
border-radius: 24px;
|
||||
min-height: 13px;
|
||||
min-width: 190px;
|
||||
margin : -22px 0px 10px 0px;
|
||||
margin : 0px 0px 10px 0px;
|
||||
}
|
||||
|
||||
22
eww/eww.yuck
22
eww/eww.yuck
@@ -1,8 +1,8 @@
|
||||
;;time
|
||||
(defwindow time_1
|
||||
:monitor 1
|
||||
:geometry (geometry :x "-10px"
|
||||
:y "30px"
|
||||
:geometry (geometry :x "10px"
|
||||
:y "0px"
|
||||
:width "20%"
|
||||
:height "200px"
|
||||
:anchor "top right")
|
||||
@@ -14,11 +14,11 @@
|
||||
|
||||
(defwindow time_0
|
||||
:monitor 0
|
||||
:geometry (geometry :x "50px"
|
||||
:y "50px"
|
||||
:geometry (geometry :x "10px"
|
||||
:y "0px"
|
||||
:width "21%"
|
||||
:height "200px"
|
||||
:anchor "bottom right")
|
||||
:anchor "top right")
|
||||
:stacking "bg"
|
||||
:reserve (struts :distance "40px" :side "top")
|
||||
:windowtype "dock"
|
||||
@@ -35,7 +35,7 @@
|
||||
(box :orientation "h" :spacing 0
|
||||
(label :class "time_hour" :valign "start" :wrap "true" :limit-width 25 :text HOUR)
|
||||
(label :class "time_min" :valign "end" :wrap "true" :limit-width 25 :text MIN))
|
||||
(box :orientation "v" :spacing 0
|
||||
(box :orientation "v" :spacing 0 :space-evenly true
|
||||
(label :class "time_mer" :valign "start" :halign "end" :wrap "true" :limit-width 25 :text MER)
|
||||
(label :class "time_day" :valign "end" :halign "end" :wrap "true" :limit-width 25 :text DAY))))
|
||||
|
||||
@@ -57,8 +57,8 @@
|
||||
:monitor 1
|
||||
:geometry (geometry :x "50"
|
||||
:y "50"
|
||||
:width "20%"
|
||||
:height "0px"
|
||||
:width "30%"
|
||||
:height "40px"
|
||||
:anchor "bottom left")
|
||||
:stacking "bg"
|
||||
:reserve (struts :distance "10px" :side "bottom")
|
||||
@@ -66,10 +66,10 @@
|
||||
:wm-ignore true
|
||||
(music))
|
||||
|
||||
(defpoll SONG :interval "1s" `./script song`)
|
||||
(defpoll ARTIST :interval "1s" `./script artist`)
|
||||
(defpoll SONG :interval "2s" `./script song`)
|
||||
(defpoll ARTIST :interval "2s" `./script artist`)
|
||||
(defpoll STATUS :interval "0.5s" `./script status`)
|
||||
(defpoll COVER :interval "1s" `./script cover`)
|
||||
(defpoll COVER :interval "2s" `./script cover`)
|
||||
(defpoll CURRENT :interval "1s" `./script time`)
|
||||
|
||||
(defwidget music []
|
||||
|
||||
@@ -4,21 +4,21 @@ out=$(echo '{ "command": ["get_property", "pause"]}' | socat - /tmp/mpvsocket 2>
|
||||
case $1 in
|
||||
song)
|
||||
if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then
|
||||
cut -d'>' -f1 < "$HOME/.cache/yt-music/current" | cut -d':' -f2 | sed 's|[^-]*$||;s|-$||'
|
||||
cut -d'>' -f1 < "/tmp/yt-music/current" | cut -d':' -f2 | sed 's|[^-]*$||;s|-$||'
|
||||
else
|
||||
echo "Offline"
|
||||
fi
|
||||
;;
|
||||
artist)
|
||||
if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then
|
||||
cut -d'>' -f1 < "$HOME/.cache/yt-music/current" | sed 's_.* -__'
|
||||
cut -d'>' -f1 < "/tmp/yt-music/current" | sed 's_.* -__'
|
||||
else
|
||||
echo "Offline"
|
||||
fi
|
||||
;;
|
||||
cover)
|
||||
if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then
|
||||
echo "$HOME/.cache/yt-music/default.jpg"
|
||||
echo "/tmp/yt-music/default.jpg"
|
||||
else
|
||||
echo "$HOME/.config/eww/music.png"
|
||||
fi
|
||||
@@ -39,7 +39,7 @@ case $1 in
|
||||
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' /tmp/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