You are not logged in.

#1 2012-01-24 13:38:12

Kruppt
Moderator
From: Blue Ridge Mountains, NC
Registered: 2010-12-20
Posts: 299

FluxBox Related Programs

Fbmenugen is yet another menu generation program for Fluxbox. The generated menu file will include menu icons and will make a backup of any existing menu list file. Needs to be installed via packer as it is in AUR. Fbmenugen is configurable.

aur/fbmenugen 0.6.6-1
Fluxbox Menu Generator - A simple Perl script to generate the right-click Fluxbox menu

To create menu with icons for user, run below command from a user term/shell

fbmenugen -i

This menu generation program can be configured to enact your own menu choices upon menu generation.
Edit the below code box example to use your username and your text editor choice in the path statements, and insert code into your Fluxbox menu in the appropriate location.

      [submenu] (Configure menu) </home/YOURUSER/.config/fbmenugen/icons/Configure menu.png>
         [exec] (Edit fbmenugen's configuration) {xterm -e nano /home/YOURUSER/.config/fbmenugen/fbmenugen.conf} </home/YOURUSER/.config/fbmenugen/icons/default-icon.png>
         [exec] (Edit fbmenugen's menu) {xterm -e nano /root/.fluxbox/menu} </home/YOURUSER/.config/fbmenugen/icons/default-icon.png>
         [exec] (Edit fbmenugen's schema) {xterm -e nano /home/YOURUSER/.config/fbmenugen/fbmenugen.schema} </home/YOURUSER/.config/fbmenugen/icons/default-icon.png>
      [end]

After installing fbmenugen be sure to edit the configuration files to your preferences.

Fbrun is a simple run/commandline utility program. Alt-F2 keyboard shortcut will bring up the quick small command utilty, or place

         [exec](Run...){fbrun}<>

in your Fluxbox menu to run fbrun with a mouse click.

aur/fbrun 1.5-5
A simple run utility from Fluxbox

Found these browsing around, have not tried them myself.

Fluxbox Tray Menu
http://sourceforge.net/projects/ftmenu/

Denu is aimed at easing menu organization over a set of varying window managers
http://denu.sourceforge.net/

Genmenu is a script capable of generating menus for Blackbox, Fluxbox, Openbox, WindowMaker and Enlightenment
http://f00l.de/genmenu/

Python script for converting all the .desktop contents of /usr/share/applications/
into the Fluxbox menu, following the sequence used from the Gnome menu.
http://box-look.org/content/show.php/gn … tent=84857

Last edited by Kruppt (2012-01-30 19:28:51)

Offline

#2 2012-01-24 14:24:50

Kruppt
Moderator
From: Blue Ridge Mountains, NC
Registered: 2010-12-20
Posts: 299

Re: FluxBox Related Programs

Fluxbox Zenity shutdown, reboot,logout script.

For reference.
http://bbs.archbang.org/viewtopic.php?id=279


Copy/Paste this below in appropriate location in fluxbox menu file.

		[exec] (Exit) {exit.sh}

From a root terminal run below commands at the bash prompt to create a empty script file,
Make the file executive,
open the empty script file with a GUI text editor, (leafpad in this example)
Then Copy and paste the script code in last code box to the exit.sh file, save file changes.

touch /usr/bin/exit.sh
chmod 700 /usr/bin/exit.sh
leafpad /usr/bin/exit.sh

Script Modified to work with Fluxbox.

#!/bin/bash
# Multiple Exit Script using Zenity for non GDM installs
# Requires zenity and an edit to sudoers to allow all users to use the shutdown command
# As follows:
#
# Open a terminal
# EDITOR=nano
# sudo visudo
# Scroll to bottom of file and add this: (not the #)
# ALL ALL=NOPASSWD:/sbin/shutdown
#
######## This part is the Exit Type picker  ##########

title="EXIT: What do you want to do ?"
exit_type=`zenity  --width="530" --height="220" --title="$title" --list --radiolist --column="Click Here" \
    --column="Exit Type" --column="Description" \
    TRUE "Logout" "Log Current User out and return to Login Screen"\
    FALSE "Reboot" "Reboot the PC"\
    FALSE "Shutdown" "Shutdown the PC"\
    FALSE "Cancel" "Cancel the Exit" \
    | sed 's/ max//g' `

echo "$exit_type chosen as the Exit Type!."

#user must select a target type (Check if they cancelled)
if [ ! "$exit_type" ]; then
    zenity --error --title="Error" --text="You must make a selection!"
    exit
fi

######### This part takes the selection and applies it!  #############

# Edit this first section if not using openbox! #
if [ "$exit_type" = "Logout" ]
then
        # Do logout here.
kill -TERM $(xprop -root _BLACKBOX_PID | awk '{print $3}')
#        openbox --exit && sleep 1 | zenity --progress --percentage=95 --title=Logout --auto-close --auto-kill --no-cancel --width=300

elif [ "$exit_type" = "Reboot" ]
then
        # Do Reboot here.
        sudo shutdown -r now | zenity --progress --percentage=95 --title=Reboot --auto-close --auto-kill --no-cancel --width=300

elif [ "$exit_type" = "Shutdown" ]
then
        # Do Shutdown here.
    sudo shutdown -h now | zenity --progress --percentage=95 --title=Shutdown --auto-close --auto-kill --no-cancel --width=300

else

#if [ "$exit_type" = "Cancel" ]
#then
        # Do Cancel here.
    sleep 1 | zenity --progress --percentage=95 --title=Cancelling Exit --auto-close --auto-kill --no-cancel --width=300
fi 

Offline

#3 2012-01-25 02:17:53

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: FluxBox Related Programs

Is there a gtk2 version?

Last edited by Mr Green (2012-01-25 02:21:40)


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#4 2012-01-25 03:23:44

ArchVortex
Retired
From: Ts’elxweyeqw, Canada
Registered: 2011-04-01
Posts: 1,465

Re: FluxBox Related Programs

Excellent!! Thanks Kruppt!! This will go in Fluxar.


You have the capacity to learn from mistakes. You'll learn a lot today.
FP:E5F8 7DBA 8128 9ACB 75F7 7279 BE34 AB66 76D9 16DE
KEY ID:76D916DE
Currently running ArchBang / LFS / OpenSUSE Tumbleweed

Offline

#5 2012-01-25 04:40:57

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: FluxBox Related Programs

#!/bin/bash
# Multiple Exit Script using Zenity for non GDM installs
# Requires zenity and an edit to sudoers to allow all users to use the shutdown command
# As follows:
#
# Open a terminal
# EDITOR=nano
# sudo visudo
# Scroll to bottom of file and add this: (not the #)
# ALL ALL=NOPASSWD:/sbin/shutdown
#
######## This part is the Exit Type picker  ##########

title="EXIT: What do you want to do ?"
exit_type=`zenity  --width="530" --height="220" --title="$title" --list --radiolist --column="Click Here" \
    --column="Exit Type" --column="Description" \
    TRUE "Logout" "Log Current User out and return to Login Screen"\
    FALSE "Reboot" "Reboot the PC"\
    FALSE "Shutdown" "Shutdown the PC"\
    FALSE "Cancel" "Cancel the Exit" \
    | sed 's/ max//g' `

echo "$exit_type chosen as the Exit Type!."

#  Is this even needed?
function button_command()
{
local title=$1
zenity --progress --percentage=95 --title=$(title) --auto-close --auto-kill --no-cancel --width=300
}


#user must select a target type (Check if they cancelled)
if [ ! "$exit_type" ]; then
    zenity --error --title="Error" --text="You must make a selection!"
    exit
fi

######### This part takes the selection and applies it!  #############

# Edit this first section if not using openbox! #
if [ "$exit_type" = "Logout" ]
then
        # Do logout here.
        openbox --exit && sleep 1 | button_command $(exit_type)

elif [ "$exit_type" = "Reboot" ]
then
        # Do Reboot here.
        sudo shutdown -r now | button_command $(exit_type)

elif [ "$exit_type" = "Shutdown" ]
then
        # Do Shutdown here.
    sudo shutdown -h now | button_command $(exit_type)

else

#if [ "$exit_type" = "Cancel" ]
#then
        # Do Cancel here.
    sleep 1 | button_command $(exit_type)
fi 

Added button_command function [set for Openbox at the moment]

Last edited by Mr Green (2012-01-25 04:41:55)


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#6 2012-01-25 14:26:48

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,633
Website

Re: FluxBox Related Programs

Very useful; every functionality that we like in relation to OB, we should try to find for Fluxbox.


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#7 2012-01-25 16:00:40

Kruppt
Moderator
From: Blue Ridge Mountains, NC
Registered: 2010-12-20
Posts: 299

Re: FluxBox Related Programs

The Slit
http://fluxbox.sourceforge.net/docbook/ … -slit.html
https://wiki.archlinux.org/index.php/Fl … e#The_slit
https://wiki.archlinux.org/index.php/Fluxbox#The_Slit

Dock Apps that can be used in the Slit
http://web.cs.mun.ca/~gstarkes/wmaker/dockapps/
http://dockapps.windowmaker.org/list.php/cat_id/4

GKrellM
http://members.dslextreme.com/users/bil … rellm.html
For the long list

packer -Ss GKrellM

Wmdrawer installable from AUR
http://people.easter-eggs.org/~valos/wm … creenshots
For example configuration
http://forum.vectorlinux.com/index.php?topic=5767.0 POST #9

Wbar installable from AUR

community/wbar 2.2.2-1 [0.23 MB]
    A quick launch bar developed with speed in mind
aur/wbarconf 0.7.2.1-1
    Configuration GUI for wbar written in Python and GTK
aur/wbar_util 1.0-1
    A large Configuration GUI for wbar written in Python and GTK

Screen Shots of Fluxbox using Wbar in slit through out this page.
http://antix.freeforums.org/antix-11-t2903-15.html
Example Configuration at bottom of page here:
http://antix.freeforums.org/antix-11-t2903.html
Below was copied from above link

Here are the steps that I used to run lxpanel and wbar

1) open ~/.fluxbox/init in leafpad or another editor and found the line
Code:
session.screen0.toolbar.tools:   workspacename, prevworkspace, nextworkspace, iconbar, systemtray, prevwindow, nextwindow, clock

remove iconbar and system tray from the line so it looks similar to this
Code:
session.screen0.toolbar.tools:   workspacename, prevworkspace, nextworkspace, prevwindow, nextwindow, clock

2) edited ~/.fluxbox/startup and added the lines ( can be done using add-start in M11 )
Code:
sleep 2 && lxpanel &
sleep 6 && wbar &

the sleeps are added to allow my slow machine time to set wallpaper, fluxbox menu / taskbar, etc... Without the sleeps wbar will need to be refreshed to match background and lxpanel may not have a working system tray. If you find you need to refresh wbar, or there is no system tray in lxpanel, then increase the sleep times.

As for the slit, I have not seen a need to delete it, probably because I have not yet figured out how it works :-)

EDIT
As a side note I have found that applications that were maximized before having lxpanel would maximize under lxpanel. To solve the issue I had set lxpanel to autohide, setting it to a lower layer via ~/.fluxbox/apps also helps resolve the issue but will not resolve it completely .
Here is the code from ~/.fluxbox/apps
Code:
[app] (name=lxpanel)
  [Tab]      {no}
  [Deco]   {NONE}
  [Hidden]   {yes}
  [Layer]   {2}
[end]


Dock Apps in AUR that can possibly be used in slit

aur/wmdiskmon 0.0.2-3
aur/wmclockmon 0.8.1-4
aur/wmnd 0.4.13-5
aur/wmget 0.6.0-1
    wmget is a dock app for the Window Maker  window manager which makes it more convenient to perform long downloads in the backgro
aur/wmclock 1.0.14-1
aur/wmappl 0.71-4
    wmappl is a simple scrolling application launcher for the WindowMaker dock
aur/wmldonkey 0.3.4-2
aur/wmcliphist 1.0-1
aur/wmxmms2 0.6-1
aur/wmfire 1.2.4-2
aur/wmsystray 0.1.1-3
    perl module, Wharf::JDockApp, for windowmaker dockapplets
aur/wmcdplayer 1.0-1
    wmcdplayer is smart dockapp to play CD-AUDIO from any CD-ROM device you have installed
aur/wmmemfree 0.7-1
aur/wmbatteries 0.1.3-3
    a dockapp based on wmacpiload
aur/wmtimer 2.92-1
aur/wmbinclock 0.5-1
aur/wmhdplop 0.9.8-4
    wmhdplop is yet another dockapp to monitors your hard-drives
aur/pywmdockapps 1.21-2
aur/wmcalclock 1.25-3
aur/xfce4-wmdock-plugin 0.3.2-1
aur/wmswallow 0.6.1-1
aur/wmmp 0.10.0-1
    mpd client dockapp for windowmaker or compatible
aur/wmbiff 0.4.27-1
aur/wmdocklib 1.21-2
    Library for windowmaker dockapps using python.
aur/wmmoonclock 1.27-1
aur/wmwave 0.4-1
aur/wmcpuload 1.0.1-1
aur/wmwifi 0.6-2
aur/wmxmms-spectrum 0.5-2
aur/wmtime 1.0b2-2
aur/wmbattery 2.40-1
aur/wmpiki 0.2.1-1
aur/wmc2d 2.01-1
aur/wmauda 0.7-1
aur/wmlenovo 0.1.4-1
aur/wmnetload 1.3-1
aur/wmsystemtray 1.2-1
aur/wmcalc 0.3-2
aur/wmdrawer 0.10.5-1
aur/wmix 3.1-4
aur/wmtrash 0.2-1
aur/wmweather+ 2.13-1
aur/wmsmpmon 3.1-1
aur/wmacpi 2.2rc5-1
aur/wmcpu 1.4-1

Last edited by Kruppt (2012-01-25 16:28:50)

Offline

Board footer

Powered by FluxBB