diff --git a/configs/default_hooks/sxmo_hook_apps.sh b/configs/default_hooks/sxmo_hook_apps.sh index daf8066..35009d4 100755 --- a/configs/default_hooks/sxmo_hook_apps.sh +++ b/configs/default_hooks/sxmo_hook_apps.sh @@ -73,6 +73,7 @@ write_line_app lf "$icon_dir Lf" "sxmo_terminal.sh lf" write_line_app lollypop "$icon_mus Lollypop" "lollypop" write_line_app luakit "$icon_glb Luakit" "luakit" write_line_app marble "$icon_map Marble" "marble" +write_line_app gnome-maps "$icon_map Maps" "gnome-maps" write_line_app micro "$icon_edt Micro" "sxmo_terminal.sh micro" write_line_app midori "$icon_glb Midori" "midori" write_line_app mutt "$icon_eml Mutt" "sxmo_terminal.sh mutt" diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh b/configs/default_hooks/sxmo_hook_contextmenu.sh index f3e9b0d..8185b7f 100755 --- a/configs/default_hooks/sxmo_hook_contextmenu.sh +++ b/configs/default_hooks/sxmo_hook_contextmenu.sh @@ -636,6 +636,19 @@ case "$WMCLASS" in " WINNAME=Lagrange ;; + org.gnome.maps) + CHOICES=" + $icon_gps Toggle Geoclue ^ 0 ^ superctl status geoclue-agent |grep started >/dev/null && superctl stop geoclue-agent || superctl start geoclue-agent + $icon_zmi Zoom in ^ 1 ^ sxmo_type -M ctrl = + $icon_zmo Zoom out ^ 1 ^ sxmo_type -M ctrl -k minus + $icon_fnd Explore POI ^ 0 ^ sxmo_type -M ctrl -M Shift F + $icon_fnd Search ^ 0 ^ sxmo_type -M ctrl f && sxmo_keyboard.sh open + $icon_lst Show last results ^ 0 ^ sxmo_type -M ctrl r + $icon_map Toggle route planner ^ 0 ^ sxmo_type -M ctrl d + $icon_gps Show current location ^ 0 ^ sxmo_type -M ctrl l + " + WINNAME=Maps + ;; *mepo*) # Mepo # The choices / hotkeys for the contextmenu are generated through mepo's diff --git a/configs/services/geoclue-agent.service b/configs/services/geoclue-agent.service new file mode 100644 index 0000000..68c58e6 --- /dev/null +++ b/configs/services/geoclue-agent.service @@ -0,0 +1,7 @@ +[Unit] +Description=Proxy location data to map applications + +[Service] +Type=simple +Restart=always +ExecStart=/usr/libexec/geoclue-2.0/demos/agent