# This is an example for icewm hotkey definition file.
# It will be installed as /usr/share/X11/icewm/keys.
# Place your variants in /etc/X11/icewm or in $HOME/.icewm since
# modifications to this file will be overwritten when you reinstall icewm.
#
# A list of all valid keyboard symbols can be found in
# /usr/include/X11/keysymdef.h, XF86keysym.h, ...
# Omit the XK_ prefixs and replace XF86XK_ prefixes by XF86.
# Valid modifiers are Alt, AltGr, Ctrl, Shift, Meta, Super and Hyper.
#
key "Alt+Ctrl+t"            xvt
key "Alt+Ctrl+p"            psi
key "Alt+Ctrl+x"            xchat
key "Alt+Ctrl+l"            xscreensaver-command -lock
key "Alt+Ctrl+e"            nedit
key "Alt+Ctrl+g"            gimp
key "Alt+Ctrl+b"            xdg-open about:blank
key "Alt+Ctrl+s"            xdg-open http://search.altlinux.org
key "Alt+Ctrl+m"            thunderbird
key "Print"                 scrot -b
key "Alt+Print"             scrot -s

key "Alt+Ctrl+KP_Divide"    amixer sset Master 5%- >/dev/null 2>&1 # lower volume
key "Alt+Ctrl+KP_Multiply"  amixer sset Master 5%+ >/dev/null 2>&1 # raise volume
# key "Super+KP_Subtract"     amixer sset Master 5%-
# key "Super+KP_Add"          amixer sset Master 5%+

# "Multimedia key" bindings for Xorg. Gather the keycodes of your
# advanced function keys by watching the output of the xev command
# whilst pressing those keys and map those symbols using xmodmap.
# Note that some of these may interfere with other listeners,
# like systemd for the suspend key events.
#
key "XF86Standby"           killall -QUIT icewm
# key "XF86Standby"           /bin/sh -c "{ test -e /run/systemd/system && systemctl suspend; } ||:"
# key "XF86Sleep"             /bin/sh -c "{ test -e /run/systemd/system && systemctl suspend; } ||:"
key "XF86AudioLowerVolume"  amixer sset Master 5%- >/dev/null 2>&1
key "XF86AudioRaiseVolume"  amixer sset Master 5%+ >/dev/null 2>&1
key "XF86AudioMute"         amixer sset Master toggle >/dev/null 2>&1
key "XF86AudioPlay"         cdplay play 1
key "XF86AudioStop"         cdplay stop
key "XF86HomePage"          xdg-open file:///usr/share/doc/indexhtml/index.html
key "XF86Mail"              thunderbird
key "XF86Search"            xdg-open http://search.altlinux.org/
key "XF86Eject"             eject
key "XF86Calculator"        /bin/sh -c "gnome-calculator || xcalc || ( type bc >/dev/null 2>&1 && xvt -e bc -l)"

switchkey "Super+p"         icewm-menu-xrandr
