fixing things i guess

This commit is contained in:
Chris Cochrun 2025-04-08 10:05:00 -05:00
parent 01cce2c99b
commit fce0223ae4
6 changed files with 90 additions and 32 deletions

View file

@ -2,17 +2,17 @@
export MOZ_ENABLE_WAYLAND=1
echo $MOZ_ENABLE_WAYLAND
# Check to see if firefox is running
if [ $(pgrep -c firefox) -gt 0 ]; then
# Check to see if librewolf is running
if [ $(pgrep -c librewolf) -gt 0 ]; then
echo "ff running"
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
#X11
ffrg=$(wmctrl -lx | rg firefox | awk '{print $1}')
ffrg=$(wmctrl -lx | rg librewolf | awk '{print $1}')
# echo $emacsrg
if [ -z $ffrg ]; then
exec firefox
exec librewolf
exit
else
exec wmctrl -ia $ffrg
@ -21,7 +21,7 @@ if [ $(pgrep -c firefox) -gt 0 ]; then
else
if [ "$KDE_FULL_SESSION" = "true" ]; then
echo "KDE"
exec /home/chris/bin/ww -fa firefox -c librewolf
exec /home/chris/bin/ww -fa librewolf -c librewolf
exit
else
# WAYLAND
@ -35,5 +35,5 @@ if [ $(pgrep -c firefox) -gt 0 ]; then
fi
fi
else
exec firefox --name "lw"
exec librewolf --name "lw"
fi