Moves from i3 to hypr
This commit is contained in:
parent
6f069d32e1
commit
a186edca69
380 changed files with 23450 additions and 27796 deletions
59
.config/hypr/UserScripts/QuickEdit.sh
Executable file
59
.config/hypr/UserScripts/QuickEdit.sh
Executable file
|
|
@ -0,0 +1,59 @@
|
|||
#!/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"
|
||||
|
||||
# Function to display the menu options
|
||||
menu() {
|
||||
cat <<EOF
|
||||
1. View / Edit Env-variables
|
||||
2. View / Edit Window-Rules
|
||||
3. View / Edit Startup_Apps
|
||||
4. View / Edit User-Keybinds
|
||||
5. View / Edit Monitors
|
||||
6. View / Edit Laptop-Keybinds
|
||||
7. View / Edit User-Settings
|
||||
8. View / Edit Decorations & Animations
|
||||
9. View / Edit Workspace-Rules
|
||||
10. View / Edit Default-Settings
|
||||
11. View / Edit Default-Keybinds
|
||||
EOF
|
||||
}
|
||||
|
||||
# Main function to handle menu selection
|
||||
main() {
|
||||
choice=$(menu | rofi -i -dmenu -config ~/.config/rofi/config-compact.rasi | cut -d. -f1)
|
||||
|
||||
# Map choices to corresponding files
|
||||
case $choice in
|
||||
1) file="$UserConfigs/ENVariables.conf" ;;
|
||||
2) file="$UserConfigs/WindowRules.conf" ;;
|
||||
3) file="$UserConfigs/Startup_Apps.conf" ;;
|
||||
4) file="$UserConfigs/UserKeybinds.conf" ;;
|
||||
5) file="$UserConfigs/Monitors.conf" ;;
|
||||
6) file="$UserConfigs/Laptops.conf" ;;
|
||||
7) file="$UserConfigs/UserSettings.conf" ;;
|
||||
8) file="$UserConfigs/UserDecorAnimations.conf" ;;
|
||||
9) file="$UserConfigs/WorkspaceRules.conf" ;;
|
||||
10) file="$configs/Settings.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
|
||||
Loading…
Add table
Add a link
Reference in a new issue