set winfmt %n %p %t
escape C-Escape
unbind C-A
unbind C-r
unbind C-Down
unbind C-K
unbind C-Left
unbind C-Return
unbind C-Right
unbind C-S
unbind C-Super_L
unbind C-Up
unbind C-V
unbind C-a
unbind C-c
unbind C-apostrophe
unbind C-b
unbind C-exclam
unbind C-f
unbind C-g
unbind C-i
unbind C-k
unbind C-l
unbind C-n
unbind C-p
unbind C-r
unbind C-s
unbind C-space
unbind C-u
unbind C-underscore
unbind C-w
unbind C-x
unbind Down
unbind F
unbind Left
unbind M-Tab
unbind N
unbind P
unbind Q
unbind R
unbind Return
unbind Right
unbind S
unbind Super_L
unbind Tab
unbind U
unbind Up
unbind a
unbind c
unbind apostrophe
unbind colon
unbind f
unbind i
unbind k
unbind m
unbind r
unbind s
unbind space
unbind u
unbind x
bind C-0 exec rpws 1
bind C-1 exec rpws 2
bind C-2 exec rpws 3
bind C-3 exec rpws 4
bind C-4 exec rpws 5
bind C-5 exec rpws 6
bind C-6 exec rpws 7
bind C-7 exec rpws 8
bind C-8 exec rpws 9
bind C-9 exec rpws 10
bind c exec mate-terminal
bind l exec mate-screensaver-command -l
bind o other
bind O exec sh -c "if which piper-tts-sd-update > /dev/null 2>/dev/null;then piper-tts-sd-update;fi;if which sapisetup > /dev/null 2>/dev/null;then sapisetup;fi;killall -9 orca speech-dispatcher;orca --replace"
bind v exec pavol +1000
bind V exec pavol -1000
bind C-w exec ocr
bind comma exec sudo screenctl off forcesys
bind period exec sudo screenctl on forcesys
bind b exec sh -c "cd /sys/class/power_supply;for f in \`ls\`;do if [ -e \$f\"/capacity\" ];then export stat=\`cat \$f\"/status\"\`;export cap=\`cat \$f\"/capacity\"\`;echo battery \$f\": \"\$stat\", \"\$cap\"%\";fi;done > /run/user/`id -u`/pwr;kdialog --textbox /run/user/`id -u`/pwr --title \"Power Status\";rm /run/user/`id =u`/pwr"
bind question exec /bin/sh -c "ratpoison -c help > /run/user/`id -u`/rpkeys;kdialog --textbox /run/user/`id -u`/rpkeys --title \"ratpoison key commands\";rm /run/user/`id -u`/rpkeys"
bind s exec sh -c 'export window=`kdialog --inputbox "Enter window text to match" --title select\ window`;export winnum=`ratpoison -c windows|grep -i "$window"|cut -f 1 -d \  |head -n 1`;if [ -z $winnum ];then exit 3;else export filename=`mktemp`;echo select $winnum > $filename;ratpoison -c source\ $filename;rm $filename;fi'
bind G exec kdialog --textbox /usr/share/jenux/ratpoison_help --title "Welcome to Jenux! "
bind t exec sh -c "date +%R > /run/user/`id -u`/time;kdialog --textbox /run/user/`id -u`/time --title \"Time\";rm /run/user/`id -u`/time"
bind T exec sh -c "date +%F > /run/user/`id -u`/date;kdialog --textbox /run/user/`id -u`/date --title \"Date\";rm /run/user/`id -u`/date"
bind w exec /bin/sh -c "ratpoison -c windows > /run/user/`id -u`/rpwindows;kdialog --textbox /run/user/`id -u`/rpwindows --title \"Window List\";rm /run/user/`id -u`/rpwindows"
bind W exec sh -c "scrot -uz /tmp/img;tesseract /tmp/img /tmp/txt 2>/dev/null;kdialog --textbox /tmp/txt.txt --title \"OCR Results\";rm /tmp/img /tmp/txt.txt"
bind exclam exec sh -c 'export filename=`mktemp`;echo -n exec\  > $filename;kdialog --inputbox "Please Enter a Command" --title run >> $filename;ratpoison -c "source $filename";rm $filename'
exec rpws init 10
exec sh -c "if [ -e ~/.bell.wav ];then sleep .01;else sox -n -t wav ~/.bell.wav -q synth square 750 trim 00:00:00 00:00:00.150 vol 0.125;fi;if pactl list samples|grep -qw bell;then sleep .01;else pactl upload-sample ~/.bell.wav bell;fi;if pactl list modules|grep -i x11-bell;then sleep .01;else pactl load-module module-x11-bell sample=bell sink=@DEFAULT_SINK@ display=$DISPLAY;fi"
exec mate-screensaver
exec /lib/notification-daemon-1.0/notification-daemon -r
exec /lib/mate-polkit/polkit-mate-authentication-agent-1
exec xbrlapi
exec sh -c "if which piper-tts-sd-update > /dev/null 2>/dev/null;then piper-tts-sd-update;fi;if which sapisetup > /dev/null 2>/dev/null;then sapisetup;fi;killall -9 orca speech-dispatcher;orca --replace"
exec sh -c "if pgrep mate-terminal > /dev/null 2>/dev/null;then sleep .01;else mate-terminal;fi"
source .ratpoison_intro
