Active Topics

 


Reply
Thread Tools
fbnccst's Avatar
Posts: 72 | Thanked: 203 times | Joined on Jan 2014 @ Cairo
#1
Hi guys, is it possible to use volume keys to change volume in xterm, instead of using them to change font size?
thanks.
 

The Following 2 Users Say Thank You to fbnccst For This Useful Post:
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2
Not that I know of. Others may have a more constructive idea, but I simply switch to desktop, adjust the volume and then switch back. Simples.
__________________
Русский военный корабль, иди нахуй!
 

The Following 3 Users Say Thank You to pichlo For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#3
U liv & learn.
I had no idea volume keys adjus font!
__________________
Dave999: Meateo balloons. What’s so special with em? Is it a ballon?
 

The Following User Says Thank You to juiceme For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#4
In xterm or osso-xterm? Should not be a big problem because to use the keys you need to grab them from x11. So comment out the code for grabbing the keys and they should work as usual.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
fbnccst's Avatar
Posts: 72 | Thanked: 203 times | Joined on Jan 2014 @ Cairo
#5
Originally Posted by Halftux View Post
In xterm or osso-xterm? Should not be a big problem because to use the keys you need to grab them from x11. So comment out the code for grabbing the keys and they should work as usual.
osso-xterm

could you elaborate please?
 

The Following User Says Thank You to fbnccst For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#6
Originally Posted by fbnccst View Post
osso-xterm

could you elaborate please?
Here you are!
Attached Files
File Type: deb osso-xterm_0.14.mh31+0cssu2_armel_modkey.deb (55.9 KB, 36 views)
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#7
Originally Posted by Halftux View Post
Here you are!
Arrgh, those source addicts
not telling but hacking
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#8
Originally Posted by peterleinchen View Post
Arrgh, those source addicts
not telling but hacking
I was telling the hack in post #4.
But for you I will translate my words into source code language (see attachment) so you will understand.

But in general I don't wanted to explain step by step what you need to do to get a deb.
It is faster to deliver one.

This is a quick hack, I think you could do it better. Remove the case and some other not needed functions. However I think it does not hurt but it is ugly.
Attached Files
File Type: gz osso-xterm_modkey.diff.tar.gz (794 Bytes, 35 views)
 

The Following 4 Users Say Thank You to Halftux For This Useful Post:
fbnccst's Avatar
Posts: 72 | Thanked: 203 times | Joined on Jan 2014 @ Cairo
#9
Originally Posted by Halftux View Post
Here you are!
Awesome!
thanks
do you mind delivering the way to restore it to default (instead of explaining how to do it as you said)?
 

The Following User Says Thank You to fbnccst For This Useful Post:
Halftux's Avatar
Posts: 868 | Thanked: 2,516 times | Joined on Feb 2012 @ Germany
#10
Originally Posted by fbnccst View Post
do you mind delivering the way to restore it to default (instead of explaining how to do it as you said)?
Ehmm sorry I don't get it which default, like before?
In principle these volume up/down (or zoom) keys are reserved for the system, when you would like to use them in your app you need to grab them. Osso-xterm using these keys so it grabbing the keys from x11. So what I did is commenting (the first comment) in the source code the part which grabs the keys.
When you installed my deb and want to revert it, install the original deb.
When you would like to have the keys changing between zoom/volume during runtime, it is maybe possible when you changing forth and back the window id or implementing a button which grabs and releases the keys.
Or create in the menu a zoom in and zoom out button to still be able to zoom.

I think it would be also possible to have two osso-xterm binaries and two icons.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:35.