суббота, 11 января 2020 г.

Настраиваем жесты в Linux KDE по аналогии с Macos

Ставим fusuma https://github.com/iberianpig/fusuma:

sudo gpasswd -a $USER input
sudo zypper install libinput-tools
sudo zypper install xdotool
sudo gem install fusuma

Создаем файл настроек ~/.config/fusuma/config.yml:

swipe:
  3:
    left:
      command: 'xdotool key alt+Shift+Tab'
    right:
      command: 'xdotool key alt+Tab'
    up:
      command: 'xdotool key ctrl+F9'
    down:
      command: 'xdotool key ctrl+F9'
threshold:
  swipe: 1
  pinch: 1
interval:
  swipe: 1
  pinch: 1

В настройках KDE cтавим в автозапуск:  System settings -> Startup and shutdown -> Autostart скрипт fusuma.sh:

#!/bin/sh
/usr/lib64/ruby/gems/2.6.0/gems/fusuma-1.3.2/exe/fusuma -d -c ~/.config/fusuma/config.yml

В настройках KDE:

System settings -> Window management -> Task switcher -> Content: Sort Order утанавливаем в Stacking Order

Комментариев нет:

Отправить комментарий