Skip to content

Another setup for KDE

Max edited this page Apr 20, 2020 · 2 revisions

In my case 'XF86AudioLowerVolume' and 'XF86MonBrightnessUp' didn't work properly, so feel free to change to your system's hotkeys for regulating volume and brightness.

swipe:
  3:
    left:
      sendkey: "LEFTALT+RIGHT" # History forward
      keypress:
        LEFTCTRL:
             sendkey: "LEFTCTRL+W" # Close tab in browser
    right:
      sendkey: "LEFTALT+LEFT" # History back
      keypress:
        LEFTCTRL:
            sendkey: "LEFTCTRL+T" #New tab in browser
    up:
      sendkey: "LEFTMETA+PAGEUP" # Maximize window
      keypress:
        LEFTCTRL:
            sendkey: "LEFTCTRL+HOME" # Scroll to start
    down:
      sendkey: "LEFTMETA+PAGEDOWN" # Minimize window
      keypress:
        LEFTCTRL:
            sendkey: "LEFTCTRL+END" #Scroll to end
  4:
    left:
      sendkey: "LEFTCTRL+F2" # Switch to second workspace
      threshold: 0.25
      interval: 0.25
      keypress:
        LEFTCTRL:
            command: 'xdotool key XF86AudioLowerVolume' # Volume down
    right:
      sendkey: "LEFTCTRL+F1" # Switch to first workspace
      threshold: 0.25
      interval: 0.25
      keypress:
        LEFTCTRL:
            command: 'xdotool key XF86AudioRaiseVolume' # Volume up
    up:
      sendkey: "LEFTALT+TAB" # Switch to previous window
      keypress:
        LEFTCTRL:
            command: 'xdotool key XF86MonBrightnessUp' # Brightness up
    down:   
      sendkey: "LEFTALT+F4" # Close window
      keypress:
        LEFTCTRL:
            command: 'xdotool key XF86MonBrightnessUp' # Brightness down

pinch:
    2:
        in:
            command: "xdotool keydown ctrl click 4 keyup ctrl"
            threshold: 0.3
            interval: 0.3
        out:
            command: "xdotool keydown ctrl click 5 keyup ctrl" # Zoom out
            threshold: 0.3
            interval: 0.3

tap:
  4:
    sendkey: "LEFTCTRL+C" # Copy

hold:
  3:
    sendkey: "LEFTCTRL+F5" # Refresh
  4:
    sendkey: "LEFTCTRL+X" # Cut
    
rotate:
  4:
    clockwise:
      command: 'xdotool key XF86AudioRaiseVolume' # Volume up
    counterclockwise:
      command: 'xdotool key XF86AudioLowerVolume' # Volume down
            
threshold:
  swipe: 0.45

interval:
  swipe: 0.45
  
plugin: 
  inputs:
    libinput_command_input:
      show-keycodes: true
      enable-tap: true # click to tap
      enable-dwt: true # disable tap while typing
      verbose: true