From cac7771a124a3a480bc8cf7c91896d560d917e43 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 21 Feb 2025 23:04:38 +0900 Subject: adjusted rofi configs to have better compatibility? --- config/hypr/UserScripts/Kool_Quick_Settings.sh | 87 +++++++++++++------------- 1 file changed, 44 insertions(+), 43 deletions(-) (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/Kool_Quick_Settings.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh index 663b51ed..a6dc2885 100755 --- a/config/hypr/UserScripts/Kool_Quick_Settings.sh +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -15,57 +15,58 @@ iDIR="$HOME/.config/swaync/images" scriptsDir="$HOME/.config/hypr/scripts" UserScripts="$HOME/.config/hypr/UserScripts" -# Function to display the menu options +# Function to display the menu options without numbers 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 ;; - + case "$choice" in + "view/edit ENV variables") file="$UserConfigs/ENVariables.conf" ;; + "view/edit Window Rules") file="$UserConfigs/WindowRules.conf" ;; + "view/edit User Keybinds") file="$UserConfigs/UserKeybinds.conf" ;; + "view/edit User Settings") file="$UserConfigs/UserSettings.conf" ;; + "view/edit Startup Apps") file="$UserConfigs/Startup_Apps.conf" ;; + "view/edit Decorations") file="$UserConfigs/UserDecorations.conf" ;; + "view/edit Animations") file="$UserConfigs/UserAnimations.conf" ;; + "view/edit Laptop Keybinds") file="$UserConfigs/Laptops.conf" ;; + "view/edit Default Keybinds") file="$configs/Keybinds.conf" ;; + "Configure Monitors (nwg-displays)") + 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 ;; + "Configure Workspace Rules (nwg-displays)") + 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 ;; + "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 @@ -80,4 +81,4 @@ if pidof rofi > /dev/null; then pkill rofi fi -main \ No newline at end of file +main -- cgit v1.2.3