Adding bin files

tmuxssh allow to connect and attach or create a tmux session.
This commit is contained in:
tonitch committed 2023-11-29 13:12:15 +01:00
1 parent 9902c0db9d
commit 4c27a8e3f1
2 files changed
+24

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#! /bin/sh
# Original script by https://github.com/ikn/ , modified to use splitting method of
# https://github.com/baskerville/bspwm/tree/master/examples/external_rules/pseudo_automatic_mode
fwid=$(bspc query -N -n focused)
wattr wh $fwid | {
read width height
if [ $width -gt $height ] ; then
bspc node -p \~east
else
bspc node -p \~south
fi
}