summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-12-30 09:52:23 +0000
committerUrbain Vaes <urbain@vaes.uk>2015-12-30 09:52:23 +0000
commitdb7f025df41a655e4ff42be0a8c85a90e08b8b75 (patch)
treec62fcd6f2e077fd0f0102f1c82f51044dcff9798
parentaf29e9be10ac49d10b682fcb1d62421d91c31fa9 (diff)
Delete obsolete scripts
-rwxr-xr-xbin/helper_workspace19
-rwxr-xr-xbin/move_workspace19
2 files changed, 0 insertions, 38 deletions
diff --git a/bin/helper_workspace b/bin/helper_workspace
deleted file mode 100755
index 77be45d..0000000
--- a/bin/helper_workspace
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/zsh
-
-workspaces=$(i3-msg -t get_workspaces | grep -Po '"name":.*?[^\\]"' | sed 's/"name":"\([^"]\+\)"/\1/g')
-
-if [[ ! -z $1 ]]; then
- target=$(echo $workspaces | grep "$1")
- [[ -z $target ]] && target=$1
-else
- used_numbers=$(echo $workspaces | awk 'BEGIN { FS = ":" } ; { print $1 }')
- max_number=$(echo $used_numbers | tail -1)
- lowest_gap=$(echo $used_numbers | awk '$1!=p+1{print p+1}{p=$1}' | head -1)
- [[ -z $lowest_gap ]] && new_number=$(($max_number + 1)) || new_number=$lowest_gap
-
- target=$(echo $workspaces | dmenu -i -sf green -p "Go to workspace:")
- [[ -z $target ]] && exit
- [[ ! $target = [0-9]* ]] && target=$new_number:$target
-fi
-
-echo $target
diff --git a/bin/move_workspace b/bin/move_workspace
deleted file mode 100755
index ab926e0..0000000
--- a/bin/move_workspace
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/zsh
-
-workspaces=$(i3-msg -t get_workspaces | grep -Po '"name":.*?[^\\]"' | sed 's/"name":"\([^"]\+\)"/\1/g')
-
-if [[ ! -z $1 ]]; then
- target=$(echo $workspaces | grep "$1")
- [[ -z $target ]] && target=$1
-else
- used_numbers=$(echo $workspaces | awk 'BEGIN { FS = ":" } ; { print $1 }')
- max_number=$(echo $used_numbers | tail -1)
- lowest_gap=$(echo $used_numbers | awk '$1!=p+1{print p+1}{p=$1}' | head -1)
- [[ -z $lowest_gap ]] && new_number=$(($max_number + 1)) || new_number=$lowest_gap
-
- target=$(echo $workspaces | dmenu -i -sf green -p "Go to workspace:")
- [[ -z $target ]] && exit
- [[ ! $target = [0-9]* ]] && target=$new_number:$target
-fi
-
-exec i3-msg workspace $target