From 805b435113e8c61e6b329ec7bf6fa4e2b2a61860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 22 Mar 2021 03:51:42 +0300 Subject: 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. --- dotfiles/.local/bin/ddquakemite | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'dotfiles/.local/bin/ddquakemite') 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 -- cgit v1.2.3