aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local
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
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')
-rwxr-xr-xdotfiles/.local/bin/ddquakemite7
-rwxr-xr-xdotfiles/.local/bin/menuman2
-rwxr-xr-xdotfiles/.local/bin/menupass2
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