aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/QuickEdit.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-21 16:14:38 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-21 16:14:38 +0900
commitc35b1026d16cff151b763ee484d9fc773952aeb1 (patch)
tree8bfa32960031dc68423fc0d41b11519f73c52661 /config/hypr/UserScripts/QuickEdit.sh
parent4fee6c130280ecdd97ace82250c6ecd4b382a625 (diff)
pushing for monitor profiles, changed the version to dev first indicating still in dev branch. Enhance functionality of KooL Quick Settings
Diffstat (limited to 'config/hypr/UserScripts/QuickEdit.sh')
-rwxr-xr-xconfig/hypr/UserScripts/QuickEdit.sh72
1 files changed, 0 insertions, 72 deletions
diff --git a/config/hypr/UserScripts/QuickEdit.sh b/config/hypr/UserScripts/QuickEdit.sh
deleted file mode 100755
index 2964ef3d..00000000
--- a/config/hypr/UserScripts/QuickEdit.sh
+++ /dev/null
@@ -1,72 +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
-
-# variables
-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 ⁉️'
-iDIR="$HOME/.config/swaync/images"
-
-# Function to display the menu options
-menu() {
- cat <<EOF
-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-displays)
-11. view/edit Workspace Rules (nwg-displays)
-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/UserKeybinds.conf" ;;
- 4) file="$UserConfigs/UserSettings.conf" ;;
- 5) file="$UserConfigs/Startup_Apps.conf" ;;
- 6) file="$UserConfigs/UserDecorations.conf" ;;
- 7) file="$UserConfigs/UserAnimations.conf" ;;
- 8) file="$UserConfigs/Laptops.conf" ;;
- 9) file="$configs/Keybinds.conf" ;;
- 10) if ! command -v nwg-displays &>/dev/null; then
- notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first"
- exit 1
- fi
- nwg-displays ;;
- 11) if ! command -v nwg-displays &>/dev/null; then
- notify-send -i "$iDIR/ja.png" "Missing nwg-displays" "Install nwg-displays first"
- exit 1
- fi
- nwg-displays ;;
- *) return ;; # Do nothing for invalid choices
- esac
-
- # Open the selected file in the terminal with the text editor
- if [ -n "$file" ]; then
- $tty -e $edit "$file"
- fi
-}
-
-# Check if rofi is already running
-if pidof rofi > /dev/null; then
- pkill rofi
-fi
-
-main \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage