mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2026-03-21 23:19:22 +01:00
update idk
This commit is contained in:
parent
16a28499ef
commit
677f7a4205
8 changed files with 66 additions and 32 deletions
|
|
@ -7,6 +7,7 @@ $menu = rofi -show drun -config /home/coast/.config/rofi/config.rasi
|
||||||
$webBrowser = firefox-bin
|
$webBrowser = firefox-bin
|
||||||
$discordApp = vesktop-bin --proxy-server="socks5://127.0.0.1:65000"
|
$discordApp = vesktop-bin --proxy-server="socks5://127.0.0.1:65000"
|
||||||
$restartWaybar = pkill waybar; waybar&disown
|
$restartWaybar = pkill waybar; waybar&disown
|
||||||
|
$fileManager = pcmanfm
|
||||||
|
|
||||||
exec-once = hyprctl setcursor Adwaita 24 &
|
exec-once = hyprctl setcursor Adwaita 24 &
|
||||||
exec-once = wbg /home/coast/Pictures/walls/wallhaven-d83vjl_1920x1080.png &
|
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, B, exec, $webBrowser
|
||||||
bind = $mainMod SHIFT, V, exec, $discordApp
|
bind = $mainMod SHIFT, V, exec, $discordApp
|
||||||
|
bind = $mainMod, F, exec, $fileManager
|
||||||
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
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, 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 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 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 {
|
xwayland {
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
default-timeout=5000
|
default-timeout=5000
|
||||||
ignore-timeout=1
|
ignore-timeout=1
|
||||||
background-color=#0f0f0f
|
background-color=#1e1e2e
|
||||||
text-color=#ffffff
|
text-color=#cdd6f4
|
||||||
border-color=#ebbcba
|
border-color=#cdd6f4
|
||||||
progress-color=over #2a2a2a
|
progress-color=over #313244
|
||||||
border-radius=8
|
border-radius=8
|
||||||
|
|
||||||
[urgency=low]
|
[urgency=low]
|
||||||
border-color=#ebbcba
|
border-color=#a6e3a1
|
||||||
[urgency=high]
|
[urgency=high]
|
||||||
border-color=#ebbcba
|
border-color=#f38ba8
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,39 +1,32 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
shuf) mpc random on && notify-send "Shuffle enabled" && exit 0 ;;
|
shuf) mpc random on && notify-send "Shuffle enabled" && exit 0 ;;
|
||||||
shufno) mpc random off && notify-send "Shuffle disabled" && exit 0 ;;
|
shufno) mpc random off && notify-send "Shuffle disabled" && exit 0 ;;
|
||||||
next) mpc next ;;
|
next) mpc next ;;
|
||||||
prev) mpc prev ;;
|
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)
|
search)
|
||||||
choice=$(mpc search any "" | \
|
choice=$(mpc --format '%title% - %artist% - %album%\t%file%' search any "" \
|
||||||
mpc --format '%title% - %artist% - %album%' search any "" 2>/dev/null | \
|
| rofi -dmenu -i -p "Search music" -display-columns 1)
|
||||||
rofi -dmenu -i -p "Search music")
|
|
||||||
[ -z "$choice" ] && exit 0
|
[ -z "$choice" ] && exit 0
|
||||||
file=$(mpc --format '%title% - %artist% - %album%\t%file%' search any "" | \
|
file=$(printf '%s' "$choice" | cut -f2)
|
||||||
grep "^$choice " | head -n 1 | cut -f2)
|
|
||||||
[ -z "$file" ] && exit 0
|
[ -z "$file" ] && exit 0
|
||||||
mpc clear
|
mpc clear && mpc add "$file" && mpc play && exit 0
|
||||||
mpc add "$file"
|
|
||||||
mpc play
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
mpc play
|
mpc play
|
||||||
mpc volume 15
|
mpc volume 15
|
||||||
|
|
||||||
song_file=$(mpc --format '%file%' current)
|
song_file=$(mpc --format '%file%' current)
|
||||||
music_dir="/home/coast/Music"
|
music_dir="/home/coast/Music"
|
||||||
song_abs="$music_dir/$song_file"
|
song_abs="$music_dir/$song_file"
|
||||||
song_dir=$(dirname "$song_abs")
|
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"
|
[ -z "$cover" ] && cover="/usr/share/icons/hicolor/48x48/apps/musical-note.png"
|
||||||
|
|
||||||
notify-send "Now playing..." "$(mpc current)" -i "$cover"
|
notify-send "Now playing..." "$(mpc current)" -i "$cover"
|
||||||
|
|
|
||||||
7
local/bin/nodeenv
Executable file
7
local/bin/nodeenv
Executable 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
7
local/bin/pyright
Executable 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
7
local/bin/pyright-langserver
Executable 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
7
local/bin/pyright-python
Executable 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-python-langserver
Executable file
7
local/bin/pyright-python-langserver
Executable 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())
|
||||||
Loading…
Add table
Reference in a new issue