aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/ChangeLayoutMenu.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/ChangeLayoutMenu.sh
parentbb0be21dba7980fc1c047eaba24eda1712bd7f31 (diff)
Initial upload
Diffstat (limited to 'config/hypr/scripts/ChangeLayoutMenu.sh')
-rwxr-xr-xconfig/hypr/scripts/ChangeLayoutMenu.sh116
1 files changed, 116 insertions, 0 deletions
diff --git a/config/hypr/scripts/ChangeLayoutMenu.sh b/config/hypr/scripts/ChangeLayoutMenu.sh
new file mode 100755
index 00000000..a1ca30c7
--- /dev/null
+++ b/config/hypr/scripts/ChangeLayoutMenu.sh
@@ -0,0 +1,116 @@
+#!/bin/bash
+
+# Files
+#waybar
+CONFIG="$HOME/.config/waybar/configs"
+WCONFIG="$HOME/.config/waybar/config"
+
+#wofi configs
+CONFIGB="$HOME/.config/wofi/WofiBig/config"
+STYLE="$HOME/.config/wofi/style.css"
+COLORS="$HOME/.config/wofi/colors"
+WOFICONFIGS="$HOME/.config/wofi/configs"
+WOFICONFIG="$HOME/.config/wofi/config"
+
+# wofi window config (in %)
+WIDTH=12
+HEIGHT=40
+
+## Wofi Command
+wofi_command="wofi --show dmenu \
+ --prompt choose...
+ --conf $CONFIGB --style $STYLE --color $COLORS \
+ --width=$WIDTH% --height=$HEIGHT% \
+ --cache-file=/dev/null \
+ --hide-scroll --no-actions \
+ --matching=fuzzy"
+
+
+menu(){
+printf "1. default\n"
+printf "2. plasma-style\n"
+printf "3. gnome-style\n"
+printf "4. simple panel\n"
+printf "5. top & bot panel\n"
+printf "6. left panel\n"
+printf "7. right panel\n"
+printf "8. top & left panel\n"
+printf "9. top & right panel\n"
+printf "10. bottom & left panel\n"
+printf "11. bottom & right panel\n"
+printf "12. all sides\n"
+printf "13. no panel"
+}
+
+main() {
+ choice=$(menu | ${wofi_command} | cut -d. -f1)
+ case $choice in
+ 1)
+ ln -sf "$CONFIG/config-default" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 2)
+ ln -sf "$CONFIG/config-plasma" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-plasma" "$WOFICONFIG"
+ ;;
+ 3)
+ ln -sf "$CONFIG/config-gnome" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-gnome" "$WOFICONFIG"
+ ;;
+ 4)
+ ln -sf "$CONFIG/config-simple" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 5)
+ ln -sf "$CONFIG/config-dual" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 6)
+ ln -sf "$CONFIG/config-left" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 7)
+ ln -sf "$CONFIG/config-right" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 8)
+ ln -sf "$CONFIG/config-dual-TL" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 9)
+ ln -sf "$CONFIG/config-dual-TR" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 10)
+ ln -sf "$CONFIG/config-dual-BL" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 11)
+ ln -sf "$CONFIG/config-dual-BR" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 12)
+ ln -sf "$CONFIG/config-all" "$WCONFIG"
+ ln -sf "$WOFICONFIGS/config-default" "$WOFICONFIG"
+ ;;
+ 13)
+ if pgrep -x "waybar" >/dev/null; then
+ killall waybar
+ exit
+ fi
+ ;;
+ *)
+ ;;
+ esac
+}
+
+# Check if wofi is already running
+if pidof wofi >/dev/null; then
+ killall wofi
+ exit 0
+else
+ main
+fi
+
+exec ~/.config/hypr/scripts/Refresh.sh &
+ \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage