Re: @ Dotan: As requested (back in March, sorry): Hotkey launcher scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Duncan posted on Sat, 27 Oct 2012 11:50:27 +0000 as excerpted:

> So four posts should follow, one each for the hkm menu script, the 
> hotkeylookup.lst keymap file, and two example user menu scripts.

Here's the first example user menu file, default.

The hkm script has a setting that tells it which menu to load if
it's not invoked with any.  By default, that's "default".  There's
a setting that tells it which directory to look in as well.  By
default, that's $XDG_CONFIG_HOME/hotkey.lst/, defaulting to
~/.config/hotkey.lst/ if XDG_CONFIG_HOME isn't set.

The idea is to put the scripts and keymap file in a system location,
with only the actual menu files stored in the user's home dir and
editable by them.  The menu files don't need executable permissions.

This is my default menu file, invoked if no menu file is passed to
the script.  Note the per-menu-file option comments, with one of them,
postlaunchtimeout, actually set.  The global default is 3 seconds,
generally enough time to see init errors after launch before the menu
disappears.  However, since my default menu entries simply launch
additional menus, a 3/4 second delay is more appropriate.

--------------- begin default -----------------
#key	description	command
####	###########	#########################################################

a	apps		hkl apps
c	config		hkl config
f	files		hkl files
g	games		hkl games
m	media		hkl media
n	net		hkl net
t	terms		hkl terms
x	xorg		hkl xorg

####	###########	#########################################################
#^C	(impl.rsvd)	(unavailable)
#^J	(impl.rsvd)	(unavailable)
#^M	(impl.rsvd)	(unavailable)

# used:
# ^C ^J ^M a c f g m n t x

### per-file settings, keyed to initial #%% (so ##%% is commented):
#%%postlaunchtimeout=.75

### possible per-file settings:
##%%querytimeout=nnn		#comment
##%%postlaunchtimeout=nn	#comment
##%%defaultkey=xxxxxx		#comment

---------------- end default ------------------

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux