From f81fc475b42bb787ee2a350530efc0fcc57965ca Mon Sep 17 00:00:00 2001 From: coolnsx Date: Mon, 30 Oct 2023 12:47:08 +0530 Subject: [PATCH] This is supposed to crash --- eww/eww.scss | 1 - eww/eww.yuck | 6 +++--- eww/yt-music-presence.py | 45 ---------------------------------------- fzf-tab | 2 +- hypr/hyprland.conf | 2 +- 5 files changed, 5 insertions(+), 51 deletions(-) delete mode 100644 eww/yt-music-presence.py diff --git a/eww/eww.scss b/eww/eww.scss index 30d6b6a..c45abf4 100644 --- a/eww/eww.scss +++ b/eww/eww.scss @@ -2,7 +2,6 @@ all: unset; } - /** Generic window ***********************************/ .genwin { //background-color: rgba(39, 40, 34, 0.7); diff --git a/eww/eww.yuck b/eww/eww.yuck index ef3951e..d38552c 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -5,7 +5,7 @@ :y "50px" :width "25%" :height "200px" - :anchor "top right") + :anchor "bottom right") :stacking "bg" :reserve (struts :distance "40px" :side "top") :windowtype "dock" @@ -18,14 +18,14 @@ :y "50px" :width "25%" :height "200px" - :anchor "top right") + :anchor "bottom right") :stacking "bg" :reserve (struts :distance "40px" :side "top") :windowtype "dock" :wm-ignore false (clock)) -(defpoll CLOCK :interval "4s" "date +'{\"hour\": \"%I\" ,\"min\": \"%M\" ,\"mer\" : \"%p\",\"day\" : \"%A\" }'") +(defpoll CLOCK :interval "4s" "date +'{\"hour\":\"%I\",\"min\":\"%M\",\"mer\":\"%p\",\"day\":\"%A\"}'") (defwidget clock [] (box :class "genwin" :orientation "h" :spacing 50 :space-evenly false :vexpand "false" :hexpand "false" diff --git a/eww/yt-music-presence.py b/eww/yt-music-presence.py deleted file mode 100644 index fbff96a..0000000 --- a/eww/yt-music-presence.py +++ /dev/null @@ -1,45 +0,0 @@ -import socket -import time,re -from pypresence import Presence - -def update(): - # Get the duration information - time.sleep(2) - - # Update Discord Rich Presence with the end timestamp - with open("/tmp/yt-music/current", 'r') as file: - li = re.split(' >|: | - ', file.readline().strip('\n')) - file.close() - - print(li) - # Update Discord Rich Presence with the information from the file - RPC.update( - large_image=f"https://i.ytimg.com/vi/{li[-1]}/mqdefault.jpg", - details=f"{li[1]}", - large_text = "Checkmate Premium Users", - state=li[2], - start=int(time.time()), - ) - -socket_path = "/tmp/yt-music/yt-music-mpvsocket" - -# Initialize Discord Rich Presence -RPC = Presence("1165951947245879316") -RPC.connect() - -# Create a UNIX socket -mpv_socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) -mpv_socket.connect(socket_path) -update() -while True: - event = mpv_socket.recv(1024).decode('utf-8') - # Adjust the buffer size as needed - if not event: - break - #check if event contains "end-file" or "eof" - if "end-file" in event or "eof" in event: - print(event) - update() - -mpv_socket.close() -RPC.close() diff --git a/fzf-tab b/fzf-tab index 5a81e13..c2b4aa5 160000 --- a/fzf-tab +++ b/fzf-tab @@ -1 +1 @@ -Subproject commit 5a81e13792a1eed4a03d2083771ee6e5b616b9ab +Subproject commit c2b4aa5ad2532cca91f23908ac7f00efb7ff09c9 diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index f6d2fbc..e682ea0 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -169,7 +169,7 @@ windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$ exec-once=dbus-update-activation-environment --systemd --all exec-once=ssh-agent exec-once=cd $HOME/github/arrpc && node src > /tmp/arrpc-log -exec-once=swaybg -i $HOME/.config/wall/9.png +exec-once=swaybg -i $HOME/.config/wall/12.jpg exec-once=xrdb -merge $HOME/.config/.Xresource exec-once=$hypr_dir/workspace 'focus' exec-once=sleep 5 && $hypr_dir/workspace