More specifically in urxvt. Scrolling with shift+page up/down is so cumbersome. Any way to turn on and off manual scrolling with the scroll lock key like in the console? Couldn't find anything on the subject. Thanks.
Kids these days.Scrolling with shift+page up/down is so cumbersome.
Kids these days.
Maybe this will help you.Code:URxvt*scrollTtyOutput: false URxvt*scrollWithBuffer: true URxvt*scrollTtyKeypress: true URxvt.saveLines: 300000
URxvt.keysym.Prior: eval:scroll_up_pages 1
URxvt.keysym.Next: eval:scroll_down_pages 1
setxkbmap -option shift:both_shiftlock
(or the equivalent in a file such as /usr/local/etc/X11/xorg.conf.d/10-keyboard.conf). That XKB option will enable Shift Lock when you press both Shift keys; pressing a single Shift key will turn off Shift Lock. This means you can scroll by pressing and releasing Shift_L+Shift_R followed by Page Up (Prior) and Page Down (Next) as much as you want in urxvt until you press a Shift key again. Scroll Lock behavior will still need to be activated separately as usual, just as if you were using Shift+Page Up/Down. I realize this isn't exactly what you wanted, but it is a noteworthy compromise. Of course, there are caveats to using that XKB option, such as the fact that it affects all X clients; switching from a terminal you were scrolling to a program that uses vi-like keybindings without disabling Shift Lock can easily cause trouble for example. There will obviously be an adjustment period, and if you come to depend on this behavior, working with vt(4) will take a moment. xterm -e 'tmux'
, starting a new tmux session in a new xterm. Mod+Shift+space will similarly execute xterm -e 'tmux a'
to attach to the last tmux session I was using in a new xterm. Scrolling is done by using the prefix key (Ctrl+B by default) followed by Page Up/Down (technically Page Up enters "copy mode" before scrolling, which can be exited using the 'q' key).Even when Num_Lock and Scroll_Lock were mapped in sxhkdrc, pressing them alongside a shortcut still switched their respective lock modes on/off, which means that using these keys in keyboard shortcuts may be a bad idea, as one would be switching them on and off uncontrollably, changing the behavior of other keys and programs in the process.
—https://douglasrizzo.com.br/sxkhd-masterkeys-pro-m-abnt2/