adding some tweaks
This commit is contained in:
parent
df59b31474
commit
261e587384
5 changed files with 28 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
# Check to see if an kdenlive is running
|
||||
if [ $(pgrep -c kdenlive) -gt 0 ]; then
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
|
||||
#X11
|
||||
kdenliverg=$(wmctrl -lx | rg kdenlive.kdenlive | rg -v org-agenda | awk '{print $1}')
|
||||
# echo $kdenliverg
|
||||
|
@ -16,17 +16,17 @@ if [ $(pgrep -c kdenlive) -gt 0 ]; then
|
|||
exit
|
||||
fi
|
||||
else
|
||||
if [ $KDE_FULL_SESSION = "true" ]; then
|
||||
if [ "$KDE_FULL_SESSION" = "true" ]; then
|
||||
exec /home/chris/bin/ww -fa Kdenlive -c kdenlive
|
||||
exit
|
||||
else
|
||||
# WAYLAND
|
||||
kdenliverg=$(wlrctl window list | rg -v 'kdenlive:\sorg-agenda' | rg 'kdenlive:')
|
||||
# kdenliverg=$(wlrctl window list | rg -v 'kdenlive:\sorg-agenda' | rg 'kdenlive:')
|
||||
|
||||
kdenlivewin=$(echo $kdenliverg | sed 's/.*\: //')
|
||||
# kdenlivewin=$(echo $kdenliverg | sed 's/.*\: //')
|
||||
# echo $kdenlivewin
|
||||
|
||||
exec wlrctl toplevel focus title:"$kdenlivewin"
|
||||
exec hyprctl dispatch focuswindow kdenlive
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue