better structure

This commit is contained in:
Uyanide committed 2025-10-19 00:14:19 +02:00
1 parent 057afc086e
commit 8733656ed9
630 files changed
+81 -137

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# get highest workspace ID
max_id=$(hyprctl workspaces | grep '^workspace ID ' | awk '{print $3}' | sort -n | tail -1)
# case not found default to 0
if [ -z "$max_id" ]; then
max_id=0
fi
hyprctl dispatch workspace $((max_id + 1))