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 ++++--- dotfiles/.local/bin/menuman | 2 +- dotfiles/.local/bin/menupass | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) (limited to 'dotfiles/.local/bin') 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 diff --git a/dotfiles/.local/bin/menuman b/dotfiles/.local/bin/menuman index fe79667..acad4c4 100755 --- a/dotfiles/.local/bin/menuman +++ b/dotfiles/.local/bin/menuman @@ -16,4 +16,4 @@ if [ -z "$chosen" ]; then exit 0 fi -$TERMINAL -t "man $chosen" -e man $chosen +$TERMINAL -T "man $chosen" man $chosen diff --git a/dotfiles/.local/bin/menupass b/dotfiles/.local/bin/menupass index 7ad3f59..9633b56 100755 --- a/dotfiles/.local/bin/menupass +++ b/dotfiles/.local/bin/menupass @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/usr/bin/bash # Inspiration taken from # https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu -- cgit v1.2.3