From 2e6092bb353f83a93244cd91a3f53620952ef5c3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 22 Nov 2016 00:41:26 -0800 Subject: [PATCH] [XMonad] Add split out chrome tab --- dotfiles/lib/bin/split_out_chrome_tab.sh | 7 +++++++ dotfiles/xmonad/xmonad.hs | 1 + 2 files changed, 8 insertions(+) create mode 100755 dotfiles/lib/bin/split_out_chrome_tab.sh diff --git a/dotfiles/lib/bin/split_out_chrome_tab.sh b/dotfiles/lib/bin/split_out_chrome_tab.sh new file mode 100755 index 00000000..62467c88 --- /dev/null +++ b/dotfiles/lib/bin/split_out_chrome_tab.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env zsh +sleep .6 +xdotool key --clearmodifiers Escape +xdotool key --clearmodifiers Tab +xdotool key --clearmodifiers "W" +sleep .2 +xdotool key --clearmodifiers "Super_L+z" diff --git a/dotfiles/xmonad/xmonad.hs b/dotfiles/xmonad/xmonad.hs index 06cc6ccf..198fd899 100644 --- a/dotfiles/xmonad/xmonad.hs +++ b/dotfiles/xmonad/xmonad.hs @@ -444,6 +444,7 @@ addKeys conf@XConfig {modMask = modm} = -- ModAlt bindings , ((modalt, xK_w), spawn "rofi_wallpaper.sh") + , ((modalt, xK_z), spawn "split_out_chrome_tab.sh") , ((modalt, xK_space), deactivateFullOr restoreOrMinimizeOtherClasses) , ((modalt, xK_Return), deactivateFullAnd restoreAllMinimized) , ((modalt, xK_5), selectToggle)