diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-02-20 10:25:02 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-02-20 10:25:02 +0900 |
| commit | f79f0a1dad43628eea867ca433fa13edd2296936 (patch) | |
| tree | c18ef7ad635a261f6b6157bb2f02cba99f03cafe /config/hypr/UserScripts/QuickEdit.sh | |
| parent | 42ba4dc6439460cc266f0b83227450263401f05f (diff) | |
integrated nwg-display
Diffstat (limited to 'config/hypr/UserScripts/QuickEdit.sh')
| -rwxr-xr-x | config/hypr/UserScripts/QuickEdit.sh | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh index 09530881..12db89b4 100755 --- a/config/hypr/UserScripts/QuickEdit.sh +++ b/config/hypr/UserScripts/QuickEdit.sh @@ -15,17 +15,17 @@ 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 +1. view/edit ENV variables +2. view/edit Window Rules +3. view/edit User Keybinds +4. view/edit User Settings +5. view/edit Startup Apps +6. view/edit Decorations +7. view/edit Animations +8. view/edit Laptop Keybinds +9. view/edit Default Keybinds +10. view/edit Monitors (via nwg-display) +11. view/edit Workspace Rules (nwg-display) EOF } @@ -37,20 +37,22 @@ main() { case $choice in 1) file="$UserConfigs/ENVariables.conf" ;; 2) file="$UserConfigs/WindowRules.conf" ;; - 3) file="$UserConfigs/Monitors.conf" ;; + 3) file="$UserConfigs/UserKeybinds.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" ;; + 9) file="$UserConfigs/Laptops.conf" ;; + 10) nwg-displays ;; + 11) nwg-displays ;; *) return ;; # Do nothing for invalid choices esac # Open the selected file in the terminal with the text editor - $tty -e $edit "$file" + if [ -n "$file" ]; then + $tty -e $edit "$file" + fi } # Check if rofi is already running @@ -59,3 +61,4 @@ if pidof rofi > /dev/null; then fi main + |
