diff --git a/code-flags.conf b/code-flags.conf index 51bdd86..7c27bb6 100644 --- a/code-flags.conf +++ b/code-flags.conf @@ -1,2 +1,3 @@ ---enable-features=UseOzonePlatform ---ozone-platform=wayland +--enable-features=WaylandWindowDecorations +--ozone-platform-hint=auto +--enable-webrtc-pipewire-capturer diff --git a/eww/eww.yuck b/eww/eww.yuck index e631fa5..ef3951e 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -77,9 +77,9 @@ (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}") (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" :onclick "./script seek '-1'" "") + (button :class "btn_controls" :tooltip "History : ${song.prev}" :onclick "./script prev" "󰒮") + (button :class "btn_controls" :tooltip "Seek -1%" :onclick "./script seek '-1'" "") (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" "󰒭")) (label :justify "left" :wrap "true" :class "lyrics" :text LYRICS)))) diff --git a/eww/music-presence.py b/eww/music-presence.py deleted file mode 100644 index aba2320..0000000 --- a/eww/music-presence.py +++ /dev/null @@ -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()) diff --git a/eww/script b/eww/script index b0f07b1..145e51b 100755 --- a/eww/script +++ b/eww/script @@ -2,15 +2,15 @@ case $1 in 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 - 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 printf '{"name":"OFFLINE","artist":"offline","cover":"%s/.config/eww/music.png"}' "$HOME" fi ;; 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 printf "" elif printf "%s" "$out" | grep -q "true";then @@ -21,17 +21,17 @@ case $1 in ;; lyrics) 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 printf "Lyrics will show here" fi ;; 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}" ;; play_toggle) - echo cycle pause | socat - "/tmp/mpvsocket" + echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket" ;; 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 ;; 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) - echo "{\"command\" :[\"seek\" ,\"$2\",\"relative-percent\"]}" | socat - /tmp/mpvsocket + echo "{\"command\" :[\"seek\" ,\"$2\",\"relative-percent\"]}" | socat - /tmp/yt-music/yt-music-mpvsocket ;; esac diff --git a/foot/foot.ini b/foot/foot.ini index 383dafe..a9c2a2d 100644 --- a/foot/foot.ini +++ b/foot/foot.ini @@ -17,7 +17,7 @@ font-italic=Victor Mono:style=Italic:size=12 # horizontal-letter-offset=0 # vertical-letter-offset=0 # underline-offset= -# box-drawings-uses-font-glyphs=no +box-drawings-uses-font-glyphs=yes # dpi-aware=auto # initial-window-size-pixels=700x500 # Or, @@ -85,7 +85,7 @@ bright4=FC9867 bright5=AB9DF2 bright6=78DCE8 bright7=FCFCFA -alpha=0.90 +alpha=0.9 ## dimmed colors (see foot.ini(5) man page) # dim0= diff --git a/gtk-2.0/gtkfilechooser.ini b/gtk-2.0/gtkfilechooser.ini deleted file mode 100644 index 9fefff6..0000000 --- a/gtk-2.0/gtkfilechooser.ini +++ /dev/null @@ -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 diff --git a/gtk-3.0/settings.ini b/gtk-3.0/settings.ini index 31beeff..231e358 100644 --- a/gtk-3.0/settings.ini +++ b/gtk-3.0/settings.ini @@ -6,8 +6,8 @@ gtk-cursor-theme-name=Adwaita gtk-cursor-theme-size=0 gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR -gtk-button-images=0 -gtk-menu-images=0 +gtk-button-images=1 +gtk-menu-images=1 gtk-enable-event-sounds=1 gtk-enable-input-feedback-sounds=1 gtk-xft-antialias=1 diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 475367f..49df662 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -97,7 +97,8 @@ bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 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] 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, left, movewindow, l bind = $mainMod SHIFT, right, movewindow, r +bind = $mainMod SHIFT, 49, movetoworkspace, special # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 @@ -120,17 +122,15 @@ bindm = $mainMod, mouse:273, resizewindow #applications shortcuts bind = $mainMod, F4, exec, $HOME/repos_scripts/ani-new bind = $mainMod, F5, exec, $hypr_dir/wifi -bind = $mainMod, return, exec, foot -#bind = $mainMod, Q, exec, wofi --show drun +bind = $mainMod, return, exec, [workspace 2] foot bind = $mainMod, Q, exec, dmenu_run_history -bind = $mainMod, A, exec, google-chrome-stable -bind = $mainMod, C, exec, code -bind = $mainMod, E, exec, pcmanfm +bind = $mainMod, A, exec, [workspace 1] google-chrome-stable +bind = $mainMod, C, exec, [workspace 3] code +bind = $mainMod, E, exec, [workspace 3] pcmanfm bind = $mainMod, B, exec, $hypr_dir/bkmark "add" bind = $mainMod, I, exec, $hypr_dir/bkmark bind = $mainMod SHIFT, I, exec, $hypr_dir/bkmark "copy" bind = $mainMod SHIFT, B, exec, $hypr_dir/bkmark "rm" -#bind = $mainMod, S, exec, skypeforlinux bind = $mainMod, F11, exec, $hypr_dir/info bind = $mainMod, F10, exec, $hypr_dir/bluetooth 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, 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=$mainMod, F8, exec, echo cycle pause | socat - "/tmp/mpvsocket" -binde=, XF86AudioPlay, exec, echo cycle pause | socat - "/tmp/mpvsocket" -binde=, XF86AudioPause, 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/yt-music/yt-music-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, F9, exec, $HOME/repos_scripts/yt-music play_next 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 windowrulev2=workspace 1,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:^([c|C]ode) 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=ssh-agent exec-once=swaybg -i ~/wall/9.png -exec-once=node ~/arrpc/src > /tmp/discordrpclog exec-once=xrdb -merge $HOME/.config/.Xresource exec-once=$hypr_dir/workspace 'focus' exec-once=sleep 5 && $hypr_dir/workspace diff --git a/qt5ct/qt5ct.conf b/qt5ct/qt5ct.conf index 68d845f..fc8d415 100644 --- a/qt5ct/qt5ct.conf +++ b/qt5ct/qt5ct.conf @@ -25,7 +25,7 @@ underline_shortcut=1 wheel_scroll_lines=3 [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] force_raster_widgets=1 diff --git a/qt6ct/qt6ct.conf b/qt6ct/qt6ct.conf index 0657b62..b0e1c0b 100644 --- a/qt6ct/qt6ct.conf +++ b/qt6ct/qt6ct.conf @@ -6,8 +6,8 @@ standard_dialogs=default style=Fusion [Fonts] -fixed="Cascadia Code,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1" -general="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="IBM Plex Sans,12,-1,5,500,0,0,0,0,0,0,0,0,0,0,1,Medium" [Interface] activate_item_on_single_click=1 @@ -25,7 +25,7 @@ underline_shortcut=1 wheel_scroll_lines=3 [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] force_raster_widgets=1