update idk

This commit is contained in:
coast 2026-02-21 04:51:46 +03:30
parent 16a28499ef
commit 677f7a4205
8 changed files with 66 additions and 32 deletions

View file

@ -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

View file

@ -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

View file

@ -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) ;;
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"

7
local/bin/nodeenv Executable file
View file

@ -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())

7
local/bin/pyright Executable file
View file

@ -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())

7
local/bin/pyright-langserver Executable file
View file

@ -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())

7
local/bin/pyright-python Executable file
View file

@ -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())

View file

@ -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())