gah
This commit is contained in:
parent
598fa7528d
commit
8576abd055
|
@ -634,9 +634,9 @@ in {
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".librewolf/native-messaging-hosts/tridactyl.json" = {
|
# home.file.".librewolf/native-messaging-hosts/tridactyl.json" = {
|
||||||
source = pkgs.tridactyl-native
|
# source = pkgs.tridactyl-native;
|
||||||
};
|
# };
|
||||||
|
|
||||||
programs.librewolf = {
|
programs.librewolf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,39 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env nu
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
|
||||||
echo $MOZ_ENABLE_WAYLAND
|
|
||||||
|
|
||||||
# Check to see if librewolf is running
|
if (hyprctl clients -j | from json | where initialTitle == LibreWolf | is-not-empty) { hyprctl dispatch focuswindow "initialtitle:LibreWolf" } else { librewolf --name "lw" }
|
||||||
if [ $(pgrep -c librewolf) -gt 0 ]; then
|
|
||||||
echo "ff running"
|
|
||||||
|
|
||||||
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
|
||||||
#X11
|
|
||||||
ffrg=$(wmctrl -lx | rg librewolf | awk '{print $1}')
|
|
||||||
# echo $emacsrg
|
|
||||||
|
|
||||||
if [ -z $ffrg ]; then
|
|
||||||
exec librewolf
|
|
||||||
exit
|
|
||||||
else
|
|
||||||
exec wmctrl -ia $ffrg
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [ "$KDE_FULL_SESSION" = "true" ]; then
|
|
||||||
echo "KDE"
|
|
||||||
exec /home/chris/bin/ww -fa librewolf -c librewolf
|
|
||||||
exit
|
|
||||||
else
|
|
||||||
# WAYLAND
|
|
||||||
ffrg=$(hyprctl clients | rg ff)
|
|
||||||
|
|
||||||
ffwin=$(echo $ffrg | sed 's/.*\: //')
|
|
||||||
# echo $ffwin
|
|
||||||
|
|
||||||
exec hyprctl dispatch focuswindow "class:lw"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
exec librewolf --name "lw"
|
|
||||||
fi
|
|
||||||
|
|
39
scripts/fflof.bak
Executable file
39
scripts/fflof.bak
Executable file
|
@ -0,0 +1,39 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
echo $MOZ_ENABLE_WAYLAND
|
||||||
|
|
||||||
|
# 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 librewolf | awk '{print $1}')
|
||||||
|
# echo $emacsrg
|
||||||
|
|
||||||
|
if [ -z $ffrg ]; then
|
||||||
|
exec librewolf
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
exec wmctrl -ia $ffrg
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [ "$KDE_FULL_SESSION" = "true" ]; then
|
||||||
|
echo "KDE"
|
||||||
|
exec /home/chris/bin/ww -fa librewolf -c librewolf
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
# WAYLAND
|
||||||
|
ffrg=$(hyprctl clients | rg ff)
|
||||||
|
|
||||||
|
ffwin=$(echo $ffrg | sed 's/.*\: //')
|
||||||
|
# echo $ffwin
|
||||||
|
|
||||||
|
exec hyprctl dispatch focuswindow "class:lw"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exec librewolf --name "lw"
|
||||||
|
fi
|
Loading…
Reference in a new issue