switching to vivaldi
This commit is contained in:
parent
99a4d8420e
commit
3b3d36eb03
7 changed files with 206 additions and 84 deletions
35
scripts/vivlof
Executable file
35
scripts/vivlof
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Check to see if vivaldi is running
|
||||
if [ $(pgrep -c vivaldi) -gt 0 ]; then
|
||||
echo "vivaldi running"
|
||||
|
||||
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
||||
#X11
|
||||
ffrg=$(wmctrl -lx | rg vivaldi | awk '{print $1}')
|
||||
|
||||
if [ -z $ffrg ]; then
|
||||
exec vivaldi
|
||||
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 vivaldi-stable)
|
||||
|
||||
ffwin=$(echo $ffrg | sed 's/.*\: //')
|
||||
|
||||
exec hyprctl dispatch focuswindow "class:vivaldi-stable"
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
else
|
||||
exec vivaldi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue