Author Topic: IRC #fluxbox question  (Read 875 times)

VastOne

  •      v-ger
  • Posts: 3894
    • View Profile
    • VSIDO Community
IRC #fluxbox question
« on: February 19, 2016, 12:25:10 AM »
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

Code: [Select]
#! /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 Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

VastOne

  •      v-ger
  • Posts: 3894
    • View Profile
    • VSIDO Community
Re: IRC #fluxbox question
« Reply #1 on: February 19, 2016, 12:41:58 AM »
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 Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

PackRat

  • Posts: 1847
    • View Profile
Re: IRC #fluxbox question
« Reply #2 on: April 11, 2016, 11:28:53 PM »
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

  • Noibayaka
  • Posts: 2
    • View Profile
Re: IRC #fluxbox question
« Reply #3 on: August 31, 2016, 12:02:47 PM »
At this time, until we find out what it is not, then I will give it further at all.