diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-12-17 07:34:40 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-12-17 07:34:40 +0000 |
commit | 870cd04ecc93924fff2fc26150ace016ca571698 (patch) | |
tree | 002073ac368cd1c0163ddb84286012c6a379b55e /bin/workspace | |
parent | dbd02c933b541559a9513d8cae24ff6f3f40c398 (diff) |
Swap alt and meta
Diffstat (limited to 'bin/workspace')
-rwxr-xr-x | bin/workspace | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/workspace b/bin/workspace index f735014..5a95fde 100755 --- a/bin/workspace +++ b/bin/workspace @@ -7,6 +7,7 @@ largest_gap=$(echo $used_numbers | awk '$1!=p+1{print p+1}{p=$1}') [[ -z $largest_gap ]] && new_number=$(($max_number + 1)) || new_number=$largest_gap target=$(echo $workspaces | dmenu -i -sf green -p "Go to workspace:") +[[ -z $target ]] && exit [[ ! $target = [0-9]:* ]] && target=$new_number:$target exec i3-msg workspace $target |