qol improvements
This commit is contained in:
parent
baec407444
commit
73ce9e321f
3 changed files with 6 additions and 14 deletions
|
@ -22,7 +22,7 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
|
|||
exit
|
||||
else
|
||||
echo WAYLAND
|
||||
emacsrg=$(wlrctl window list | rg emacs | rg -v dired)
|
||||
emacsrg=$(wlrctl window list | rg "emacs:" | rg -v dired)
|
||||
echo $emacsrg
|
||||
|
||||
emacswin=$(echo $emacsrg | sed 's/.*\: //')
|
||||
|
@ -35,9 +35,9 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
|
|||
|
||||
else
|
||||
if [ $(pgrep -c emacs) -gt 0 ]; then
|
||||
alacritty -e emacs --daemon
|
||||
exec emacsclient -c &
|
||||
else
|
||||
alacritty -e emacs --daemon
|
||||
exec emacsclient -c &
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue