#!/bin/bash # Rofi menu for Nixos-Dots Quick 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="$HOME/.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 without numbers menu() { cat </dev/null; then notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Install nwg-displays first" exit 1 fi nwg-displays ;; "Configure Workspace Rules (nwg-displays)") if ! command -v nwg-displays &>/dev/null; then notify-send -i "$iDIR/ja.png" "E-R-R-O-R" "Install nwg-displays first" exit 1 fi nwg-displays ;; "Choose Hyprland Animations") $scriptsDir/Animations.sh ;; "Choose Monitor Profiles") $scriptsDir/MonitorProfiles.sh ;; "Choose Rofi Themes") $scriptsDir/RofiThemeSelector.sh ;; "Search for Keybinds") $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