mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
I really should've committed this when I finished it...
This commit is contained in:
@@ -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 {
|
||||
|
||||
11
eww/script
11
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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user