general updates

This commit is contained in:
Chris Cochrun 2022-09-04 10:52:38 -05:00
parent 19d514e405
commit 1776b30851
10 changed files with 138 additions and 41 deletions

View file

@ -6,7 +6,7 @@ echo $MOZ_ENABLE_WAYLAND
if [ $(pgrep -c firefox) -gt 0 ]; then
echo "ff running"
if [ $XDG_SESSION_TYPE = "x11" ]; then
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
#X11
ffrg=$(wmctrl -lx | rg firefox | awk '{print $1}')
# echo $emacsrg
@ -19,7 +19,7 @@ if [ $(pgrep -c firefox) -gt 0 ]; then
exit
fi
else
if [ $KDE_FULL_SESSION = "true" ]; then
if [ "$KDE_FULL_SESSION" = "true" ]; then
echo "KDE"
exec /home/chris/bin/ww -f firefox -c firefox
exit
@ -30,7 +30,7 @@ if [ $(pgrep -c firefox) -gt 0 ]; then
ffwin=$(echo $ffrg | sed 's/.*\: //')
# echo $ffwin
exec wlrctl toplevel focus title:"$ffwin"
exec wlrctl toplevel focus firefox
exit
fi
fi