aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/ddquakemite
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-22 03:51:42 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-03-22 03:51:42 +0300
commit805b435113e8c61e6b329ec7bf6fa4e2b2a61860 (patch)
tree66385efe2f62079be4309d90602d6abbcce290c1 /dotfiles/.local/bin/ddquakemite
parentc95d0243bb66f20850ec99677d189238f5ee2acf (diff)
downloadswayrice-805b435113e8c61e6b329ec7bf6fa4e2b2a61860.tar.gz
swayrice-805b435113e8c61e6b329ec7bf6fa4e2b2a61860.zip
Some changes to improve things on the X200
* Switched to foot, since Alacritty doesn't support older GPUs and because foot consumes around 7-15MB of RAM per instance while Alacritty consumes around 30-60MB/instance. * Other minor changes and improvements.
Diffstat (limited to 'dotfiles/.local/bin/ddquakemite')
-rwxr-xr-xdotfiles/.local/bin/ddquakemite7
1 files changed, 4 insertions, 3 deletions
diff --git a/dotfiles/.local/bin/ddquakemite b/dotfiles/.local/bin/ddquakemite
index c38225a..0393f1e 100755
--- a/dotfiles/.local/bin/ddquakemite
+++ b/dotfiles/.local/bin/ddquakemite
@@ -7,10 +7,11 @@ if ! [ -z "$(swaymsg -t get_tree | grep 'ddterminal')" ]; then
swaymsg '[title="ddterminal"] move scratchpad'
fi
else
- $TERMINAL -t "ddterminal" -e tmuxatt &
+ $TERMINAL -T "ddterminal" tmuxatt &
sleep 0.2s
- currenty=$(swaygetcurrentwindow | cut -d ' ' -f1 | cut -d ',' -f2 )
- let moveup=$currenty-30
+ curwiny=$(swaygetcurrentwindow | cut -d ' ' -f1 | cut -d ',' -f2 )
+ curdisy=$(swaymsg -pt get_outputs | grep -A3 focused | grep Position | cut -d ',' -f2)
+ moveup=$(($curwiny - $curdisy - 30))
swaymsg move up "$moveup px"
fi