dkwooa
This commit is contained in:
parent
e1c9a58312
commit
26cb9266d7
5 changed files with 132 additions and 26 deletions
|
|
@ -2,30 +2,33 @@
|
|||
|
||||
# Select folders in current semester
|
||||
function open_semester
|
||||
set recent "/home/never/Documents/InNa/26_SoSe/"
|
||||
set options (ls $recent)
|
||||
set options (ls $argv[1])
|
||||
set input (menu $options)
|
||||
|
||||
alacritty msg create-window --working-directory $recent/$input
|
||||
if test -z "$input"
|
||||
alacritty msg create-window --working-directory $argv[1]
|
||||
else if test -d $argv[1]/$input
|
||||
open_semester $argv[1]/$input
|
||||
else
|
||||
xdg-open $argv[1]/$input
|
||||
end
|
||||
end
|
||||
|
||||
# Open user directories
|
||||
function open_location
|
||||
set options "Semester" " Documents" " Music" " Pictures" " Videos" " Downloads"
|
||||
set options " Documents" " Music" " Pictures" " Videos" " Downloads"
|
||||
set input (menu $options)
|
||||
|
||||
switch $input
|
||||
case $options[1]
|
||||
open_semester
|
||||
case $options[2]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Documents/
|
||||
case $options[3]
|
||||
case $options[2]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Music/
|
||||
case $options[4]
|
||||
case $options[3]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Pictures/
|
||||
case $options[5]
|
||||
case $options[4]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Videos/
|
||||
case $options[6]
|
||||
case $options[5]
|
||||
alacritty msg create-window --working-directory (xdg-user-dir)/Downloads/
|
||||
end
|
||||
end
|
||||
|
|
@ -144,39 +147,49 @@ function set_keyboard_backlight
|
|||
brightnessctl --device=white:kbd_backlight set (menu --index "0" "1" "2" "3" "4")
|
||||
end
|
||||
|
||||
function mirror_screen
|
||||
wl-mirror eDP-1
|
||||
end
|
||||
|
||||
# Select sub menu
|
||||
set options " Open Location" " Open WueCampus Course" " Select Audio Source" " Select Audio Sink" " Select Bluetooth" " Select Network" " Select Color Scheme" " Restore Notifications" " Set Keyboard Backlight"
|
||||
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 input (menu $options)
|
||||
|
||||
switch $input
|
||||
case $options[1]
|
||||
open_location
|
||||
open_semester "/home/never/Documents/InNa/26_SoSe/"
|
||||
|
||||
case $options[2]
|
||||
open_course
|
||||
|
||||
case $options[3]
|
||||
case $options[3]
|
||||
open_location
|
||||
|
||||
case $options[4]
|
||||
wpsourcemenu.fish
|
||||
# audio_source
|
||||
|
||||
case $options[4]
|
||||
case $options[5]
|
||||
wpsinkmenu.fish
|
||||
# audio_sink
|
||||
|
||||
case $options[5]
|
||||
case $options[6]
|
||||
bluetoothmenu.fish
|
||||
# bluetooth_connection
|
||||
|
||||
case $options[6]
|
||||
case $options[7]
|
||||
networkmenu.fish
|
||||
# network_connection
|
||||
|
||||
case $options[7]
|
||||
case $options[8]
|
||||
color_scheme
|
||||
|
||||
case $options[8]
|
||||
case $options[9]
|
||||
restore_notifications
|
||||
|
||||
case $options[9]
|
||||
case $options[10]
|
||||
set_keyboard_backlight
|
||||
|
||||
case $options[11]
|
||||
mirror_screen
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue