#!/bin/bash # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## # Rofi menu for Quick Edit/View of Settings (SUPER SHIFT 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 what to do ⁉️' iDIR="$HOME/.config/swaync/images" scriptsDir="$HOME/.config/hypr/scripts" UserScripts="$HOME/.config/hypr/UserScripts" # Function to display the menu options menu() { cat </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 ;; 12) $scriptsDir/Animations.sh ;; 13) $scriptsDir/MonitorProfiles.sh ;; 14) $scriptsDir/RofiThemeSelector.sh ;; 15) $scriptsDir/KeyBinds.sh ;; *) 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