Use .desktop files in addition of sxmo_hook_contextmenu.sh
sxmo_hook_apps.sh
sxmo_hook_icons.sh
.
.desktop files will be provided in a package sxmo-program
.
Example
Below is the .desktop file for Falkon on SXMO to be placed under /usr/share/sxmo/applications/
[Desktop Entry]
Name=Falkon
GenericName=Web Browser
Comment=Qt lightweight web browser
Keywords=web;browser;qt;
TryExec=falkon
Exec=falkon %u
Icon= #icon_flk
Terminal=false
Type=Application
Categories=Internet;
X-SXMO=new-tab;new-window;close;zoom-in;zoom-out;history-back;history-forward;home;full-screen;reload;
[Desktop Action new-tab]
Name=New Tab
Icon=" #icon_tab
Persistent=False
SXMOType=-M Ctrl t
[Desktop Action new-window]
Name=New Window
Icon=" #icon_win
Persistent=False
SXMOType=-M Ctrl n
[Desktop Action close]
Name=Close Tab
Icon= #icon_cls
Persistent=False
SXMOType=-M Ctrl w
[Desktop Action zoom-in]
Name=Zoom
Icon= #icon_zmi
Persistent=True
SXMOType=-M Ctrl -k plus
[Desktop Action zoom-out]
Name=Zoom
Icon= #icon_zmo
Persistent=True
SXMOType=-M Ctrl -k minus
[Desktop Action history-back]
Name=History
Icon= #icon_arl
Icon-rtl= #icon_arr
Persistent=True
SXMOType=-M Alt -k Left
[Desktop Action history-forward]
Name=History
Icon= #icon_arr
Icon-rtl= #icon_arl
Persistent=True
SXMOType=-M Alt -k Right
[Desktop Action home]
Name=Home
Icon=" #icon_win
Persistent=False
SXMOType=-M Alt -k Home
[Desktop Action full-screen]
Name=Full Screen
Icon= #icon_zmo
Persistent=False
SXMOType=-M Alt -k F11
[Desktop Action reload]
Name=Refresh
Icon= #icon_rld
Persistent=False
SXMOType=-M Shift -M Ctrl r
Instead of these:
sxmo_hook_icons.sh
icon_flk="" #falkon
sxmo_hook_apps.sh
write_line_app falkon "$icon_flk Falkon" "falkon"
sxmo_hook_contextmenu.sh
*falkon*)
# Falkon
CHOICES="
$icon_flt Pipe URL ^ 0 ^ sxmo_urlhandler.sh
$icon_tab New Tab ^ 0 ^ sxmo_type -M Ctrl t
$icon_win New Window ^ 0 ^ sxmo_type -M Ctrl n
$icon_cls Close Tab ^ 0 ^ sxmo_type -M Ctrl w
$icon_zmi Zoom ^ 1 ^ sxmo_type -M Ctrl -k plus
$icon_zmo Zoom ^ 1 ^ sxmo_type -M Ctrl -k minus
$icon_arl History ^ 1 ^ sxmo_type -M Alt -k Left
$icon_arr History ^ 1 ^ sxmo_type -M Alt -k Right
$icon_win Home ^ 0 ^ sxmo_type -M Alt -k Home
$icon_zmo Full Screen ^ 0 ^ sxmo_type -k F11
$icon_rld Refresh ^ 0 ^ sxmo_type -M Shift -M Ctrl r
"
WINNAME=Falkon
;;
[Desktop Action new-tab]
can be[SXMO Menu new-tab]
or[dmenu new-tab]