diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2025-02-23 14:46:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-23 14:46:19 +0900 |
| commit | 91b9177b0ff5d2fac7b99be9a89f8e9f054347fd (patch) | |
| tree | 5b11da646166995b52bb597cf6a92703d1f5a0a2 /config/hypr/UserScripts/QuickEdit.sh | |
| parent | 9f5b41c3e230cda406592167fcd0446a5f56821c (diff) | |
| parent | b8ab57be1c8e579e69e5bfd56668815465d71785 (diff) | |
Merge pull request #577 from JaKooLit/development
Development to main Dots version 2.3.12
Diffstat (limited to 'config/hypr/UserScripts/QuickEdit.sh')
| -rwxr-xr-x | config/hypr/UserScripts/QuickEdit.sh | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh deleted file mode 100755 index 09530881..00000000 --- a/config/hypr/UserScripts/QuickEdit.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## -# Rofi menu for Quick Edit/View of Settings (SUPER E) - -# Define preferred text editor and terminal -edit=${EDITOR:-nano} -tty=kitty - -# Paths to configuration directories -configs="$HOME/.config/hypr/configs" -UserConfigs="$HOME/.config/hypr/UserConfigs" -rofi_theme="~/.config/rofi/config-edit.rasi" -msg=' ⁉️ Choose which config to View or Edit ⁉️' - -# Function to display the menu options -menu() { - cat <<EOF -1. ENV variables -2. Window Rules -3. Monitors -4. User Keybinds -5. User Settings -6. Startup Apps -7. Decorations -8. Animations -9. Workspace Rules -10. Laptop Keybinds -11. Default Keybinds -EOF -} - -# Main function to handle menu selection -main() { - choice=$(menu | rofi -i -dmenu -config $rofi_theme -mesg "$msg" | cut -d. -f1) - - # Map choices to corresponding files - case $choice in - 1) file="$UserConfigs/ENVariables.conf" ;; - 2) file="$UserConfigs/WindowRules.conf" ;; - 3) file="$UserConfigs/Monitors.conf" ;; - 4) file="$UserConfigs/UserKeybinds.conf" ;; - 5) file="$UserConfigs/UserSettings.conf" ;; - 6) file="$UserConfigs/Startup_Apps.conf" ;; - 7) file="$UserConfigs/UserDecorations.conf" ;; - 8) file="$UserConfigs/UserAnimations.conf" ;; - 9) file="$UserConfigs/WorkspaceRules.conf" ;; - 10) file="$UserConfigs/Laptops.conf" ;; - 11) file="$configs/Keybinds.conf" ;; - *) return ;; # Do nothing for invalid choices - esac - - # Open the selected file in the terminal with the text editor - $tty -e $edit "$file" -} - -# Check if rofi is already running -if pidof rofi > /dev/null; then - pkill rofi -fi - -main |
