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)