diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 67bee54..4071a95 100755 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -7,6 +7,7 @@ $menu = rofi -show drun -config /home/coast/.config/rofi/config.rasi $webBrowser = firefox-bin $discordApp = vesktop-bin --proxy-server="socks5://127.0.0.1:65000" $restartWaybar = pkill waybar; waybar&disown +$fileManager = pcmanfm exec-once = hyprctl setcursor Adwaita 24 & exec-once = wbg /home/coast/Pictures/walls/wallhaven-d83vjl_1920x1080.png & @@ -147,6 +148,7 @@ bind = $mainMod CONTROL, L, exec, hyprlock bind = $mainMod SHIFT, B, exec, $webBrowser bind = $mainMod SHIFT, V, exec, $discordApp +bind = $mainMod, F, exec, $fileManager bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow @@ -195,7 +197,12 @@ bind = $mainMod ALT, down, exec, /home/coast/.local/bin/mpc-shuf.sh shufno bind = $mainMod ALT, right, exec, /home/coast/.local/bin/mpc-shuf.sh next bind = $mainMod ALT, left, exec, /home/coast/.local/bin/mpc-shuf.sh prev bind = $mainMod SHIFT, R, exec, /home/coast/.local/bin/mpc-shuf.sh search -bind = $mainMod, slash, exec, /home/coast/.local/bin/mpc-shuf.sh current +bind = $mainMod, slash, exec, /home/coast/.local/bin/mpc-shuf.sh info +bind = $mainMod, comma, exec, mpc volume -5 +bind = $mainMod, period, exec, mpc volume +5 +bind = $mainMod SHIFT, up, exec, mpc pause; notify-send "Paused: $(mpc current)" +bind = $mainMod SHIFT, down, exec, mpc play; notify-send "Unpaused: $(mpc current)" +bind = $mainMod CONTROL, up, exec, mpc stop; mpc add /; notify-send "Reset MPC!" xwayland { enabled = true diff --git a/config/mako/config b/config/mako/config index dc922a1..cba5b44 100755 --- a/config/mako/config +++ b/config/mako/config @@ -1,13 +1,12 @@ default-timeout=5000 ignore-timeout=1 -background-color=#0f0f0f -text-color=#ffffff -border-color=#ebbcba -progress-color=over #2a2a2a +background-color=#1e1e2e +text-color=#cdd6f4 +border-color=#cdd6f4 +progress-color=over #313244 border-radius=8 [urgency=low] -border-color=#ebbcba +border-color=#a6e3a1 [urgency=high] -border-color=#ebbcba - +border-color=#f38ba8 diff --git a/local/bin/mpc-shuf.sh b/local/bin/mpc-shuf.sh index ef3fed8..625b6b0 100755 --- a/local/bin/mpc-shuf.sh +++ b/local/bin/mpc-shuf.sh @@ -1,39 +1,32 @@ #!/usr/bin/env sh - case "$1" in - shuf) mpc random on && notify-send "Shuffle enabled" && exit 0 ;; - shufno) mpc random off && notify-send "Shuffle disabled" && exit 0 ;; - next) mpc next ;; - prev) mpc prev ;; - current) ;; + shuf) mpc random on && notify-send "Shuffle enabled" && exit 0 ;; + shufno) mpc random off && notify-send "Shuffle disabled" && exit 0 ;; + next) mpc next ;; + prev) mpc prev ;; + current) mpc current && exit 0 ;; + info) + song_file=$(mpc --format '%file%' current) + song_dir=$(dirname "/home/coast/Music/$song_file") + cover=$(find "$song_dir" -maxdepth 1 \( -iname '*cover*.jpg' -o -iname '*cover*.png' -o -iname '*folder*.jpg' -o -iname '*folder*.png' -o -iname '*front*.jpg' -o -iname '*front*.png' \) | head -n 1) + [ -z "$cover" ] && cover="/usr/share/icons/hicolor/48x48/apps/musical-note.png" + notify-send "Currently Playing" "$(mpc current)" -i "$cover" && exit 0 + ;; search) - choice=$(mpc search any "" | \ - mpc --format '%title% - %artist% - %album%' search any "" 2>/dev/null | \ - rofi -dmenu -i -p "Search music") + choice=$(mpc --format '%title% - %artist% - %album%\t%file%' search any "" \ + | rofi -dmenu -i -p "Search music" -display-columns 1) [ -z "$choice" ] && exit 0 - file=$(mpc --format '%title% - %artist% - %album%\t%file%' search any "" | \ - grep "^$choice " | head -n 1 | cut -f2) + file=$(printf '%s' "$choice" | cut -f2) [ -z "$file" ] && exit 0 - mpc clear - mpc add "$file" - mpc play + mpc clear && mpc add "$file" && mpc play && exit 0 ;; esac - mpc play mpc volume 15 - song_file=$(mpc --format '%file%' current) music_dir="/home/coast/Music" song_abs="$music_dir/$song_file" song_dir=$(dirname "$song_abs") - -cover=$(find "$song_dir" -maxdepth 1 \ - \( -iname '*cover*.jpg' -o -iname '*cover*.png' \ - -o -iname '*folder*.jpg' -o -iname '*folder*.png' \ - -o -iname '*front*.jpg' -o -iname '*front*.png' \) \ - | head -n 1) - +cover=$(find "$song_dir" -maxdepth 1 \( -iname '*cover*.jpg' -o -iname '*cover*.png' -o -iname '*folder*.jpg' -o -iname '*folder*.png' -o -iname '*front*.jpg' -o -iname '*front*.png' \) | head -n 1) [ -z "$cover" ] && cover="/usr/share/icons/hicolor/48x48/apps/musical-note.png" - notify-send "Now playing..." "$(mpc current)" -i "$cover" diff --git a/local/bin/nodeenv b/local/bin/nodeenv new file mode 100755 index 0000000..075fc9b --- /dev/null +++ b/local/bin/nodeenv @@ -0,0 +1,7 @@ +#!/usr/bin/python3.13 +import sys +from nodeenv import main +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(main()) diff --git a/local/bin/pyright b/local/bin/pyright new file mode 100755 index 0000000..9c5770d --- /dev/null +++ b/local/bin/pyright @@ -0,0 +1,7 @@ +#!/usr/bin/python3.13 +import sys +from pyright.cli import entrypoint +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(entrypoint()) diff --git a/local/bin/pyright-langserver b/local/bin/pyright-langserver new file mode 100755 index 0000000..e206592 --- /dev/null +++ b/local/bin/pyright-langserver @@ -0,0 +1,7 @@ +#!/usr/bin/python3.13 +import sys +from pyright.langserver import entrypoint +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(entrypoint()) diff --git a/local/bin/pyright-python b/local/bin/pyright-python new file mode 100755 index 0000000..9c5770d --- /dev/null +++ b/local/bin/pyright-python @@ -0,0 +1,7 @@ +#!/usr/bin/python3.13 +import sys +from pyright.cli import entrypoint +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(entrypoint()) diff --git a/local/bin/pyright-python-langserver b/local/bin/pyright-python-langserver new file mode 100755 index 0000000..e206592 --- /dev/null +++ b/local/bin/pyright-python-langserver @@ -0,0 +1,7 @@ +#!/usr/bin/python3.13 +import sys +from pyright.langserver import entrypoint +if __name__ == '__main__': + if sys.argv[0].endswith('.exe'): + sys.argv[0] = sys.argv[0][:-4] + sys.exit(entrypoint())