This commit is contained in:
Never Gude 2026-05-13 16:31:23 +02:00
parent e1c9a58312
commit 26cb9266d7
5 changed files with 132 additions and 26 deletions

View file

@ -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

View file

@ -0,0 +1,93 @@
[Desktop Entry]
Name=Neovim
GenericName=Text Editor
GenericName[ckb]=دەستکاریکەری دەق
GenericName[de]=Texteditor
GenericName[fr]=Éditeur de texte
GenericName[pl]=Edytor tekstu
GenericName[ru]=Текстовый редактор
GenericName[sr]=Едитор текст
GenericName[tr]=Metin Düzenleyici
Comment=Edit text files
Comment[af]=Redigeer tekslêers
Comment[am]=
Comment[ar]=حرّر ملفات نصية
Comment[az]=Mətn fayllarını redaktə edin
Comment[be]=Рэдагаваньне тэкставых файлаў
Comment[bg]=Редактиране на текстови файлове
Comment[bn]= ি
Comment[bs]=Izmijeni tekstualne datoteke
Comment[ca]=Edita fitxers de text
Comment[ckb]=دەستکاریی فایلی دەق بکە
Comment[cs]=Úprava textových souborů
Comment[cy]=Golygu ffeiliau testun
Comment[da]=Redigér tekstfiler
Comment[de]=Textdateien bearbeiten
Comment[el]=Επεξεργασία αρχείων κειμένου
Comment[en_CA]=Edit text files
Comment[en_GB]=Edit text files
Comment[es]=Edita archivos de texto
Comment[et]=Redigeeri tekstifaile
Comment[eu]=Editatu testu-fitxategiak
Comment[fa]=ویرایش پروندههای متنی
Comment[fi]=Muokkaa tekstitiedostoja
Comment[fr]=Éditer des fichiers texte
Comment[ga]=Eagar comhad Téacs
Comment[gu]=
Comment[he]=ערוך קבצי טקסט
Comment[hi]= ि
Comment[hr]=Uređivanje tekstualne datoteke
Comment[hu]=Szövegfájlok szerkesztése
Comment[id]=Edit file teks
Comment[it]=Modifica file di testo
Comment[ja]=
Comment[kn]= ಿ
Comment[ko]=
Comment[lt]=Redaguoti tekstines bylas
Comment[lv]=Rediģēt teksta failus
Comment[mk]=Уреди текстуални фајлови
Comment[ml]= ി
Comment[mn]=Текст файл боловсруулах
Comment[mr]= ि
Comment[ms]=Edit fail teks
Comment[nb]=Rediger tekstfiler
Comment[ne]=
Comment[nl]=Tekstbestanden bewerken
Comment[nn]=Rediger tekstfiler
Comment[no]=Rediger tekstfiler
Comment[or]= ି
Comment[pa]=
Comment[pl]=Edytor plików tekstowych
Comment[pt]=Editar ficheiros de texto
Comment[pt_BR]=Edite arquivos de texto
Comment[ro]=Editare fişiere text
Comment[ru]=Редактирование текстовых файлов
Comment[sk]=Úprava textových súborov
Comment[sl]=Urejanje datotek z besedili
Comment[sq]=Përpuno files teksti
Comment[sr]=Уређујте текст фајлове
Comment[sr@Latn]=Izmeni tekstualne datoteke
Comment[sv]=Redigera textfiler
Comment[ta]=
Comment[th]=
Comment[tk]=Metin faýllary editle
Comment[tr]=Metin dosyaları düzenleyin
Comment[uk]=Редактор текстових файлів
Comment[vi]=Son tho tp tin văn bn
Comment[wa]=Asspougnî des fitchîs tecses
Comment[zh_CN]=
Comment[zh_TW]=
TryExec=nvim
Exec=alacritty msg create-window -e nvim %F
Terminal=true
Type=Application
Keywords=Text;editor;
Keywords[ckb]=دەق;دەستکاریکەر;
Keywords[fr]=Texte;éditeur;
Keywords[ru]=текст;текстовый редактор;
Keywords[sr]=Текст;едитор;
Keywords[tr]=Metin;düzenleyici;
Icon=nvim
Categories=Utility;TextEditor;Development;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;