Integrate epy|epr epub readers
- inhibit idle to leave the screen on while reading - map vol keys to page scroll when locked - quit using "q" to store progress Signed-off-by: Willow Barraco <contact@willowbarraco.fr> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:

committed by
Maarten van Gompel

parent
471dce2b9e
commit
ebb2c3e47e
@@ -214,6 +214,7 @@ bar {
|
||||
for_window [app_id="pinentry-.*"] floating true
|
||||
for_window [app_id="foot" title=".*sxmo/modem/.*/draft.txt.*"] resize set height 25
|
||||
for_window [title="megapixels"] inhibit_idle open
|
||||
for_window [title="ep[yr].*"] inhibit_idle visible
|
||||
|
||||
default_border pixel 3
|
||||
titlebar_border_thickness 3
|
||||
|
@@ -37,6 +37,7 @@ write_line_app emacs "$icon_edt Emacs (Terminal)" "sxmo_terminal.sh emacs -nw"
|
||||
write_line_app emacs "$icon_edt Emacs (X)" "emacs"
|
||||
write_line_app epiphany "$icon_glb Epiphany" "epiphany"
|
||||
write_line_app epy "$icon_bok Epy" "sxmo_terminal.sh epy"
|
||||
write_line_app epr "$icon_bok Epr" "sxmo_terminal.sh epr"
|
||||
write_line_app evince "$icon_bok Evince" "evince"
|
||||
write_line_app falkon "$icon_flk Falkon" "falkon"
|
||||
write_line_app firefox "$icon_ffx Firefox" "firefox"
|
||||
|
@@ -45,6 +45,20 @@ WMNAME="$(printf %s "$XPROPOUT" | grep title: | cut -d" " -f2- | tr '[:upper:]'
|
||||
sxmo_debug "STATE: $(cat "$SXMO_STATE") ACTION: $ACTION WMCLASS: $WMCLASS WMNAME: $WMNAME"
|
||||
|
||||
if ! grep -q unlock "$SXMO_STATE"; then
|
||||
case "$WMNAME" in # Handle programs
|
||||
*"epy"*|*"epr"*)
|
||||
case "$ACTION" in
|
||||
"voldown_one")
|
||||
sxmo_type.sh l
|
||||
exit 0
|
||||
;;
|
||||
"volup_one")
|
||||
sxmo_type.sh h
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
case "$ACTION" in
|
||||
"powerbutton_one")
|
||||
lock_screen_action
|
||||
@@ -150,6 +164,18 @@ case "$WMCLASS" in
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*'epy'*|*'epr'*)
|
||||
case "$ACTION" in
|
||||
"onedown")
|
||||
sxmo_type.sh h
|
||||
exit 0
|
||||
;;
|
||||
"oneup")
|
||||
sxmo_type.sh l
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
@@ -233,6 +259,22 @@ case "$WMCLASS" in
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*"epy"*|*"epr"*)
|
||||
case "$ACTION" in
|
||||
*"left"|"voldown_one")
|
||||
sxmo_type.sh l
|
||||
exit 0
|
||||
;;
|
||||
*"right"|"volup_one")
|
||||
sxmo_type.sh h
|
||||
exit 0
|
||||
;;
|
||||
"voldown_three"|"twodownbottomedge")
|
||||
sxmo_type.sh q
|
||||
exit
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$WMCLASS" in # Handle general scrolling without touch support
|
||||
|
Reference in New Issue
Block a user