viu*_*ser 3 keyboard-shortcuts feh
我想配置 feh 以便箭头键和 h、j、k、l 向左/向下/向上/向右滚动图像。
我把以下内容~/.config/feh/keys
:
zoom_in
zoom_out
scroll_right
scroll_left
scroll_up
scroll_down
zoom_in plus
zoom_out minus
scroll_up Up j
scroll_down Down k
scroll_left Left h
scroll_right Right l
Run Code Online (Sandbox Code Playgroud)
什么不工作,与左,右箭头键滚动。上下和其他一切正常。该怎么办?
feh 版本是:
feh version 2.18
Compile-time switches: curl xinerama
Run Code Online (Sandbox Code Playgroud)
必须先取消绑定到键的操作的键绑定,然后才能将键用于另一个操作。
→(cursor-right) 和←(cursor-left) 分别绑定到动作next_img
和prev_img
。
所以使用:
# unsetting the keys bound to next/previous image by stating it without assigning any keys:
next_img
prev_img
# further unsetting:
zoom_in
zoom_out
scroll_right
scroll_left
scroll_up
scroll_down
# custom key mapping:
zoom_in plus
zoom_out minus
scroll_up Up j
scroll_down Down k
scroll_left Left h
scroll_right Right l
# assigning new keys for showing next/previous image
next_img space
prev_img BackSpace
Run Code Online (Sandbox Code Playgroud)
使 feh 使用箭头键滚动和空格/退格键用于下一个/上一个图像。
归档时间: |
|
查看次数: |
2483 次 |
最近记录: |