From 0d5e1a92c97b11b562b10f1c3a10bf0570e6497a Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 21 Mar 2020 21:28:22 +0000 Subject: [PATCH] i3: remove unused alt-tab script --- .config/i3/alt-tab.sh | 19 ------------------- .config/i3/config | 1 - 2 files changed, 20 deletions(-) delete mode 100755 .config/i3/alt-tab.sh diff --git a/.config/i3/alt-tab.sh b/.config/i3/alt-tab.sh deleted file mode 100755 index 5f17ed6..0000000 --- a/.config/i3/alt-tab.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# ================================================================================== # -# Focus the next window on the current workspace in i3, e.g. for binding to Alt+Tab # -# Depends: jq, awk, i3wm (obviously) # -# Author: Nervengift # -# License: Don't think this deserves a license, Public Domain # -# Known bugs: doesn't work with non-window container focused # -# ================================================================================== # - -ws=$(i3-msg -t get_workspaces|jq "map(select(.focused))[]|.name") -echo $ws -windows=$(i3-msg -t get_tree|jq ".nodes|map(.nodes[])|map(.nodes[])|map(select(.type==\"workspace\" and .name==$ws))[0].nodes|map(recurse(.nodes[]))|map(.window)|.[]|values") -echo $windows -current=$(i3-msg -t get_tree|jq "recurse(.nodes[])|select(.focused)|.window") -echo $current -if [ "x$current" != "xnull" ]; then - next=$(echo $windows | awk "BEGIN {RS=\" \";FS=\" \"};NR == 1 {w=\$1};{if (f == 1){w=\$1;f=0}else if (\$1 == \"$current\") f=1};END {print w}") - i3-msg [id=$next] focus > /dev/null -fi diff --git a/.config/i3/config b/.config/i3/config index e57ff0e..31c01eb 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -133,7 +133,6 @@ bindsym $mod+Shift+j reload bindsym $mod+c exec chromium bindsym $mod+v exec "i3-sensible-terminal -e \\"$SHELL -c vim;$SHELL\\" bindsym $mod+Ctrl+v exec "i3-sensible-terminal -r floating-term -e \\"$SHELL -c vim;$SHELL\\" -bindsym Mod1+Tab exec ~/.config/i3/alt-tab.sh bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Ctrl+Return exec i3-sensible-terminal -r floating-term bindsym $mod+Shift+Return exec i3-sensible-terminal -d "`xcwd`"