update actionmenu
This commit is contained in:
parent
7ae3946456
commit
482c323367
1 changed files with 23 additions and 15 deletions
|
|
@ -1,22 +1,30 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
function open_location
|
function open_location
|
||||||
set options " Documents" " Music" " Pictures" " Videos" " Downloads" "25_WiSe"
|
set options "25_WiSe" " Documents" " Music" " Pictures" " Videos" " Downloads"
|
||||||
set input (menu $options)
|
set input (menu $options)
|
||||||
|
|
||||||
switch $input
|
switch $input
|
||||||
case $options[1]
|
case $options[1]
|
||||||
alacritty --working-directory (xdg-user-dir)/Documents/
|
open_semester
|
||||||
case $options[2]
|
case $options[2]
|
||||||
alacritty --working-directory (xdg-user-dir)/Music/
|
alacritty --working-directory (xdg-user-dir)/Documents/
|
||||||
case $options[3]
|
case $options[3]
|
||||||
alacritty --working-directory (xdg-user-dir)/Pictures/
|
alacritty --working-directory (xdg-user-dir)/Music/
|
||||||
case $options[4]
|
case $options[4]
|
||||||
alacritty --working-directory (xdg-user-dir)/Videos/
|
alacritty --working-directory (xdg-user-dir)/Pictures/
|
||||||
case $options[5]
|
case $options[5]
|
||||||
alacritty --working-directory (xdg-user-dir)/Downloads/
|
alacritty --working-directory (xdg-user-dir)/Videos/
|
||||||
case $options[6]
|
case $options[6]
|
||||||
alacritty --working-directory /home/never/Documents/InNa/25_WiSe/
|
alacritty --working-directory (xdg-user-dir)/Downloads/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue