I am trying to use a keybinding to pause a process temporily,

bindsym $mod+p exec pkill -SIGSTOP <processname>

But I could not figure out how to make pressing to same keybinding to
restart the process?

Currenlty I am using,

bindsym $mod+c exec pkill -SIGCONT <processname>

Instead, I want something like re-pressing $mod+p executes pkill
-SIGCONT <processname>.



Reply via email to