tweaks and file finder
This commit is contained in:
parent
064fbdb49d
commit
2c090d0db6
2 changed files with 19 additions and 28 deletions
|
|
@ -16,23 +16,15 @@ function open_semester
|
|||
end
|
||||
end
|
||||
|
||||
# Open user directories
|
||||
function open_location
|
||||
set options " Documents" " Music" " Pictures" " Videos" " Downloads"
|
||||
set input (menu $options)
|
||||
|
||||
switch $input
|
||||
case $options[1]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Documents/
|
||||
case $options[2]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Music/
|
||||
case $options[3]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Pictures/
|
||||
case $options[4]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Videos/
|
||||
case $options[5]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Downloads/
|
||||
end
|
||||
# Find files in home directory
|
||||
function find_file
|
||||
set file (find ~/Desktop ~/Documents ~/Downloads ~/Pictures ~/Videos -type f | fuzzel --dmenu --width 100 --match-mode=fuzzy)
|
||||
|
||||
if test (xdg-mime query filetype $file) = "application/pdf" && test (menu "PDF" "Ipe") = "Ipe"
|
||||
ipe $file
|
||||
else
|
||||
xdg-open $file
|
||||
end
|
||||
end
|
||||
|
||||
# Open WueCampus Courses
|
||||
|
|
@ -154,7 +146,7 @@ function mirror_screen
|
|||
end
|
||||
|
||||
# Select sub menu
|
||||
set options " Open Semester" " Open WueCampus Course" " Open Location" " Select Audio Source" " Select Audio Sink" " Select Bluetooth" " Select Network" " Select Color Scheme" " Restore Notifications" " Set Keyboard Backlight" " Mirror Screen"
|
||||
set options " Open Semester" " Open WueCampus Course" " Find Files" " Select Audio Source" " Select Audio Sink" " Select Bluetooth" " Select Network" " Select Color Scheme" " Restore Notifications" " Set Keyboard Backlight" " Mirror Screen"
|
||||
set input (menu $options)
|
||||
|
||||
switch $input
|
||||
|
|
@ -165,7 +157,7 @@ switch $input
|
|||
open_course
|
||||
|
||||
case $options[3]
|
||||
open_location
|
||||
find_file
|
||||
|
||||
case $options[4]
|
||||
wpsourcemenu.fish
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue