The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Is doubleclick among mousebinds?

asked 2015-09-15 18:50:58 +0000

denzen gravatar image

I cannot find doubleclick in the documentation and these forums. Is it available for mousebind?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-09-18 07:10:15 +0000

SpicyCat gravatar image

One possible way is you can define a mode, and bind mouse click to it and bind mouse click again inside the mode. Like this:

set $Locker i3lock-wrapper -l && sleep 1
mode "test" {
    bindsym --release button1 exec --no-startup-id $Locker, mode "default"
    # back to normal: Enter or Escape
    bindsym Return mode "default"
    bindsym Escape mode "default"
}

bindsym --release button1 mode "test"

By default, the binding will only run when you click on the titlebar of the window.

When I double click window title bar, my PC will be locked.

edit flag offensive delete link more
0

answered 2015-09-16 04:47:30 +0000

Airblader gravatar image

No, there's no built in way to do this in i3.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-09-15 18:50:58 +0000

Seen: 66 times

Last updated: Sep 18