2025-12-30 22:04:10 +01:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
|
2026-01-20 17:11:15 +01:00
|
|
|
function open_semester
|
|
|
|
|
set recent "/home/never/Documents/InNa/25_WiSe/"
|
|
|
|
|
set options (ls $recent)
|
|
|
|
|
set input (menu $options)
|
|
|
|
|
|
|
|
|
|
alacritty --working-directory $recent/$input
|
|
|
|
|
end
|
|
|
|
|
|
2026-01-15 01:58:32 +01:00
|
|
|
function open_location
|
2026-01-20 17:11:15 +01:00
|
|
|
set options "25_WiSe" " Documents" " Music" " Pictures" " Videos" " Downloads"
|
2026-01-15 01:58:32 +01:00
|
|
|
set input (menu $options)
|
2026-01-20 17:11:15 +01:00
|
|
|
|
|
|
|
|
switch $input
|
|
|
|
|
case $options[1]
|
|
|
|
|
open_semester
|
|
|
|
|
case $options[2]
|
|
|
|
|
alacritty --working-directory (xdg-user-dir)/Documents/
|
|
|
|
|
case $options[3]
|
|
|
|
|
alacritty --working-directory (xdg-user-dir)/Music/
|
|
|
|
|
case $options[4]
|
|
|
|
|
alacritty --working-directory (xdg-user-dir)/Pictures/
|
|
|
|
|
case $options[5]
|
|
|
|
|
alacritty --working-directory (xdg-user-dir)/Videos/
|
|
|
|
|
case $options[6]
|
|
|
|
|
alacritty --working-directory (xdg-user-dir)/Downloads/
|
2026-01-15 01:58:32 +01:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
set options " Open Location" " Clear Playlist" " Lock"
|
2025-12-30 22:04:10 +01:00
|
|
|
set input (menu $options)
|
|
|
|
|
|
|
|
|
|
switch $input
|
2026-01-15 01:58:32 +01:00
|
|
|
case $options[1]
|
|
|
|
|
open_location
|
2025-12-30 22:04:10 +01:00
|
|
|
|
2026-01-15 01:58:32 +01:00
|
|
|
case $options[2]
|
|
|
|
|
mpc clear
|
|
|
|
|
|
|
|
|
|
case $options[3]
|
|
|
|
|
exec swaylock
|
2025-12-30 22:04:10 +01:00
|
|
|
end
|