diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-12-17 17:18:50 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-12-17 17:18:50 +0000 |
commit | 64cfb306cc543fd28d2cb3ce7adadad15a8d96e6 (patch) | |
tree | 1ede5f14e0aff188c519ad90b1c089bd2daa9a04 | |
parent | 415a4dc20bfb27fd041b1c4e03af1425e114a58a (diff) |
Restore initial version of script
-rw-r--r-- | .i3/Makefile | 8 | ||||
-rw-r--r-- | .uzbl/style.css | 2 | ||||
-rwxr-xr-x | bin/workspace | 15 |
3 files changed, 17 insertions, 8 deletions
diff --git a/.i3/Makefile b/.i3/Makefile new file mode 100644 index 0000000..ccbbffa --- /dev/null +++ b/.i3/Makefile @@ -0,0 +1,8 @@ +HOME=/home/urbain +TARGET=$(HOME)/.config/i3 + +$(TARGET) : + rm -f $@ && ln -s $(PWD) $@ + +clean : + rm -f $(TARGETS) diff --git a/.uzbl/style.css b/.uzbl/style.css index bf769c8..1080ce4 100644 --- a/.uzbl/style.css +++ b/.uzbl/style.css @@ -17,7 +17,7 @@ opacity: 1.0; -webkit-border-radius: 6px !important; /* Play around with this, pretty fun things to do :) */ - /* -webkit-transform: scale(1) rotate(0deg) translate(-6px,-5px) !important; */ + /* -webkit-transform: scale(1) rotate(90deg) translate(-6px,-5px) !important; */ } /* we can have different colours for different types of hints! */ diff --git a/bin/workspace b/bin/workspace index 5b49049..73a4ec4 100755 --- a/bin/workspace +++ b/bin/workspace @@ -1,13 +1,14 @@ #!/bin/zsh workspaces=$(i3-msg -t get_workspaces | grep -Po '"name":.*?[^\\]"' | sed 's/"name":"\([^"]\+\)"/\1/g') -used_numbers=$(echo $workspaces | awk 'BEGIN { FS = ":" } ; { print $1 }') -max_number=$(echo $used_numbers | tail -1) -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 +# used_numbers=$(echo $workspaces | awk 'BEGIN { FS = ":" } ; { print $1 }') +# max_number=$(echo $used_numbers | tail -1) +# 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 +# target=$(echo $workspaces | dmenu -i -sf green -p "Go to workspace:") +# [[ -z $target ]] && exit +# [[ ! $target = [0-9]* ]] && target=$new_number:$target +target=$(echo $workspaces | dmenu -i -sf green -p "Go to workspace:") exec i3-msg workspace $target |