From c35b1026d16cff151b763ee484d9fc773952aeb1 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 21 Feb 2025 16:14:38 +0900 Subject: pushing for monitor profiles, changed the version to dev first indicating still in dev branch. Enhance functionality of KooL Quick Settings --- config/hypr/UserScripts/Kool_Quick_Settings.sh | 83 ++++++++++++++++++++++++++ config/hypr/UserScripts/QuickEdit.sh | 72 ---------------------- 2 files changed, 83 insertions(+), 72 deletions(-) create mode 100755 config/hypr/UserScripts/Kool_Quick_Settings.sh delete mode 100755 config/hypr/UserScripts/QuickEdit.sh (limited to 'config/hypr/UserScripts') diff --git a/config/hypr/UserScripts/Kool_Quick_Settings.sh b/config/hypr/UserScripts/Kool_Quick_Settings.sh new file mode 100755 index 00000000..7b2f7f0e --- /dev/null +++ b/config/hypr/UserScripts/Kool_Quick_Settings.sh @@ -0,0 +1,83 @@ +#!/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 \ No newline at end of file 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 </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 -- cgit v1.2.3