aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/QuickEdit.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-10-22 15:55:57 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-10-22 15:55:57 +0900
commitc222e1bad2ba5e779c3af5b956906c82ead43271 (patch)
treea5253e0861c200ff90354169e1f67ef42ebf0ef9 /config/hypr/scripts/QuickEdit.sh
parentbb0be21dba7980fc1c047eaba24eda1712bd7f31 (diff)
Initial upload
Diffstat (limited to 'config/hypr/scripts/QuickEdit.sh')
-rwxr-xr-xconfig/hypr/scripts/QuickEdit.sh58
1 files changed, 58 insertions, 0 deletions
diff --git a/config/hypr/scripts/QuickEdit.sh b/config/hypr/scripts/QuickEdit.sh
new file mode 100755
index 00000000..87380858
--- /dev/null
+++ b/config/hypr/scripts/QuickEdit.sh
@@ -0,0 +1,58 @@
+#!/bin/bash
+
+# WOFI STYLES
+CONFIG="$HOME/.config/wofi/WofiBig/config"
+STYLE="$HOME/.config/wofi/style.css"
+COLORS="$HOME/.config/wofi/colors"
+
+hyprDir="$HOME/.config/hypr/configs"
+
+# wofi window config (in %)
+WIDTH=10
+HEIGHT=20
+
+## Wofi Command
+wofi_command="wofi --show dmenu \
+ --prompt choose to view or edit...
+ --conf $CONFIG --style $STYLE --color $COLORS \
+ --width=$WIDTH% --height=$HEIGHT% \
+ --cache-file=/dev/null \
+ --hide-scroll --no-actions \
+ --matching=fuzzy"
+
+menu(){
+ printf "1. view Env-variables\n"
+ printf "2. view Rules\n"
+ printf "3. view Execs\n"
+ printf "4. view Key-Binds\n"
+ printf "5. view Monitors\n"
+ printf "6. view Hyprland-Settings\n"
+}
+
+main() {
+ choice=$(menu | ${wofi_command} | cut -d. -f1)
+ case $choice in
+ 1)
+ foot -e vim "$hyprDir/ENVariables.conf"
+ ;;
+ 2)
+ foot -e vim "$hyprDir/WindowRules.conf"
+ ;;
+ 3)
+ foot -e vim "$hyprDir/Execs.conf"
+ ;;
+ 4)
+ foot -e vim "$hyprDir/Keybinds.conf"
+ ;;
+ 5)
+ foot -e vim "$hyprDir/Monitors.conf"
+ ;;
+ 6)
+ foot -e vim "$hyprDir/Settings.conf"
+ ;;
+ *)
+ ;;
+ esac
+}
+
+main \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage