From b8a818918508bf04525a0f0355cca12305e99dc7 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 5 Jun 2016 22:11:47 +0200 Subject: $mod+n newws --- bin/newws | 2 ++ i3.symlink/config | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 bin/newws diff --git a/bin/newws b/bin/newws new file mode 100755 index 0000000..386b353 --- /dev/null +++ b/bin/newws @@ -0,0 +1,2 @@ +#!/bin/sh +i3-msg workspace $(($(i3-msg -t get_workspaces | tr , '\n' | grep '"num":' | cut -d : -f 2 | sort -rn | head -1) + 1)) diff --git a/i3.symlink/config b/i3.symlink/config index 1fb397b..abb6c41 100644 --- a/i3.symlink/config +++ b/i3.symlink/config @@ -82,6 +82,7 @@ bindsym $mod+7 workspace 7 bindsym $mod+8 workspace 8 bindsym $mod+9 workspace 9 bindsym $mod+0 workspace 10 +bindsym $mod+n exec --no-startup-id newws # move focused container to workspace bindsym $mod+Shift+1 move container to workspace 1 @@ -122,4 +123,3 @@ bar { font pango:DejaVu Sans Mono, 9 status_command i3status.py } - -- cgit v1.2.3