# gmrun configuration file

# Set terminal
Terminal = xterm
TermExec = ${Terminal} -e
AlwaysInTerm = ssh telnet ftp lynx mc vi vim pine centericq perldoc man

# Set window geometry
# - Wx      width                400x
# - WxH     width x height       400x70         (height = 0 = ignore)
# - WxH+x+y width x height +x +y 400x0+200+100
#
# If +x+y is not specified (or not allowed), the gmrun window is displayed centered
Geometry = 450x

# History size
History = 256

# Shows last history line selected when invoked
ShowLast = 0

# Show files starting with '.'
# Default is 0 (off), set it to 1 if you want "hidden" files to show up
# in the completion window
ShowDotFiles = 0

# Timeout (in milliseconds) after which gmrun will simulate a TAB press
# Set this to NULL if don't like this feature.
TabTimeout = 0

# Use libc's system(3) to run commands, this includes any shell command
#   and special stuff that only a shell interpreter can understand
# Set to 0 if you want a more conservative approach where the file to run
#   is validated and errors running files are reported (without closing the gmrun window)
SHELL_RUN = 1


# use GLib XDG handling? (freedesktop specification)
USE_GLIB_XDG = 0

#=======================================================================
# USE_GLIB_XDG = 0, you can specify URL and extension Handlers...
#=======================================================================

# URL handlers
# If the entered text is "https://search.disroot.org" then:
#   - %u gets replaced with the whole URL ("https://search.disroot.org")
#   - %s gets replaced with "//search.disroot.org".
#        useful for URL's like "man:printf" --> %s becomes printf
URL_http = xdg-open '%u'
URL_https = xdg-open '%u'
URL_mailto = xdg-email '%u'
URL_file = xdg-open '%s'
URL_man = ${TermExec} man %s
URL_info = ${TermExec} info %s
URL_search = xdg-open 'https://search.disroot.org/search?q=%s'

# extension handlers
# Customize your own extension handler.
#   syntax-> EXT:ext,etc = handler '%s'
EXT:txt,odt,doc,docx,rtf,pdf,htm,html,js,css,xml,xsl,tex,latex,ps,am,cc,cpp,h,epl = xdg-open '%s'
EXT:webm,mkv,mp4,avi,asf,wmv = xdg-open '%s'
EXT:opus,ogg,flac,mp3,aac,wav = xdg-open '%s'
