# run dialog, gmrun is good but it doesnt look windows like.
key "Super+R" gmrun

# lock program
#
# you can use ice2k.sys lock based on i3lock but
# for security i am not enabling that by default
# because i3lock could be pretty vulnerable
#
# replace lock2k with lock2k-i2k to use ice2k.sys
# lock
key "Super+L" "~/.icewm/programs/lock/lock2k"

# screenshot using printscreen
#key "Print" sh -c 'scrot -p -o /dev/stdout | xclip -selection clipboard -target image/png'

#key "Alt+Print" sh -c 'scrot -p -b -u -o /dev/stdout | xclip -selection clipboard -target image/png'

key "Print" sh -c 'import -window root png:- | xclip -selection clipboard -target image/png'

key "Alt+Print" sh -c 'import -frame -window $(xdotool getactivewindow) png:- | xclip -selection clipboard -target image/png'

key "Ctrl+Print" sh -c 'scrot - --select --line mode=edge  | xclip -selection clipboard -target image/png'

# show desktop on super+m
key "Super+M" sh -c 'if icesh desktop|grep -q -- 0; then icesh desktop 1;else icesh desktop 0; fi'

# open terminal on ctrl+alt+t
key "Ctrl+Alt+T" uxterm

# open xfe file manager (equivelant of windows explorer) on win+e
key "Super+E" xfe

# htop is objectively superior even if it doesnt look like taskmgr
#key "Ctrl+Alt+Esc" lxtask
key "Ctrl+Alt+Esc" htop

# ctrl+alt+del key
key "Alt+Ctrl+Del" ~/.icewm/programs/ctrlaltdel/ctrlaltdel

# zippy dis shit is my personal hotkeys ignore but you can use them if you want to for some reason
key "Menu" $HOME/.icewm/copy.sh
#key "Menu" sh -c 'xdotool key Menu && xdotool type ^2'
#key "Menu" sh -c 'xdotool key Menu && xdotool type ">:3"'

# keyboard layout switcher
# keyboard layout switcher is pretty buggy (doesn't handle logouts)
key "Super+Space" "~/.icewm/programs/kbswitch/setlayout" cycle

# volume keys
key "XF86AudioRaiseVolume" amixer sset Master 5%+
key "XF86AudioLowerVolume" amixer sset Master 5%-
key "XF86AudioMute" amixer sset Master 0%

# mislabeled version, my keyboard has the wrong symbols for key
# you probably do not need to use this
#key "XF86AudioPlay" amixer sset Master 5%+
#key "XF86AudioStop" amixer sset Master 5%-
#key "XF86AudioMute" amixer sset Master 0%

# multi-monitors config on win+p
switchkey "Super+P" icewm-menu-xrandr

# for programs that don't support images from clipboard
#key "Super+Pause" sh -c 'mkdir -p /tmp/clip && xclip -selection clipboard -target image/png -o > /tmp/clip/image.png'
