docker configs and modified screenshot script
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
# current highest-numbered workspace
|
||||
MAX_WORKSPACE=$(hyprctl workspaces -j | jq 'sort_by(.id) | reverse | .[0].id')
|
||||
|
||||
hyprctl dispatch workspace $(($MAX_WORKSPACE + 1))
|
||||
# generate ids from 1-100, remove the ids of existing workspaces, take the
|
||||
# first of the remaining numbers and you have the first available workspace id
|
||||
FIRST_AVAILABLE=$(hyprctl workspaces -j | jq '[range(1; 100)] - map(.id) | .[0]')
|
||||
|
||||
hyprctl dispatch workspace $FIRST_AVAILABLE
|
||||
|
Reference in New Issue
Block a user