Libinput позволяет Tapping и прокрутку двух пальцев Ubuntu 17.04

Не стесняйтесь брать мой в качестве примера. Нет никакой гарантии, что он будет соответствовать вашим потребностям, но я думаю, что это может послужить хорошей отправной точкой для создания ваших собственных. Вот его содержание для удобства:

" Configuration file for Vi Improved, save as ~/.vimrc to use.
" Written on 2014-07-16 by Miko Bartnicki <mikobartnicki@gmail.com>.

" use Vim mode instead of pure Vi, it must be the first instruction
set nocompatible

" display settings
set encoding=utf-8 " encoding used for displaying file
set ruler " show the cursor position all the time
set showmatch " highlight matching braces
set showmode " show insert/replace/visual mode

" write settings
set confirm " confirm :q in case of unsaved changes
set fileencoding=utf-8 " encoding used when saving file
set nobackup " do not keep the backup~ file

" edit settings
set backspace=indent,eol,start " backspacing over everything in insert mode
set expandtab " fill tabs with spaces
set nojoinspaces " no extra space after '.' when joining lines
set shiftwidth=8 " set indentation depth to 8 columns
set softtabstop=8 " backspacing over 8 spaces like over tabs
set tabstop=8 " set tabulator length to 8 columns
set textwidth=80 " wrap lines automatically at 80th column

" search settings
set hlsearch " highlight search results
set ignorecase " do case insensitive search...
set incsearch " do incremental search
set smartcase " ...unless capital letters are used

" file type specific settings
filetype on " enable file type detection
filetype plugin on " load the plugins for specific file types
filetype indent on " automatically indent code

" syntax highlighting
colorscheme solarized " set color scheme, must be installed first
set background=dark " dark background for console
syntax enable " enable syntax highlighting

" characters for displaying non-printable characters
set listchars=eol:$,tab:>-,trail:.,nbsp:_,extends:+,precedes:+

" tuning for gVim only
if has('gui_running')
        set background=light " light background for GUI
        set columns=84 lines=48 " GUI window geometry
        set guifont=Monospace\ 12 " font for GUI window
        set number " show line numbers
endif

" automatic commands
if has('autocmd')
        " file type specific automatic commands

        " tuning textwidth for Java code
        autocmd FileType java setlocal textwidth=132
        if has('gui_running')
                autocmd FileType java setlocal columns=136
        endif

        " don't replace Tabs with spaces when editing makefiles
        autocmd Filetype makefile setlocal noexpandtab

        " disable automatic code indentation when editing TeX and XML files
        autocmd FileType tex,xml setlocal indentexpr=

        " clean-up commands that run automatically on write; use with caution

        " delete empty or whitespaces-only lines at the end of file
        autocmd BufWritePre * :%s/\(\s*\n\)\+\%$//ge

        " replace groups of empty or whitespaces-only lines with one empty line
        autocmd BufWritePre * :%s/\(\s*\n\)\{3,}/\r\r/ge

        " delete any trailing whitespaces
        autocmd BufWritePre * :%s/\s\+$//ge
endif

" general key mappings

" center view on the search result
noremap n nzz
noremap N Nzz

" press F4 to fix indentation in whole file; overwrites marker 'q' position
noremap <F4> mqggVG=`qzz
inoremap <F4> <Esc>mqggVG=`qzza

" press F5 to sort selection or paragraph
vnoremap <F5> :sort i<CR>
nnoremap <F5> Vip:sort i<CR>

" press F8 to turn the search results highlight off
noremap <F8> :nohl<CR>
inoremap <F8> <Esc>:nohl<CR>a

" press F12 to toggle showing the non-printable charactes
noremap <F12> :set list!<CR>
inoremap <F12> <Esc>:set list!<CR>a
0
задан 12 September 2017 в 20:47

3 ответа

Приступая к руководству archlinux, ваши строки должны выглядеть так:

/etc/X11/xorg.conf.d/30-touchpad.conf ...

 Section "InputClass"
 Identifier "devname"
 Driver "libinput"
 MatchIsTouchpad "on"
 Option "Tapping" "on" 
 Option "ClickMethod" "clickfinger"
 Option "NaturalScrolling" "true"

...
EndSection
[d2 ] Имейте в виду, что некоторые из них могут применяться только к определенным устройствам.

Источник: https://wiki.archlinux.org/index.php/Libinput

0
ответ дан 22 May 2018 в 18:32
  • 1
    спасибо, но я не очень волнуюсь, если это естественная прокрутка или нет. то, что я ищу, - это способ как прокрутки двух пальцев, так и нажатия на кнопку «libinput». – carlos lopez 13 September 2017 в 02:40
  • 2
    Я отредактировал ответ в соответствии с libinput. Это способ сделать это, как написано в документации archlinux. Если оба они все еще не работают, ваше оборудование не поддерживает оба в одно время. – chazecka 13 September 2017 в 09:25

Приступая к руководству archlinux, ваши строки должны выглядеть так:

/etc/X11/xorg.conf.d/30-touchpad.conf ...

Section "InputClass" Identifier "devname" Driver "libinput" MatchIsTouchpad "on" Option "Tapping" "on" Option "ClickMethod" "clickfinger" Option "NaturalScrolling" "true" ... EndSection

Имейте в виду, что некоторые из них могут применяться только к определенным устройствам.

Источник: https://wiki.archlinux.org/index.php/Libinput

0
ответ дан 18 July 2018 в 06:58

Приступая к руководству archlinux, ваши строки должны выглядеть так:

/etc/X11/xorg.conf.d/30-touchpad.conf ...

Section "InputClass" Identifier "devname" Driver "libinput" MatchIsTouchpad "on" Option "Tapping" "on" Option "ClickMethod" "clickfinger" Option "NaturalScrolling" "true" ... EndSection

Имейте в виду, что некоторые из них могут применяться только к определенным устройствам.

Источник: https://wiki.archlinux.org/index.php/Libinput

0
ответ дан 24 July 2018 в 18:42

Другие вопросы по тегам:

Похожие вопросы: