Use gdbus to show gajim if it is already running

This commit is contained in:
Adam Goldsmith 2022-06-21 21:46:24 -04:00
parent d64e59ec9b
commit 5ca22bb10f

View File

@ -61,7 +61,7 @@ mode "launch" {
bindsym f exec firefox; mode "default" bindsym f exec firefox; mode "default"
bindsym t exec thunar; mode "default" bindsym t exec thunar; mode "default"
bindsym --release Shift+t exec $config_dir/passthrough "Emacs" "super+t" thunar; mode "default" bindsym --release Shift+t exec $config_dir/passthrough "Emacs" "super+t" thunar; mode "default"
bindsym x exec gajim; mode "default" bindsym x exec gdbus call --session --dest=org.gajim.Gajim --object-path /org/gajim/Gajim --method org.gtk.Actions.Activate show [] {} || gajim; mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
bindsym Return mode "default" bindsym Return mode "default"
bindsym grave mode "default" bindsym grave mode "default"