From 26cb9266d778a8bd97492e9b42bad4a7f9a20657 Mon Sep 17 00:00:00 2001 From: Never Gude Date: Wed, 13 May 2026 16:31:23 +0200 Subject: [PATCH] dkwooa --- .config/fish/fish_variables | 2 +- .config/fuzzel/fuzzel.ini | 2 +- .config/niri/config.kdl | 10 +- .local/scripts/actionmenu.fish | 51 ++++++---- .../applications/org.neovim.nvim.desktop | 93 +++++++++++++++++++ 5 files changed, 132 insertions(+), 26 deletions(-) create mode 100644 .local/share/applications/org.neovim.nvim.desktop diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables index ec759fb..a495f9f 100644 --- a/.config/fish/fish_variables +++ b/.config/fish/fish_variables @@ -1,6 +1,6 @@ # This file contains fish universal variable definitions. # VERSION: 3.0 -SETUVAR --export EDITOR:neovide +SETUVAR --export EDITOR:nvim SETUVAR LESS:RAW\x2dCONTROL\x2dCHARS SETUVAR __fish_initialized:4300 SETUVAR fish_greeting:\x1d diff --git a/.config/fuzzel/fuzzel.ini b/.config/fuzzel/fuzzel.ini index 3003129..12ff7f7 100644 --- a/.config/fuzzel/fuzzel.ini +++ b/.config/fuzzel/fuzzel.ini @@ -16,7 +16,7 @@ match-counter=yes # delayed-filter-ms=300 # delayed-filter-limit=20000 # show-actions=no -# terminal=$TERMINAL -e # Note: you cannot actually use environment variables here +terminal=alacritty -e # Note: you cannot actually use environment variables here # launch-prefix= # list-executables-in-path=no diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 2ba061b..0f287f6 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -349,11 +349,11 @@ window-rule { max-height 37 } -window-rule { - match app-id=r#"ipe$"# title="^Create text object$" - open-floating false - default-column-width { proportion 0.2; } -} +// window-rule { +// match app-id=r#"ipe$"# title="^Create text object$" +// open-floating false +// default-column-width { proportion 0.2; } +// } window-rule { match is-floating=true diff --git a/.local/scripts/actionmenu.fish b/.local/scripts/actionmenu.fish index 4e7f603..3b002b6 100755 --- a/.local/scripts/actionmenu.fish +++ b/.local/scripts/actionmenu.fish @@ -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 diff --git a/.local/share/applications/org.neovim.nvim.desktop b/.local/share/applications/org.neovim.nvim.desktop new file mode 100644 index 0000000..b79ab6d --- /dev/null +++ b/.local/share/applications/org.neovim.nvim.desktop @@ -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]=Soạn thảo tập tin văn bản +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++;