diff options
author | Yaroslav <contact@yaroslavps.com> | 2020-09-18 13:14:55 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2020-09-18 13:14:55 +0300 |
commit | f35f43c2ce2ed7f72f3b0aa4446df706f24f1701 (patch) | |
tree | 32356040f20be67499a8bfe70db48cb760e7b9cc /dotfiles/.local/bin/ddquakemite | |
parent | ea15e5cf8953ab6511839be797fadfc9da2c2964 (diff) | |
download | swayrice-f35f43c2ce2ed7f72f3b0aa4446df706f24f1701.tar.gz swayrice-f35f43c2ce2ed7f72f3b0aa4446df706f24f1701.zip |
Switch to Alacritty terminal emulator
Updated some other configs and scripts to better interact with
Alacritty.
Also rely on fontconfig file, instead of specifying the font in each
config (i.e. use font family 'monospace').
Diffstat (limited to 'dotfiles/.local/bin/ddquakemite')
-rwxr-xr-x | dotfiles/.local/bin/ddquakemite | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dotfiles/.local/bin/ddquakemite b/dotfiles/.local/bin/ddquakemite index f449a5f..8760e14 100755 --- a/dotfiles/.local/bin/ddquakemite +++ b/dotfiles/.local/bin/ddquakemite @@ -1,13 +1,13 @@ #!/bin/sh -if ! [ -z "$(swaymsg -t get_tree | grep 'quakemite')" ]; then - if [ -z "$(swaymsg -t get_tree | grep -A 46 'quakemite' | tail -n 1 | grep 'true')" ]; then - swaymsg '[title="quakemite"] scratchpad show' +if ! [ -z "$(swaymsg -t get_tree | grep 'ddterminal')" ]; then + if [ -z "$(swaymsg -t get_tree | grep -A 46 'ddterminal' | tail -n 1 | grep 'true')" ]; then + swaymsg '[title="ddterminal"] scratchpad show' else - swaymsg '[title="quakemite"] move scratchpad' + swaymsg '[title="ddterminal"] move scratchpad' fi else - $TERMINAL -t "quakemite" -e "$SHELL -c 'TERM=xterm-256color; TERMINAL=termite; tmux -f "$HOME/.config/tmux/tmux.conf" a || tmux -f "$HOME/.config/tmux/tmux.conf"'" & + $TERMINAL -t "ddterminal" -e tmuxatt & sleep 0.2s currenty=$(swaygetcurrentwindow | cut -d ' ' -f1 | cut -d ',' -f2 ) let moveup=$currenty-25 |