I really should've committed this when I finished it...

This commit is contained in:
coolnsx
2023-01-05 21:48:07 +05:30
parent a9c0c5c8a2
commit 0e060e19e6
4 changed files with 11 additions and 12 deletions

View File

@@ -17,7 +17,7 @@
/** Clock ********************************************/ /** Clock ********************************************/
.time_hour, .time_min { .time_hour, .time_min {
color: #DA0F67; color: #81A1C1;
font-size : 70px; font-size : 70px;
font-weight : bold; font-weight : bold;
} }
@@ -55,7 +55,7 @@
} }
.song { .song {
color: #DA0F67; color: #8FBCBB;
font-size : 24px; font-size : 24px;
font-weight : bold; font-weight : bold;
margin : 5px 0px 0px 0px; margin : 5px 0px 0px 0px;
@@ -89,7 +89,7 @@
.music_bar scale trough highlight { .music_bar scale trough highlight {
all: unset; all: unset;
background-image: linear-gradient(to right, #EA3288 30%, #EA32AA 50%, #EA326F 100% *50); background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
border-radius: 24px; border-radius: 24px;
} }
.music_bar scale trough { .music_bar scale trough {

View File

@@ -1,24 +1,23 @@
#!/bin/sh #!/bin/sh
out=$(echo '{ "command": ["get_property", "pause"]}' | socat - /tmp/mpvsocket 2>/dev/null) out=$(echo '{ "command": ["get_property", "pause"]}' | socat - /tmp/mpvsocket 2>/dev/null)
case $1 in case $1 in
song) song)
if [ -n "$out" ];then 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 < "$HOME/.cache/yt-music/current" | cut -d':' -f2 | sed 's|[^-]*$||;s|-$||'
else else
echo "Offline" echo "Offline"
fi fi
;; ;;
artist) artist)
if [ -n "$out" ];then if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then
cut -d'>' -f1 < "$HOME/.cache/yt-music/current" | sed 's_.* -__' cut -d'>' -f1 < "$HOME/.cache/yt-music/current" | sed 's_.* -__'
else else
echo "Offline" echo "Offline"
fi fi
;; ;;
cover) cover)
if [ -n "$out" ];then if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then
echo "$HOME/.cache/yt-music/default.jpg" echo "$HOME/.cache/yt-music/default.jpg"
else else
echo "$HOME/.config/eww/music.png" echo "$HOME/.config/eww/music.png"
@@ -37,10 +36,10 @@ case $1 in
echo cycle pause | socat - "/tmp/mpvsocket" echo cycle pause | socat - "/tmp/mpvsocket"
;; ;;
next) next)
$HOME/repos_scripts/yt-music play_next >/dev/null /home/tanveer/repos_scripts/yt-music play_next
;; ;;
prev) prev)
pgrep -f mpvsocket && ($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) time)
out=$(echo '{"command" :["get_property" , "percent-pos"]}' | socat - /tmp/mpvsocket 2>/dev/null | sed -nE 's_.*data":([^,]*).*_\1_p') out=$(echo '{"command" :["get_property" , "percent-pos"]}' | socat - /tmp/mpvsocket 2>/dev/null | sed -nE 's_.*data":([^,]*).*_\1_p')

View File

@@ -168,8 +168,8 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
#startup applications #startup applications
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=ssh-agent exec-once=ssh-agent
exec-once=$HOME/repos_scripts/yt-music loop exec-once=swaybg -i ~/wall/9.png
exec-once=swaybg -i ~/wall/10.png exec-once=xrdb -merge ~/.config/.Xresources
exec-once=$hypr_dir/workspace 'focus' exec-once=$hypr_dir/workspace 'focus'
exec-once=eww open-many music_0 time_0 exec-once=eww open-many music_0 time_0
exec-once=sleep 5 && $hypr_dir/workspace exec-once=sleep 5 && $hypr_dir/workspace

View File

@@ -173,7 +173,7 @@ local dap = require('dap')
--treesitter --treesitter
require'nvim-treesitter.configs'.setup { require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" -- A list of parser names, or "all"
ensure_installed = { "c", "lua", "bash", "html", "css","php","javascript", "python" }, ensure_installed = { "c", "lua", "bash", "html", "css","php","javascript", "python","jsonc" },
-- Install parsers synchronously (only applied to `ensure_installed`) -- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false, sync_install = false,