From 81161147ec9221e9b0bf824559f343730b2df3e9 Mon Sep 17 00:00:00 2001 From: klg Date: Thu, 27 Feb 2020 08:11:19 +0100 Subject: [PATCH] switch all the things --- config | 4 ++++ scripts/i3-move-to-empty-workspace.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config b/config index 998fcca..fc61b76 100644 --- a/config +++ b/config @@ -80,6 +80,10 @@ bindsym XF86MonBrightnessUp exec brightnessctl s +20% bindsym AltGr+F5 exec playerctl play-pause +bindsym Mod4+n exec --no-startup-id ~/.config/i3/scripts/i3-empty-workspace.sh +bindsym Mod4+Shift+n exec --no-startup-id ~/.config/i3/scripts/i3-move-to-empty-workspace.sh +bindsym Mod4+Control+Shift+n exec --no-startup-id ~/.config/i3/scripts/i3-move-to-empty-workspace.sh switch + mode "resize" { bindsym Down resize grow height 10 px or 10 ppt bindsym Escape mode default diff --git a/scripts/i3-move-to-empty-workspace.sh b/scripts/i3-move-to-empty-workspace.sh index b30acbf..50b2197 100755 --- a/scripts/i3-move-to-empty-workspace.sh +++ b/scripts/i3-move-to-empty-workspace.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash workspace=$(($(i3-msg -t get_workspaces | jq ' [ .[] | .num ] | max ') + 1)) i3-msg move container to workspace $workspace