hypr changes

This commit is contained in:
Chris Cochrun 2022-11-09 16:35:39 -06:00
parent 3cc08d126c
commit f2d78c7fdd
8 changed files with 57 additions and 26 deletions

View file

@ -5,7 +5,7 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
echo hi
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
#X11
echo X11
emacsrg=$(wmctrl -lx | rg emacs.Emacs | rg -v org-agenda | awk '{print $1}')
echo $emacsrg
@ -21,8 +21,8 @@ if [ $(pgrep -c emacsclient) -gt 0 ]; then
exec /home/chris/bin/ww -fa Emacs -c emacsclient
exit
else
# WAYLAND
emacsrg=$(wlrctl window list | rg -v 'Emacs:\sorg-agenda' | rg 'Emacs:')
echo WAYLAND
emacsrg=$(wlrctl window list | rg Emacs)
emacswin=$(echo $emacsrg | sed 's/.*\: //')
echo $emacswin