Advertisement
Guest User

Untitled

a guest
Nov 17th, 2022
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. local closetap = doubletap.create({
  2.   delay = 300,
  3.   lockdelay = 500,
  4.   action = function()
  5.     local c = mouse.object_under_pointer()
  6.     if not c then return end
  7.     if not c.xkeys then return end
  8.     if c.xutil then return end
  9.  
  10.     if c.kill then
  11.       if c.instance == "Navigator" then
  12.         client.focus = c
  13.         root.fake_input('key_release', "Super_L")
  14.         root.fake_input('key_release', "Super_R")
  15.         root.fake_input('key_release', "Delete")
  16.         root.fake_input('key_press', "Control_L")
  17.         root.fake_input('key_press', "w")
  18.         root.fake_input('key_release', "w")
  19.         root.fake_input('key_release', "Control_L")
  20.       else
  21.         c:kill()
  22.       end
  23.     end
  24.   end
  25. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement