mirror of
https://github.com/JonasunderscoreJones/i3-dotfiles.git
synced 2025-10-23 16:09:19 +02:00
added dotfiles
This commit is contained in:
parent
f6ad05459b
commit
fd3d05434f
466 changed files with 27935 additions and 1 deletions
10
.config/i3/scripts/empty_workspace
Executable file
10
.config/i3/scripts/empty_workspace
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
MAX_DESKTOPS=20
|
||||
|
||||
WORKSPACES=$(seq -s '\n' 1 1 ${MAX_DESKTOPS})
|
||||
|
||||
EMPTY_WORKSPACE=$( (i3-msg -t get_workspaces | tr ',' '\n' | grep num | awk -F: '{print int($2)}' ; \
|
||||
echo -e ${WORKSPACES} ) | sort -n | uniq -u | head -n 1)
|
||||
|
||||
i3-msg workspace ${EMPTY_WORKSPACE}
|
Loading…
Add table
Add a link
Reference in a new issue