IRC #fluxbox question

VastOne

I saw this posed on the Freenode IRC #fluxbox channel and it peaked my interest

Quote
Hello

To those that might know 'Zenity', I'm using 'Yad', same idea, making a GUI from bash scripts. So there's one out there for having a logout gui and when I place it in the 'menu' as; [exec] (Exit)  {~/.fluxbox/scripts/exit.sh} this works, but if I place it in the 'keys' as; Mod1 F12 :ExecCommand ~/.fluxbox/scripts/exit.sh  it's not working, when I click to logout I just stay in flux 
This is the script; http://dpaste.com/2G2RTF0
Not sure I don't log out when using the keys... hmm
Why won't 'Mod1 F12 :ExecCommand ~/.fluxbox/scripts/exit.sh' run the log out cmd in the script? Logout*) cmd="killall fluxbox"

Script

#! /bin/bash

action=$(yad --width 300 --entry --title "System Logout" \
    --window-icon=gnome-shutdown \
    --image=gnome-shutdown \
    --button="gtk-ok:0" --button="gtk-close:1" \
    --text "Choose action:" \
    --entry-text \
    "Logout" "Reboot" "Power Off")
ret=$?

[[ $ret -eq 1 ]] && exit 0

case $action in
    Logout*) cmd="killall fluxbox" ;;
    Reboot*) cmd="sudo /sbin/reboot" ;;
    Power*) cmd="sudo /sbin/poweroff" ;;
            *) exit 1 ;;
        esac

eval exec $cmd
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

Additional info provided by EggFile

Quote
btw, what I noticed is if I run Mod1 F12 twice, and click on it twice, then it logs me out, if that helps any,...
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

#2
Did you attempt to use the script?

It's working fine for me.

First thing that comes to mind is an issue with his mouse click speed/time (in yad at least) - I've had similar issues with fvwm (but not fluxbox) where I had to change the mouse click speed setting. I know there is a doubleclick speed setting in ~/.fluxbox/init, but I'm not sure about clickspeed.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

Noibayaka

At this time, until we find out what it is not, then I will give it further at all.