button and script to create and switch to a new workspace
This commit is contained in:
11
.scripts/workspace-new.sh
Executable file
11
.scripts/workspace-new.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/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))
|
||||
Reference in New Issue
Block a user