I’ve been searching the interwebs to no avail. Does anybody know how to implement this?
I’m using the terminal shipped with Manjaro xfce. Maybe there’s another terminal with this feature built-in?
I’ve been searching the interwebs to no avail. Does anybody know how to implement this?
I’m using the terminal shipped with Manjaro xfce. Maybe there’s another terminal with this feature built-in?
What are you trying to do, specifically?
history
...
16707 systemctl --user restart mpd
Wheel scrolls for me in:
So you want to scroll the history with the scrollwheel instead of with the up and down key?
What terminal is shipped with xfce? (I use i3 so I have no idea)
Basically I want to temporarily remap the mouse wheel to the ‘Up’ and ‘Down’ keys in order to be able to scroll through the command line, not the window.
I was able to do this by using xbindkeys, but I have to restart xsession(?) everytime to revert the changes (make xbindkeys use the blank config file).
EDIT: Eventually figured out how to use xbindkeys properly.
I followed this guide:
.xbindkeysrc
file looks like this (which is just a templet, since the keybindings might or might not work for your hardware. See the uncommented lines for my keybindings):
# For the benefit of emacs users: -*- shell-script -*-
###########################
# xbindkeys configuration #
###########################
#
# Version: 1.8.7
#
# If you edit this file, do not forget to uncomment any lines
# that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# To specify a key, you can use 'xbindkeys --key' or
# 'xbindkeys --multikey' and put one of the two lines in this file.
#
# The format of a command line is:
# "command to start"
# associated key
#
#
# A list of keys is in /usr/include/X11/keysym.h and in
# /usr/include/X11/keysymdef.h
# The XK_ is not needed.
#
# List of modifier:
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# The release modifier is not a standard X modifier, but you can
# use it if you want to catch release events instead of press events
# By defaults, xbindkeys does not pay attention with the modifiers
# NumLock, CapsLock and ScrollLock.
# Uncomment the lines above if you want to pay attention to them.
#keystate_numlock = enable
#keystate_capslock = enable
#keystate_scrolllock= enable
# Examples of commands:
"xdotool key 'Up'"
Mod5 + ISO_Level3_Shift + b:4
"xdotool key 'Down'"
Mod5 + ISO_Level3_Shift + b:5
#"xbindkeys_show"
# control+shift + q
# set directly keycode (here control + f with my keyboard)
#"xterm"
# c:41 + m:0x4
# specify a mouse button
#"xterm"
# control + b:2
#"xterm -geom 50x20+20+20"
# Shift+Mod2+alt + s
#
## set directly keycode (here control+alt+mod2 + f with my keyboard)
#"xterm"
# alt + c:0x29 + m:4 + mod2
#
## Control+Shift+a release event starts rxvt
#"rxvt"
# release+control+shift + a
#
## Control + mouse button 2 release event starts rxvt
#"rxvt"
# Control + b:2 + Release
##################################
# End of xbindkeys configuration #
##################################
This binds my Up
and Down
keys to my mousewheel while pressing Alt Gr
.
Thanx for your reply
Yep. It’s xfce4-terminal.
Oke that uses VTE and I am sure it is a feature of it. Not sure how to set doh
No, post what you did here…so other users can have a solution based on a forum search.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.