diff options
Diffstat (limited to 'dotfiles/.local')
-rwxr-xr-x | dotfiles/.local/bin/ddquakemite | 7 | ||||
-rwxr-xr-x | dotfiles/.local/bin/menuman | 2 | ||||
-rwxr-xr-x | dotfiles/.local/bin/menupass | 2 |
3 files changed, 6 insertions, 5 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 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 |