update: huge style update

This commit is contained in:
2026-03-13 10:37:01 +03:00
parent 1dea8c1a69
commit c49c97d55c
55 changed files with 686 additions and 332 deletions

View File

@@ -0,0 +1,52 @@
#!/bin/bash
# Usage: workspace-handler.sh <mode> <direction>
# mode: "change" | "move"
# direction: "next" | "previous"
mode="$1"
direction="$2"
if [[ -z "$mode" || -z "$direction" ]]; then
exit 1
fi
if [[ "$mode" != "change" && "$mode" != "move" ]]; then
exit 1
fi
if [[ "$direction" != "next" && "$direction" != "previous" ]]; then
exit 1
fi
if [[ "$GNOME_STYLE_WORKSPACES" == "true" ]] && command -v hyprnome &>/dev/null; then
# Hyprnome style
if [[ "$mode" == "change" ]]; then
if [[ "$direction" == "previous" ]]; then
exec hyprnome --previous
else
exec hyprnome
fi
else
if [[ "$direction" == "previous" ]]; then
exec hyprnome --previous --move
else
exec hyprnome --move
fi
fi
else
# Hyprland style
if [[ "$mode" == "change" ]]; then
if [[ "$direction" == "previous" ]]; then
exec hyprctl dispatch focusworkspaceoncurrentmonitor r-1
else
exec hyprctl dispatch focusworkspaceoncurrentmonitor r+1
fi
else
if [[ "$direction" == "previous" ]]; then
exec hyprctl dispatch movetoworkspace r-1
else
exec hyprctl dispatch movetoworkspace r+1
fi
fi
fi