26 lines
835 B
Plaintext
26 lines
835 B
Plaintext
# ~/.inputrc
|
|
# Readline configuration for bash
|
|
# Reload changes with control+x followed by control+r
|
|
|
|
# Don't echo control characters
|
|
set echo-control-characters off
|
|
|
|
# History searching with up and down arrows
|
|
"\e[A": history-search-backward
|
|
"\e[B": history-search-forward
|
|
|
|
# Shift+Tab sequences for console (backward menu completion)
|
|
"\e[Z": menu-complete-backward
|
|
"\eZ": menu-complete-backward
|
|
# Alt+comma as alternative
|
|
"\e,": menu-complete-backward
|
|
|
|
# Music player keybindings (requires playerctl)
|
|
"\eX": "\C-k \C-u playerctl play\C-M"
|
|
"\eC": "\C-k \C-u playerctl play-pause\C-M"
|
|
"\eV": "\C-k \C-u playerctl stop\C-M"
|
|
"\eB": "\C-k \C-u playerctl next\C-M"
|
|
"\eU": "\C-k \C-u playerctl metadata -f '{{artist}} - {{album}} - {{title}}'\C-M"
|
|
"\e_": "\C-k \C-u playerctl volume 0.05-\C-M"
|
|
"\e+": "\C-k \C-u playerctl volume 0.05+\C-M"
|