On Tue, May 07, 2024 at 12:00:11AM GMT, hallo@magdesign.ch wrote:
> On 2024-05-05 16:56, Aren wrote:
> > On Sat, May 04, 2024 at 02:10:14PM +0200, Maarten van Gompel wrote:
> > > From: magdesign <hallo@magdesign.ch>
> > >
> > > ---
> > > configs/default_hooks/sxmo_hook_contextmenu.sh | 3 +++
> > > 1 file changed, 3 insertions(+)
> > >
> > > diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh
> > > b/configs/default_hooks/sxmo_hook_contextmenu.sh
> > > index d3a72ca..86136ab 100755
> > > --- a/configs/default_hooks/sxmo_hook_contextmenu.sh
> > > +++ b/configs/default_hooks/sxmo_hook_contextmenu.sh
> > > @@ -611,6 +611,9 @@ case "$WMCLASS" in
> > > $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
> > > + $icon_trh Delete Cookies ^ 0 ^ rm
> > > ~/.mozilla/firefox/*.default*/cookies.sqlite
> > > + $icon_trh Delete History ^ 0 ^ rm
> > > ~/.mozilla/firefox/*.default*/places.sqlite
> > > + $icon_trh Delete SiteData ^ 0 ^ rm -rf
> > > ~/.mozilla/firefox/*.default*/storage/default/* & rm -rf
> > > ~/.cache/mozilla/firefox/*.default*/cache2/*
> >
> > Can we have a confirm prompt? This aren't reversible, and it would be a
> > pain if they were accidentally triggered.
> >
> > > "
> > > WINNAME=Firefox
> > > ;;
> > > --
> > > 2.45.0
> > >
> yes, thats a good idea! need to figure out how to do this :)
sxmo_appmenu.sh defines a confirm function that you can use. If you
search this file, it's used in a few places.
p.s. make sure to keep ~mil/sxmo-devel@lists.sr.ht CC'd
On 2024-05-07 00:59, Aren wrote:
> On Tue, May 07, 2024 at 12:00:11AM GMT, hallo@magdesign.ch wrote:
>> On 2024-05-05 16:56, Aren wrote:
>> > On Sat, May 04, 2024 at 02:10:14PM +0200, Maarten van Gompel wrote:
>> > > From: magdesign <hallo@magdesign.ch>
>> > >
>> > > ---
>> > > configs/default_hooks/sxmo_hook_contextmenu.sh | 3 +++
>> > > 1 file changed, 3 insertions(+)
>> > >
>> > > diff --git a/configs/default_hooks/sxmo_hook_contextmenu.sh
>> > > b/configs/default_hooks/sxmo_hook_contextmenu.sh
>> > > index d3a72ca..86136ab 100755
>> > > --- a/configs/default_hooks/sxmo_hook_contextmenu.sh
>> > > +++ b/configs/default_hooks/sxmo_hook_contextmenu.sh
>> > > @@ -611,6 +611,9 @@ case "$WMCLASS" in
>> > > $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
>> > > + $icon_trh Delete Cookies ^ 0 ^ rm
>> > > ~/.mozilla/firefox/*.default*/cookies.sqlite
>> > > + $icon_trh Delete History ^ 0 ^ rm
>> > > ~/.mozilla/firefox/*.default*/places.sqlite
>> > > + $icon_trh Delete SiteData ^ 0 ^ rm -rf
>> > > ~/.mozilla/firefox/*.default*/storage/default/* & rm -rf
>> > > ~/.cache/mozilla/firefox/*.default*/cache2/*
>> >
>> > Can we have a confirm prompt? This aren't reversible, and it would be a
>> > pain if they were accidentally triggered.
>> >
>> > > "
>> > > WINNAME=Firefox
>> > > ;;
>> > > --
>> > > 2.45.0
>> > >
>> yes, thats a good idea! need to figure out how to do this :)
>
> sxmo_appmenu.sh defines a confirm function that you can use. If you
> search this file, it's used in a few places.
>
> p.s. make sure to keep ~mil/sxmo-devel@lists.sr.ht CC'd
thanks for the hint. added confirm dialog to all 3 entries. its attached
to this mail.