From 0e060e19e6ac35bb8179fb43c857083077c77584 Mon Sep 17 00:00:00 2001 From: coolnsx Date: Thu, 5 Jan 2023 21:48:07 +0530 Subject: [PATCH] I really should've committed this when I finished it... --- eww/eww.scss | 6 +++--- eww/script | 11 +++++------ hypr/hyprland.conf | 4 ++-- nvim/init.lua | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/eww/eww.scss b/eww/eww.scss index a7d89f2..99ac479 100644 --- a/eww/eww.scss +++ b/eww/eww.scss @@ -17,7 +17,7 @@ /** Clock ********************************************/ .time_hour, .time_min { - color: #DA0F67; + color: #81A1C1; font-size : 70px; font-weight : bold; } @@ -55,7 +55,7 @@ } .song { - color: #DA0F67; + color: #8FBCBB; font-size : 24px; font-weight : bold; margin : 5px 0px 0px 0px; @@ -89,7 +89,7 @@ .music_bar scale trough highlight { 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; } .music_bar scale trough { diff --git a/eww/script b/eww/script index 5bbfa74..bb6fa13 100755 --- a/eww/script +++ b/eww/script @@ -1,24 +1,23 @@ #!/bin/sh - out=$(echo '{ "command": ["get_property", "pause"]}' | socat - /tmp/mpvsocket 2>/dev/null) case $1 in 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|-$||' else echo "Offline" fi ;; 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_.* -__' else echo "Offline" fi ;; cover) - if [ -n "$out" ];then + if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then echo "$HOME/.cache/yt-music/default.jpg" else echo "$HOME/.config/eww/music.png" @@ -37,10 +36,10 @@ case $1 in echo cycle pause | socat - "/tmp/mpvsocket" ;; next) - $HOME/repos_scripts/yt-music play_next >/dev/null + /home/tanveer/repos_scripts/yt-music play_next ;; 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) out=$(echo '{"command" :["get_property" , "percent-pos"]}' | socat - /tmp/mpvsocket 2>/dev/null | sed -nE 's_.*data":([^,]*).*_\1_p') diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 15891ef..2a6205c 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -168,8 +168,8 @@ windowrulev2=workspace 4,class:^(pavucontrol)$ #startup applications exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once=ssh-agent -exec-once=$HOME/repos_scripts/yt-music loop -exec-once=swaybg -i ~/wall/10.png +exec-once=swaybg -i ~/wall/9.png +exec-once=xrdb -merge ~/.config/.Xresources exec-once=$hypr_dir/workspace 'focus' exec-once=eww open-many music_0 time_0 exec-once=sleep 5 && $hypr_dir/workspace diff --git a/nvim/init.lua b/nvim/init.lua index 20d9659..2d8c67e 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -173,7 +173,7 @@ local dap = require('dap') --treesitter require'nvim-treesitter.configs'.setup { -- 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`) sync_install = false,