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