mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
Fix PC Load Letter Error
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
--enable-features=UseOzonePlatform
|
--enable-features=WaylandWindowDecorations
|
||||||
--ozone-platform=wayland
|
--ozone-platform-hint=auto
|
||||||
|
--enable-webrtc-pipewire-capturer
|
||||||
|
|||||||
@@ -77,9 +77,9 @@
|
|||||||
(label :tooltip "${song.name}" :halign "center" :class "song" :wrap "false" :limit-width 20 :text "${song.name}")
|
(label :tooltip "${song.name}" :halign "center" :class "song" :wrap "false" :limit-width 20 :text "${song.name}")
|
||||||
(label :halign "center" :class "artist" :wrap "false" :limit-width 20 :text "${song.artist}")
|
(label :halign "center" :class "artist" :wrap "false" :limit-width 20 :text "${song.artist}")
|
||||||
(box :orientation "h" :spacing 35 :halign "center" :space-evenly "true" :vexpand "false" :hexpand "false"
|
(box :orientation "h" :spacing 35 :halign "center" :space-evenly "true" :vexpand "false" :hexpand "false"
|
||||||
(button :class "btn_controls" :onclick "./script prev" "")
|
(button :class "btn_controls" :tooltip "History : ${song.prev}" :onclick "./script prev" "")
|
||||||
(button :class "btn_controls" :onclick "./script seek '-1'" "")
|
(button :class "btn_controls" :tooltip "Seek -1%" :onclick "./script seek '-1'" "")
|
||||||
(button :class "btn_play" :onclick "./script play_toggle" STATUS)
|
(button :class "btn_play" :onclick "./script play_toggle" STATUS)
|
||||||
(button :class "btn_controls" :onclick "./script seek '1'" "")
|
(button :class "btn_controls" :tooltip "Seek +1%" :onclick "./script seek '1'" "")
|
||||||
(button :class "btn_controls" :tooltip "Upcoming : ${song.next}" :onclick "./script next" ""))
|
(button :class "btn_controls" :tooltip "Upcoming : ${song.next}" :onclick "./script next" ""))
|
||||||
(label :justify "left" :wrap "true" :class "lyrics" :text LYRICS))))
|
(label :justify "left" :wrap "true" :class "lyrics" :text LYRICS))))
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
from pypresence import Presence
|
|
||||||
import re, json
|
|
||||||
from time import time
|
|
||||||
|
|
||||||
|
|
||||||
RPC = Presence("1086258743823564903")
|
|
||||||
|
|
||||||
RPC.connect()
|
|
||||||
|
|
||||||
with open("/tmp/yt-music/current",'r') as file:
|
|
||||||
li = re.split(' >|: | - ',file.readline().strip('\n'))
|
|
||||||
file.close()
|
|
||||||
RPC.update(large_image=f"https://i.ytimg.com/vi/{li[-1]}/mqdefault.jpg",details=f"{li[1]}",state=li[2],small_image="/home/tanveer/Downloads/kisspng-mpv-logo-computer-software-5b0b2bfe514221.6053513215274588143328.png",start=time.time())
|
|
||||||
16
eww/script
16
eww/script
@@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
songdata)
|
songdata)
|
||||||
out=$(printf '{ "command": ["get_property", "pause"]}\n' | socat - /tmp/mpvsocket 2>/dev/null)
|
out=$(printf '{ "command": ["get_property", "pause"]}\n' | socat - /tmp/yt-music/yt-music-mpvsocket 2>/dev/null)
|
||||||
if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then
|
if [ -n "$out" ] && pgrep -f mpvsocket >/dev/null 2>&1;then
|
||||||
printf '{"name":"%s","artist":"%s","cover":"/tmp/yt-music/default.jpg","next":"%s"}' "$(cut -d'>' -f1 < "/tmp/yt-music/current" | cut -d':' -f2 | sed 's|[^-]*$||;s|-$||;s| $||;s|^ ||')" "$(cut -d'>' -f1 < "/tmp/yt-music/current" | sed 's_.* - __;s| $||')" "$(sed -n "/$(cut -d'>' -f2 < /tmp/yt-music/current )/{n;p}" /tmp/yt-music/next | cut -f1)"
|
printf '{"name":"%s","artist":"%s","cover":"/tmp/yt-music/default.jpg","next":"%s","prev":"%s"}' "$(cut -d'>' -f1 < "/tmp/yt-music/current" | cut -d':' -f2 | sed 's|[^-]*$||;s|-$||;s| $||;s|^ ||')" "$(cut -d'>' -f1 < "/tmp/yt-music/current" | sed 's_.* - __;s| $||')" "$(sed -n "/$(cut -d'>' -f2 < /tmp/yt-music/current )/{n;p}" /tmp/yt-music/next | cut -f1)" "$(sed -n "$(cat /tmp/yt-music/counter)p" /tmp/yt-music/next | cut -f1)"
|
||||||
else
|
else
|
||||||
printf '{"name":"OFFLINE","artist":"offline","cover":"%s/.config/eww/music.png"}' "$HOME"
|
printf '{"name":"OFFLINE","artist":"offline","cover":"%s/.config/eww/music.png"}' "$HOME"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
out=$(printf '{ "command": ["get_property", "pause"]}\n' | socat - /tmp/mpvsocket 2>/dev/null)
|
out=$(printf '{ "command": ["get_property", "pause"]}\n' | socat - /tmp/yt-music/yt-music-mpvsocket 2>/dev/null)
|
||||||
if [ -z "$out" ];then
|
if [ -z "$out" ];then
|
||||||
printf ""
|
printf ""
|
||||||
elif printf "%s" "$out" | grep -q "true";then
|
elif printf "%s" "$out" | grep -q "true";then
|
||||||
@@ -21,17 +21,17 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
lyrics)
|
lyrics)
|
||||||
if [ -f "/tmp/yt-music/lyrics" ]; then
|
if [ -f "/tmp/yt-music/lyrics" ]; then
|
||||||
awk -F'\t' -v value="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - /tmp/mpvsocket | sed -nE 's|.*data":([^,]*).*|\1|p')" '$1 > value*1000 {print $2;exit}' /tmp/yt-music/lyrics
|
awk -F'\t' -v value="$(echo '{ "command": ["get_property", "time-pos"] }' | socat - /tmp/yt-music/yt-music-mpvsocket | sed -nE 's|.*data":([^,]*).*|\1|p')" '$1 > value*1002 {print $2;exit}' /tmp/yt-music/lyrics
|
||||||
else
|
else
|
||||||
printf "Lyrics will show here"
|
printf "Lyrics will show here"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
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/yt-music/yt-music-mpvsocket 2>/dev/null | sed -nE 's_.*data":([^,]*).*_\1_p')
|
||||||
printf '%s' "${out:-100}"
|
printf '%s' "${out:-100}"
|
||||||
;;
|
;;
|
||||||
play_toggle)
|
play_toggle)
|
||||||
echo cycle pause | socat - "/tmp/mpvsocket"
|
echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||||
;;
|
;;
|
||||||
next)
|
next)
|
||||||
pgrep -f mpvsocket >/dev/null 2>&1 && "$HOME/repos_scripts/yt-music" play_next
|
pgrep -f mpvsocket >/dev/null 2>&1 && "$HOME/repos_scripts/yt-music" play_next
|
||||||
@@ -40,9 +40,9 @@ case $1 in
|
|||||||
sed -n "$(cat /tmp/yt-music/counter){n;p}" /tmp/yt-music/next | cut -f1
|
sed -n "$(cat /tmp/yt-music/counter){n;p}" /tmp/yt-music/next | cut -f1
|
||||||
;;
|
;;
|
||||||
prev)
|
prev)
|
||||||
pgrep -f mpvsocket >/dev/null 2>&1 && ("$HOME/repos_scripts/yt-music" play "$(sed 's| >|\t|g' /tmp/yt-music/prev | cut -d':' -f2)")
|
pgrep -f mpvsocket >/dev/null 2>&1 && counter=$(cat /tmp/yt-music/counter) && [ "$counter" -gt 0 ] && "$HOME/repos_scripts/yt-music" play "$(sed -n "${counter}p" /tmp/yt-music/next)" && printf "%s" "$((counter-1))" > /tmp/yt-music/counter &
|
||||||
;;
|
;;
|
||||||
seek)
|
seek)
|
||||||
echo "{\"command\" :[\"seek\" ,\"$2\",\"relative-percent\"]}" | socat - /tmp/mpvsocket
|
echo "{\"command\" :[\"seek\" ,\"$2\",\"relative-percent\"]}" | socat - /tmp/yt-music/yt-music-mpvsocket
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ font-italic=Victor Mono:style=Italic:size=12
|
|||||||
# horizontal-letter-offset=0
|
# horizontal-letter-offset=0
|
||||||
# vertical-letter-offset=0
|
# vertical-letter-offset=0
|
||||||
# underline-offset=<font metrics>
|
# underline-offset=<font metrics>
|
||||||
# box-drawings-uses-font-glyphs=no
|
box-drawings-uses-font-glyphs=yes
|
||||||
# dpi-aware=auto
|
# dpi-aware=auto
|
||||||
|
|
||||||
# initial-window-size-pixels=700x500 # Or,
|
# initial-window-size-pixels=700x500 # Or,
|
||||||
@@ -85,7 +85,7 @@ bright4=FC9867
|
|||||||
bright5=AB9DF2
|
bright5=AB9DF2
|
||||||
bright6=78DCE8
|
bright6=78DCE8
|
||||||
bright7=FCFCFA
|
bright7=FCFCFA
|
||||||
alpha=0.90
|
alpha=0.9
|
||||||
|
|
||||||
## dimmed colors (see foot.ini(5) man page)
|
## dimmed colors (see foot.ini(5) man page)
|
||||||
# dim0=<not set>
|
# dim0=<not set>
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
[Filechooser Settings]
|
|
||||||
LocationMode=path-bar
|
|
||||||
ShowHidden=false
|
|
||||||
ShowSizeColumn=true
|
|
||||||
GeometryX=2560
|
|
||||||
GeometryY=225
|
|
||||||
GeometryWidth=640
|
|
||||||
GeometryHeight=630
|
|
||||||
SortColumn=name
|
|
||||||
SortOrder=ascending
|
|
||||||
StartupMode=recent
|
|
||||||
@@ -6,8 +6,8 @@ gtk-cursor-theme-name=Adwaita
|
|||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
gtk-button-images=0
|
gtk-button-images=1
|
||||||
gtk-menu-images=0
|
gtk-menu-images=1
|
||||||
gtk-enable-event-sounds=1
|
gtk-enable-event-sounds=1
|
||||||
gtk-enable-input-feedback-sounds=1
|
gtk-enable-input-feedback-sounds=1
|
||||||
gtk-xft-antialias=1
|
gtk-xft-antialias=1
|
||||||
|
|||||||
@@ -97,7 +97,8 @@ bind = $mainMod, 1, workspace, 1
|
|||||||
bind = $mainMod, 2, workspace, 2
|
bind = $mainMod, 2, workspace, 2
|
||||||
bind = $mainMod, 3, workspace, 3
|
bind = $mainMod, 3, workspace, 3
|
||||||
bind = $mainMod, 4, workspace, 4
|
bind = $mainMod, 4, workspace, 4
|
||||||
bind = $mainMod, 49,exec,hyprctl dispatch $(head -1 /tmp/workprev)
|
bind = $mainMod, 49, togglespecialworkspace
|
||||||
|
#bind = $mainMod, 49,exec,hyprctl dispatch $(head -1 /tmp/workprev)
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
@@ -108,6 +109,7 @@ bind = $mainMod SHIFT, up, movewindow, u
|
|||||||
bind = $mainMod SHIFT, down, movewindow, d
|
bind = $mainMod SHIFT, down, movewindow, d
|
||||||
bind = $mainMod SHIFT, left, movewindow, l
|
bind = $mainMod SHIFT, left, movewindow, l
|
||||||
bind = $mainMod SHIFT, right, movewindow, r
|
bind = $mainMod SHIFT, right, movewindow, r
|
||||||
|
bind = $mainMod SHIFT, 49, movetoworkspace, special
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
bind = $mainMod, mouse_down, workspace, e+1
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
@@ -120,17 +122,15 @@ bindm = $mainMod, mouse:273, resizewindow
|
|||||||
#applications shortcuts
|
#applications shortcuts
|
||||||
bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
|
bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new
|
||||||
bind = $mainMod, F5, exec, $hypr_dir/wifi
|
bind = $mainMod, F5, exec, $hypr_dir/wifi
|
||||||
bind = $mainMod, return, exec, foot
|
bind = $mainMod, return, exec, [workspace 2] foot
|
||||||
#bind = $mainMod, Q, exec, wofi --show drun
|
|
||||||
bind = $mainMod, Q, exec, dmenu_run_history
|
bind = $mainMod, Q, exec, dmenu_run_history
|
||||||
bind = $mainMod, A, exec, google-chrome-stable
|
bind = $mainMod, A, exec, [workspace 1] google-chrome-stable
|
||||||
bind = $mainMod, C, exec, code
|
bind = $mainMod, C, exec, [workspace 3] code
|
||||||
bind = $mainMod, E, exec, pcmanfm
|
bind = $mainMod, E, exec, [workspace 3] pcmanfm
|
||||||
bind = $mainMod, B, exec, $hypr_dir/bkmark "add"
|
bind = $mainMod, B, exec, $hypr_dir/bkmark "add"
|
||||||
bind = $mainMod, I, exec, $hypr_dir/bkmark
|
bind = $mainMod, I, exec, $hypr_dir/bkmark
|
||||||
bind = $mainMod SHIFT, I, exec, $hypr_dir/bkmark "copy"
|
bind = $mainMod SHIFT, I, exec, $hypr_dir/bkmark "copy"
|
||||||
bind = $mainMod SHIFT, B, exec, $hypr_dir/bkmark "rm"
|
bind = $mainMod SHIFT, B, exec, $hypr_dir/bkmark "rm"
|
||||||
#bind = $mainMod, S, exec, skypeforlinux
|
|
||||||
bind = $mainMod, F11, exec, $hypr_dir/info
|
bind = $mainMod, F11, exec, $hypr_dir/info
|
||||||
bind = $mainMod, F10, exec, $hypr_dir/bluetooth
|
bind = $mainMod, F10, exec, $hypr_dir/bluetooth
|
||||||
bind = $mainMod, F6, exec, $hypr_dir/workspace
|
bind = $mainMod, F6, exec, $hypr_dir/workspace
|
||||||
@@ -146,9 +146,9 @@ bind = $mainMod, Delete, exec, $hypr_dir/workspace 'list'
|
|||||||
binde=$mainMod, F2, exec, pamixer -d 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work
|
binde=$mainMod, F2, exec, pamixer -d 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work
|
||||||
binde=$mainMod, F3, exec, pamixer -i 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work,So I don't use XF86AudioRaiseVolume, gives me confusion
|
binde=$mainMod, F3, exec, pamixer -i 2 && $hypr_dir/volume #my XF86AudioLowerVolume doesn't work,So I don't use XF86AudioRaiseVolume, gives me confusion
|
||||||
#binde=, XF86AudioMute, exec, pamixer -t && $hypr_dir/volume #doesn't work either
|
#binde=, XF86AudioMute, exec, pamixer -t && $hypr_dir/volume #doesn't work either
|
||||||
binde=$mainMod, F8, exec, echo cycle pause | socat - "/tmp/mpvsocket"
|
binde=$mainMod, F8, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||||
binde=, XF86AudioPlay, exec, echo cycle pause | socat - "/tmp/mpvsocket"
|
binde=, XF86AudioPlay, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||||
binde=, XF86AudioPause, exec, echo cycle pause | socat - "/tmp/mpvsocket"
|
binde=, XF86AudioPause, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
|
||||||
binde=$mainMod SHIFT, F8, exec, $HOME/repos_scripts/yt-music search_play
|
binde=$mainMod SHIFT, F8, exec, $HOME/repos_scripts/yt-music search_play
|
||||||
binde=$mainMod, F9, exec, $HOME/repos_scripts/yt-music play_next
|
binde=$mainMod, F9, exec, $HOME/repos_scripts/yt-music play_next
|
||||||
binde=$mainMod SHIFT, F9, exec, $HOME/repos_scripts/yt-music play_next menu
|
binde=$mainMod SHIFT, F9, exec, $HOME/repos_scripts/yt-music play_next menu
|
||||||
@@ -158,8 +158,6 @@ binde=, XF86MonBrightnessUp, exec, light -A 2 && notify-send -i "lol" "☀️ $
|
|||||||
#windows rules
|
#windows rules
|
||||||
windowrulev2=workspace 1,class:^(google-chrome)$
|
windowrulev2=workspace 1,class:^(google-chrome)$
|
||||||
windowrulev2=workspace 4,class:^(Google-chrome)$
|
windowrulev2=workspace 4,class:^(Google-chrome)$
|
||||||
windowrulev2=workspace 2,class:^(foot)$
|
|
||||||
windowrulev2=workspace 3,class:^(pcmanfm)$
|
|
||||||
windowrulev2=workspace 3,class:^(mpv)$
|
windowrulev2=workspace 3,class:^(mpv)$
|
||||||
windowrulev2=workspace 3,class:^([c|C]ode)
|
windowrulev2=workspace 3,class:^([c|C]ode)
|
||||||
windowrulev2=workspace 4,class:^(pavucontrol)$
|
windowrulev2=workspace 4,class:^(pavucontrol)$
|
||||||
@@ -170,7 +168,6 @@ windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
|
|||||||
exec-once=dbus-update-activation-environment --systemd --all
|
exec-once=dbus-update-activation-environment --systemd --all
|
||||||
exec-once=ssh-agent
|
exec-once=ssh-agent
|
||||||
exec-once=swaybg -i ~/wall/9.png
|
exec-once=swaybg -i ~/wall/9.png
|
||||||
exec-once=node ~/arrpc/src > /tmp/discordrpclog
|
|
||||||
exec-once=xrdb -merge $HOME/.config/.Xresource
|
exec-once=xrdb -merge $HOME/.config/.Xresource
|
||||||
exec-once=$hypr_dir/workspace 'focus'
|
exec-once=$hypr_dir/workspace 'focus'
|
||||||
exec-once=sleep 5 && $hypr_dir/workspace
|
exec-once=sleep 5 && $hypr_dir/workspace
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ underline_shortcut=1
|
|||||||
wheel_scroll_lines=3
|
wheel_scroll_lines=3
|
||||||
|
|
||||||
[SettingsWindow]
|
[SettingsWindow]
|
||||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4)\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4))
|
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\x2\x4\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37)
|
||||||
|
|
||||||
[Troubleshooting]
|
[Troubleshooting]
|
||||||
force_raster_widgets=1
|
force_raster_widgets=1
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ standard_dialogs=default
|
|||||||
style=Fusion
|
style=Fusion
|
||||||
|
|
||||||
[Fonts]
|
[Fonts]
|
||||||
fixed="Cascadia Code,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
|
fixed="IBM Plex Sans,12,-1,5,500,0,0,0,0,0,0,0,0,0,0,1,Medium"
|
||||||
general="Cascadia Code,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
|
general="IBM Plex Sans,12,-1,5,500,0,0,0,0,0,0,0,0,0,0,1,Medium"
|
||||||
|
|
||||||
[Interface]
|
[Interface]
|
||||||
activate_item_on_single_click=1
|
activate_item_on_single_click=1
|
||||||
@@ -25,7 +25,7 @@ underline_shortcut=1
|
|||||||
wheel_scroll_lines=3
|
wheel_scroll_lines=3
|
||||||
|
|
||||||
[SettingsWindow]
|
[SettingsWindow]
|
||||||
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4)\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4)\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x4))
|
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\0\0\0\x3\xb3\0\0\x2\x43\0\0\0\0\0\x4\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x4\x37)
|
||||||
|
|
||||||
[Troubleshooting]
|
[Troubleshooting]
|
||||||
force_raster_widgets=1
|
force_raster_widgets=1
|
||||||
|
|||||||
Reference in New Issue
Block a user