Warp Speed: Fluxbox Window Manager Shakedown

YDL running on the Sony Playstation 3

Moderator: billb

Warp Speed: Fluxbox Window Manager Shakedown

Postby tcrroadie » 19 May 2008, 17:30

So you have heard the word Fluxbox mentioned from time to time here on the forums and you ask yourself, "Just what is this Fluxbox thing". Well simply put, Fluxbox is an alternative GUI desktop environment like Enlightenment, Gnome and XFCE. Usually when you hear reference to Fluxbox, people will refer to Fluxbox as a Window Manager, which essentially it is. Fluxbox gives you the bare essentials needed to run and manage your application windows. This no frills approach allows Fluxbox to run at amazing speed by minimizing system resources used. That being CPU cycles and RAM.

And then you ask yourself, "Well, what does Fluxbox look like". See for yourself by clicking on the links below. The screeshots I have posted are actualy screen captures I took of Fluxbox running on my YDL 6 installation on my PS3.

Screen capture of the Fluxbox Menu.

http://farm4.static.flickr.com/3136/2494372403_ed305135a2_o.png

Screen capture of the file manager Thunar and music player Audacious.

http://farm4.static.flickr.com/3296/2494373005_70425e0ae9_o.png

As you can see from my screen captures that Fluxbox takes a very minimal approach. No desktop icons and a very minimal toolbar.

So lets talk a little on the basic usage of Fluxbox. To bring up the menu, you simply right click on the desktop. You can navigate the menu with either your mouse or keyboard. At the bottom of the screen you can see the toolbar which indicates that I am using the first workspace and have my media player Audacious minimized to the toolbar. I also have my toolbar configured to display the date and time in an easy to read format. Managing windows is very similar to that in Gnome and other environments. Right clicking on the window decorator will bring up a menu with additional options such as sending the selected window to another workspace.

Before we get to the installation and configuration of Fluxbox, I'll list some links to documentation and themes for Fluxbox.

Documentation on the configuration of Fluxbox can be found at the two links below.

Fluxbox Documentation at Sourceforge

Fluxbox Wiki

Themes for Fluxbox called Styles can be found here.

Box-Look.org

Now we will get Fluxbox installed and get you going with some basics on the configuration of Fluxbox. I'm not going to get to deep into the configuration of Fluxbox here since everything you will need to now is already documented in the links I posted above. Here we will concentrate on installing Fluxbox along with a few other addition applications and work through some example configuration files taken from my own YDL 6 installation. So lets install it already. Just use whatever method you are comfortable installing applications with. Here I will be using yum from the command line. In your terminal as your root user, lets install Fluxbox along with the file manager used in XFCE called Thunar, eterm for setting our desktop wallpaper and the music player Audacious.

Update 5-30-08. Fixed typo for package name Thunar.

Code: Select all
yum install fluxbox Thunar eterm audacious


Before we get carried away editing our configuration files, lets first back them up. All of the configuration files for Fluxbox are stored in a hidden directory located in your users Home directory called .fluxbox. In your terminal as your normal user run....

Code: Select all
cp -r ~/.fluxbox ~/.fluxbox.backup


Now that we have our original Fluxbox configuration files backed up, we can start playing around with setting up our Fluxbox menu and shortcut keys file. We are going to start off by using some configuration files taken from my system. Before we log out of our current desktop environment and log into Fluxbox, lets set up a few things first so we will have a good base to start with. Lets start off with grabbing a few Fluxbox themes (Styles) from http://www.box-look.org and get them installed to the proper location so that we have them available to use after we log into Fluxbox. After downloaded a few Styles just extract the files you downloaded using your file manager and place the new Styles in your .fluxbox/styles directory.

Next lets get on with setting up our Fluxbox menu. The configuration file for the Fluxbox menu is located in .fluxbox/menu. The configuration file for the menu is very easy to read and you will probably be able to figure out how to edit the menu just by reading the code in the file. You can find information on editing the menu here. To make things a little easier to begin with, lets copy the contents of my .fluxbox/menu file onto your system. You can always edit this file later or create your own menu file. Open up your .fluxbox/menu file with Gedit and delete all of the original text. Now copy and past the contents of my menu file listed below into Gedit.

Update 5-27-08. I have edited my menu file to include options for Boot-Game-OS and system shutdown.
Update 9-07-08. Major cleanup of menu file.
Code: Select all
[begin] (Fluxbox)
   [exec] (Firefox) {firefox}
   [exec] (Terminal) {gnome-terminal}
   [exec] (Thunar) {thunar}
   [exec] (Nautilus) {nautilus --no-desktop}
   [exec] (Audacious) {/usr/bin/audacious}
   [exec] (Rhythmbox) {/usr/bin/rhythmbox}
#  [exec] (Beep Media Player) {/usr/bin/beep-media-player}
#   [exec] (Streamtuner) {streamtuner}
   [exec] (VLC) {/usr/bin/vlc}
   [separator]
   [submenu] (Apps) {}
      [submenu] (Editors) {}
         [exec] (AbiWord Word Processor) {/usr/bin/abiword}
         [exec] (Gedit) {/usr/bin/gedit}
#         [exec] (OpenOffice Writer) {/usr/bin/oowriter}
      [end]
      [submenu] (Graphics) {}
         [exec] (Gnome Screenshot Tool) {/usr/bin/gnome-panel-screenshot}
         [exec] (The GIMP) {/usr/bin/gimp}
         [exec] (Gthumb Image Viewer) {gthumb}
#         [exec] (xsane) {/usr/bin/xsane}
      [end]
      [submenu] (Math) {}
         [exec] (Calculator) {/usr/bin/gcalctool}
#         [exec] (OpenOffice.org Calc) {/usr/bin/oocalc}
#         [exec] (OpenOffice.org Math) {/usr/bin/oomath}
      [end]
      [submenu] (Net) {}
         [exec] (Bittorrent) {/usr/bin/bittorrent}
         [exec] (Firefox Web Browser) {firefox}
         [exec] (Pidgin) {/usr/bin/gaim}
         [exec] (XChat) {/usr/bin/xchat-gnome}
#         [exec] (GFTP) {/usr/bin/gftp-gtk}
      [end]
#      [submenu] (Programming) {}
#         [exec] (Nvu) {/usr/bin/nvu} </usr/share/pixmaps/nvu.xpm>
#      [end]
      [submenu] (Shells) {}
         [exec] (Aterm) {/usr/bin/aterm} <>
         [exec] (Gnome Terminal) {/usr/bin/gnome-terminal}
         [exec] (XTerm) {xterm} <>
#         [exec] (Bash) { x-terminal-emulator -T "Bash" -e /bin/bash --login} <>
#         [exec] (Dash) { x-terminal-emulator -T "Dash" -e /bin/dash -i} <>
#         [exec] (Sh) { x-terminal-emulator -T "Sh" -e /bin/sh --login} <>
      [end]
      [submenu] (Sound & Video) {}
#         [exec] (Banshee) {/usr/bin/banshee}
#         [exec] (Beep Media Player) {/usr/bin/beep-media-player}
#         [exec] (Easytag) {/usr/bin/easytag}
#         [exec] (Gtkpod) {/usr/bin/gtkpod}
#         [exec] (K3B) {/usr/bin/k3b}
         [exec] (Listen) {/usr/bin/listen}
         [exec] (Mplayer) {/usr/bin/gmplayer}
         [exec] (Rhythmbox) {/usr/bin/rhythmbox}
         [exec] (Streamtuner) {streamtuner}
#         [exec] (Video::DVDRip) {/usr/bin/dvdrip}
         [exec] (VLC) {/usr/bin/vlc}
#         [exec] (XMMS) {/usr/bin/xmms}
    [exec] (Xine) {/usr/bin/gxine}
      [end]
      [submenu] (System) {}
         [exec] (Gnome Control Center) {gnome-control-center}
#    [exec] (GTK Theme Switcher) {/usr/bin/gtk-chtheme}   
#        [exec] (YDL Package Manager) {/usr/bin/gksu -u root /usr/sbin/pirut}
      [end]
      [submenu] (Text) {}
         [exec] (Dictionary) {/usr/bin/gnome-dictionary}
      [end]
      [submenu] (Viewers) {}
         [exec] (Evince) {/usr/bin/evince}
         [exec] (GThumb Image Viewer) {/usr/bin/gthumb}
      [end]
   [end]
   [submenu] (Games) {}
     [exec] (Atari 2600) {stella}
     [exec] (Neo Geo) {/usr/bin/xgngeo}
     [exec] (NES) {/usr/bin/gfceu}
     [exec] (SNES) {/usr/bin/snes9express}
     [exec] (Sega Genesis) {/usr/bin/xe}
     [exec] (TurboGrafx-16) {/usr/bin/xe}
    # [exec] (GameBoy Advance) {/usr/bin/gvba}
   [end]
   [submenu] (Fluxbox)
   [config] (Configuration)
   [submenu] (Styles) {}
#      [stylesdir] (/usr/share/fluxbox/styles)
      [stylesdir] (~/.fluxbox/styles)
   [end]
   [submenu] (Backgrounds)
      [submenu] (Walls)
      [wallpapers] (/home/kris/Wallpaper)
     [end]
   [end]
   [workspaces] (Workspaces)
   [exec] (Fbrun) {fbrun}
   [restart] (Restart)
   [end] 
#   [reconfig] (Reconfigure)
   [exec] (Lock Screen) {xlock -mode blank}
   [exec] (Boot Game OS) {/usr/bin/ps3-boot-game-os}
   [exec] (Shutdown) {/usr/bin/halt -p}
   [exit] (Exit)
[end]


If you page down near the bottom of the menu file you will see some code defining the path to or desktop wallpapers. It looks like this
Code: Select all
[submenu] (Backgrounds)
      [submenu] (Walls)
      [wallpapers] (/home/kris/Wallpaper)
     [end]


We can see that the path on my system is /home/kris/Wallpaper. Just edit this line to point to the location of your desktop wallpapers. Now save and close the file.

Now we will move onto a file that defines how certain aspects such as the width and size of the toolbar are set. Open .fluxbox/init and delete all of the original text and place the contents of my init file into your init file.
Code: Select all
session.screen0.tabs.intitlebar:   true
session.screen0.tabs.maxOver:   false
session.screen0.iconbar.wheelMode:   Screen
session.screen0.iconbar.iconTextPadding:   10l
session.screen0.iconbar.mode:   Workspace
session.screen0.iconbar.usePixmap:   true
session.screen0.iconbar.alignment:   Relative
session.screen0.iconbar.deiconifyMode:   Follow
session.screen0.iconbar.iconWidth:   70
session.screen0.menu.alpha:   255
session.screen0.toolbar.onhead:   0
session.screen0.toolbar.alpha:   255
session.screen0.toolbar.visible:   true
session.screen0.toolbar.height:   0
session.screen0.toolbar.maxOver:   false
session.screen0.toolbar.autoHide:   false
session.screen0.toolbar.layer:   Top
session.screen0.toolbar.widthPercent:   80
session.screen0.toolbar.tools:   workspacename, iconbar, systemtray, clock
session.screen0.toolbar.onTop:   False
session.screen0.toolbar.placement:   BottomCenter
session.screen0.window.focus.alpha:   255
session.screen0.window.unfocus.alpha:   255
session.screen0.titlebar.left:   Stick
session.screen0.titlebar.right:   Minimize Maximize Close
session.screen0.overlay.lineWidth:   1
session.screen0.overlay.lineStyle:   LineSolid
session.screen0.overlay.joinStyle:   JoinMiter
session.screen0.overlay.capStyle:   CapNotLast
session.screen0.tab.width:   64
session.screen0.tab.rotatevertical:   True
session.screen0.tab.placement:   TopLeft
session.screen0.tab.alignment:   Left
session.screen0.tab.height:   16
session.screen0.slit.alpha:   255
session.screen0.slit.layer:   Dock
session.screen0.slit.onhead:   0
session.screen0.slit.autoHide:   false
session.screen0.slit.onTop:   False
session.screen0.slit.maxOver:   false
session.screen0.slit.direction:   Vertical
session.screen0.slit.placement:   BottomRight
session.screen0.windowMenu:   
session.screen0.focusModel:   ClickFocus
session.screen0.menuMode:   Delay
session.screen0.edgeSnapThreshold:   0
session.screen0.resizeMode:   Bottom
session.screen0.fullMaximization:   false
session.screen0.clickRaises:   true
session.screen0.rootCommand:   fbsetbg -l   
session.screen0.menuDelay:   0
session.screen0.reversewheeling:   false
session.screen0.demandsAttentionTimeout:   500
session.screen0.windowScrollAction:   
session.screen0.userFollowModel:   Follow
session.screen0.workspaces:   4
session.screen0.workspacewarping:   true
session.screen0.autoRaise:   false
session.screen0.tabFocusModel:   ClickToTabFocus
session.screen0.opaqueMove:   true
session.screen0.antialias:   true
session.screen0.workspaceNames:   one,two,three,four,
session.screen0.strftimeFormat:   %b %d %l:%M
session.screen0.decorateTransient:   false
session.screen0.rowPlacementDirection:   LeftToRight
session.screen0.colPlacementDirection:   TopToBottom
session.screen0.windowScrollReverse:   false
session.screen0.allowRemoteActions:   false
session.screen0.focusLastWindow:   true
session.screen0.followModel:   Ignore
session.screen0.imageDither:   false
session.screen0.showwindowposition:   true
session.screen0.menuDelayClose:   0
session.screen0.windowPlacement:   RowSmartPlacement
session.screen0.defaultDeco:   NORMAL
session.screen0.focusNewWindows:   true
session.screen0.desktopwheeling:   true
session.doubleClickInterval:   250
session.ignoreBorder:   false
session.focusTabMinWidth:   0
session.tabPadding:   0
session.slitlistFile:   ~/.fluxbox/slitlist
session.forcePseudoTransparency:   false
session.autoRaiseDelay:   250
session.styleOverlay:   ~/.fluxbox/overlay
session.modKey:   Mod1
session.configVersion:   1
session.menuFile:   ~/.fluxbox/menu
session.tabsAttachArea:   Window
session.imageDither:   True
session.colorsPerChannel:   4
session.tabs:   true
session.cacheMax:   200
session.cacheLife:   5
session.keyFile:   ~/.fluxbox/keys
session.numLayers:   13
session.groupFile:   ~/.fluxbox/groups
session.styleFile:   /home/kris/.fluxbox/styles/darkmystic
session.appsFile:   ~/.fluxbox/apps
session.opaqueMove:   False


The init file can be edited by hand or from the Fluxbox menu by right clicking on the desktop to bring up the menu and selecting Fluxbox > Configuration. Now save and close the init file.

Lets move onto the configuration file that defines the keyboard shortcuts in Fluxbox called .fluxbox/keys. This is were Fluxbox really shines. You can edit this file to define a specific key binding to bring up the Fluxbox menu or launch an application. You can find information on editing this file here. Lets take a look at my .fluxbox/keys file.
Code: Select all
!mouse actions added by fluxbox-update_configs
OnDesktop Mouse1 :hideMenus
OnDesktop Mouse2 :workspaceMenu
OnDesktop Mouse3 :rootMenu
OnDesktop Mouse4 :nextWorkspace
OnDesktop Mouse5 :prevWorkspace

Mod1 Tab :NextWindow
Mod1 Shift Tab :PrevWindow
Mod1 F1 :ExecCommand firefox
Mod1 F2 :ExecCommand gnome-terminal
Mod1 F3 :ExecCommand thunar
Mod1 F4 :ExecCommand vmware
Mod1 F5 :ExecCommand xmms
Mod1 F6 :ExecCommand streamtuner
Mod1 F7 :ExecCommand xchat-gnome
Mod1 F8 :Workspace 8
Mod1 F9 :Workspace 9
Mod1 F10 :Workspace 10
Mod1 F11 :Workspace 11
Mod1 F12 :Workspace 12
Mod1 Right :NextWorkspace
Mod1 Left :PrevWorkspace
Mod1 Up :RootMenu
#Mod1 Down :ShowDesktop
Mod1 Control Down :Minimize

Mod1 refers to the Alt key on the keyboard. As you can see, we can switch desktops by pressing Alt + Right arrow key or Alt + Left arrow key. You can bring up the Fluxbox menu by pressing Alt + Up arrow on the keyboard. We can also quickly launch Firefox by pressing Alt + F1. You can edit this file to suite your own taste. After you have finished with any changes you would like to make to your keys file, save the file and we will move onto the configuration file that sets fonts and font sized used by Fluxbox.

This file is called .fluxbox/overlay.
Code: Select all
menu.frame.font:
menu.title.font: Bitstream Vera Sans-12
toolbar.clock.font: Bitstream Vera Sans-12
toolbar.workspace.font: Bitstream Vera Sans-12
toolbar.iconbar.focused.font: Bitstream Vera Sans-12
toolbar.iconbar.unfocused.font: Bitstream Vera Sans-12
window.font: Bitstream Vera Sans-12

Here we can set the font used for the menu, window title and toolbar. The font size listed here (12) is what I use on my 720p television, so if you are using a higher screen resolution, you may want to increase the font size.

We only have one more file left to configure and then we are done. This last file is called .gtkrc-2.0 and is found in your /home/username directory. This file sets the GTK theme used for GTK applications such as Firefox and Thunar, the icon theme used and the font type and size. Lets take a look at it.
Code: Select all
gtk-font-name = "Bitstream Vera Sans 12"
gtk-theme-name = "SlicknesS"
gtk-icon-theme-name = "black-white_2-Style"

We can see that my GTK applications will be set with a Bitstream Vera Sans font with a font size of 12. The GTK theme used will be "SlicknesS" and the icon theme used will be "black-white_2-Style". For practice lets set up or system with these themes.

You can download the GTK theme SlicknesS from here. Extract the file you download using your file manager. You will need to extract it two times on this one. Now copy the directory SlicknesS to your .themes directory.

Code: Select all
cp -r ~/SlicknesS ~/.themes


You can download and copy any GTK+2 theme that you would like to use to your .themes directory. Now lets download and install the icon theme black-white_2-Style. You can grab it here. Again, you will need to extract this one 2 times since the actual directory we need that contains the font theme is located in a sub directory. Now copy the directory black-white_2-Style to your .icons directory.

Code: Select all
cp -r ~/black-white_2-Style ~/.icons


Thats it. What we have done so far should give us a good starting point for using Fluxbox. We can finally log out of our current working environment and select Fluxbox from the Sessions menu located in the login manager (GDM). Now login and enjoy some lightning fast speed. Did you notice how much faster Fluxbox started after you logged in compared to that of Gnome or XFCE? Now right click on the desktop to bring up the menu and open the file manager. The file manager started up pretty fast didn't it?

I hope that this guide helped explain as easily as possible, how to get Fluxbox installed and get a basic configuration going. Again, I strongly recommend that new users to Fluxbox read through the documentation that I linked to at the begining of this guide. Have fun, and I hope that you come to love Fluxbox as much as I do.
Last edited by tcrroadie on 10 Oct 2008, 18:11, edited 5 times in total.
User avatar
tcrroadie
ydl guru
ydl guru
 
Posts: 235
Joined: 12 May 2008, 17:44
Location: Dirt Poor Michigan, U.S.A

Re: Warp Speed: Fluxbox Window Manager Shakedown

Postby billb » 19 May 2008, 18:13

Awesome post! Great guide -- added to README sticky. Thanks!
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Re: Warp Speed: Fluxbox Window Manager Shakedown

Postby tcrroadie » 19 May 2008, 19:10

billb wrote:Awesome post! Great guide -- added to README sticky. Thanks!


Thanks billb. So are you going to give Fluxbox a try?
User avatar
tcrroadie
ydl guru
ydl guru
 
Posts: 235
Joined: 12 May 2008, 17:44
Location: Dirt Poor Michigan, U.S.A

Re: Warp Speed: Fluxbox Window Manager Shakedown

Postby billb » 19 May 2008, 19:32

tcrroadie wrote:
billb wrote:Awesome post! Great guide -- added to README sticky. Thanks!


Thanks billb. So are you going to give Fluxbox a try?


Yes -- there's a game (OpenBOR) that has some memory issues and I want to try it out with more memory available. Not sure if I'll get to it today, but I'll check it out.
PS3 60GB [CECHA01], FW 3.15, YDL 6.2, Samsung T260HD @ 1920x1200
Powermac G4 1.25 GHz x2, 2 GB RAM, YDL 6.2
User avatar
billb
Site Admin
Site Admin
 
Posts: 5522
Joined: 24 May 2007, 20:30
Location: Eastern NC, USA

Postby marlowe650 » 19 May 2008, 20:08

Great job on the guide, you've performed a wonderful service to the PS3 YDL community. A couple of suggestions though:

To make things a little easier to begin with, lets copy the contents of my .fluxbox/menu file onto your system. You can always edit this file later or create your own menu file. Open up your .fluxbox/menu file with Gedit and delete all of the original text. Now copy and past the contents of my menu file listed below into Gedit.


While this does make the process of setting up menus simple and easy, your config file is very specific to your system, setup, and suite of programs (some of which are common, others not so much). A more streamlined solution for those who want a quick and dirty menu setup so they can immediatley start working with fluxbox, is to use fluxbox's built-in menu generator. Just open a terminal anywhere and type:

Code: Select all
 fluxbox-generate_menu


note: this will automatically search for paths to commonly used applications and set up your menus accordingly. But for best results, you should set them up yourself, the custimization is one of fluxbox's most attractive features.

On a separate note, perhaps it should be made clearer that certain steps in your guide (such as changes to the init file, and the changing of GTK themes) are optional and not necesary to the proper functioning of fluxbox itselt.

But once again, great work on the guide and thanks for taking the time to put it together.
marlowe650
ydl newbie
ydl newbie
 
Posts: 13
Joined: 24 Mar 2008, 14:42

Postby tcrroadie » 19 May 2008, 21:42

Thanks for the feedback marlowe650. You do make a valid point regarding the Fluxbox Menu. It did cross my mind to possible make a point about using the tool to automatically generate the menu, but then two things crossed my mind. One, if I remember correctly, when you install Fluxbox, a menu is automatically generated for you. I could be wrong on this, I have been using my custom made menu for almost 2 years. If so, the original menu will be saved in the .fluxbox.backup directory we created from following the guide. Second, in my opinion the menu that is automatically generated is a little messy and one should really learn from the get go what it takes to properly edit their Fluxbox Menu.

You do also make a very valid point regarding the .fluxbox/init file as well and maybe I will add a note to my guide. As for the .gtkrc-2.0 file, unless you want to be staring at an ugly Firefox or Thunar window because the given app does'nt have a GTK theme or Icon theme set, you really need to know how to set your application themes. I felt this really needed to be addressed from the get go. I can remember the first time I installed and started up Fluxbox and launched my file manager. I said, "WTF, Nautilus looks like $h!te". It probably took me a good hour of Googling to figure out how to set my GTK themes. If a first time Fluxbox user follows my guide and sets their GTK themes before starting up Fluxbox for the first time, I think they would feel more comfortable than staring at a basic default GTK widget set. First impressions are everything.

Thanks again for adding your input marlowe650.
User avatar
tcrroadie
ydl guru
ydl guru
 
Posts: 235
Joined: 12 May 2008, 17:44
Location: Dirt Poor Michigan, U.S.A

Postby Jae » 19 May 2008, 22:49

Hey, thanks for posting a how to on fluxbox.. Since i already yum'd fluxbox i figure i give it a try ... I'm currently using fluxbox theres absolutely nothing on desktop I did however found terminal i already untar one of the files using option xzvf and it went well i'm in process in gzip the other file using option d but, terminal is telling me that there is a suffix issue any ideas?
-Jae



PS3 60GB F/W 2.30 1080p YDL 6.1
Jae
ydl lover
ydl lover
 
Posts: 51
Joined: 14 May 2008, 06:35

Postby tcrroadie » 19 May 2008, 23:37

Jae wrote:Hey, thanks for posting a how to on fluxbox.. Since i already yum'd fluxbox i figure i give it a try ... I'm currently using fluxbox theres absolutely nothing on desktop I did however found terminal i already untar one of the files using option xzvf and it went well i'm in process in gzip the other file using option d but, terminal is telling me that there is a suffix issue any ideas?


Hi Jae. Can you list the file you are trying to extract?

You can also use a GUI file decompressor called File Roller. I think it should allready be installed on your system. In your terminal to start File Roller run

Code: Select all
file-roller


If File Roller is not installed you can do so using yum.

Code: Select all
yum install file-roller


Sorry I am on my Ubuntu laptop at the moment so I cannot verify the correct file name to use for yum.
User avatar
tcrroadie
ydl guru
ydl guru
 
Posts: 235
Joined: 12 May 2008, 17:44
Location: Dirt Poor Michigan, U.S.A

Postby citizenchris099 » 20 May 2008, 02:18

edited the menu file just like you said (copeid and pasted) and when I log into fluxbox i still only have the default menu.
everything is not going to be ok
User avatar
citizenchris099
ydl guru
ydl guru
 
Posts: 225
Joined: 05 Apr 2008, 17:17
Location: Dallas

Postby tcrroadie » 20 May 2008, 12:11

citizenchris099 wrote:edited the menu file just like you said (copeid and pasted) and when I log into fluxbox i still only have the default menu.


Your .fluxbox/init file may be looking for the config file for your menu in the wrong location. Check your .fluxbox/init file and make sure this line points to the location of the menu file that you are using. Should be near the end of the init file.

Code: Select all
session.menuFile:   ~/.fluxbox/menu
User avatar
tcrroadie
ydl guru
ydl guru
 
Posts: 235
Joined: 12 May 2008, 17:44
Location: Dirt Poor Michigan, U.S.A

Postby citizenchris099 » 20 May 2008, 13:14

will take a look at that when I get home. why would it be looking in a dif location....is there another area that stores a menu file?
I tried the auto menu bit and it seemed to work ok. though I seriously need the ability to edit menus.
also the shortcut keys you had me change didnt take either.

tcrroadie...what do you think of these fluxbox menu editing programs....helps you set up the menu etc...
everything is not going to be ok
User avatar
citizenchris099
ydl guru
ydl guru
 
Posts: 225
Joined: 05 Apr 2008, 17:17
Location: Dallas

Postby tcrroadie » 20 May 2008, 17:55

citizenchris099 wrote:will take a look at that when I get home. why would it be looking in a dif location....is there another area that stores a menu file?
I tried the auto menu bit and it seemed to work ok. though I seriously need the ability to edit menus.
also the shortcut keys you had me change didnt take either.

tcrroadie...what do you think of these fluxbox menu editing programs....helps you set up the menu etc...


The best way to find out were Fluxbox is looking for your menu config file is to check your .fluxbox/init file.

Code: Select all
less ~/.fluxbox/init


Check the path listed for this line

Code: Select all
session.menuFile:       ~/.fluxbox/menu


You can also do the same for your .fluxbox/keys file. Look for this line in your .fluxbox/init file
Code: Select all
session.keyFile:        ~/.fluxbox/keys


Remember that for simplicity sake we like to store all configuration files relating to Fluxbox in our .fluxbox directory which is located in your Home directory. Also remember that any directory or filename with a dot (.) in front of it, is a hidden directory or file. As an added note, the code ~/ is shorthand for your users home directory. For example writing "~/.fluxbox/menu" is the same as writing "/home/username/.fluxbox/menu".

Also, sometimes when you make a change to your .fluxbox/menu file, in order for the change you make to take affect you may need to refresh Fluxbox by clicking on "Restart" located in your Fluxbox main menu. If any change is made to your .fluxbox/init file you will need to "Restart" Fluxbox in order for the changes to take effect. If you still end up having problems you can always list the contents of your .fluxbox/menu, .fluxbox/init and .fluxbox/keys files so we can take a look at them.

As for your question regarding the GUI menu editing tools that are available, to be honest with you, I haven't used one in almost two years. I think that as you begin talking with other Fluxbox users, they will tell you that they just edit their menus by hand. The code is really very easy to read and pick up, and with some practice you will be editing your menu my hand quickly like a pro. Some Fluxbox users have also stated that some of the GUI menu editors are a little buggy and just end up borking their menus when trying to add an entry.
User avatar
tcrroadie
ydl guru
ydl guru
 
Posts: 235
Joined: 12 May 2008, 17:44
Location: Dirt Poor Michigan, U.S.A

Postby JiZames » 20 May 2008, 21:01

Awesome guide, tcrroadie! I gave Fluxbox a shot and I'm loving it so far, it actually makes the PS3 feel as if it's running Linux at full speed!...well, almost. :lol:

I have a few issues though. I copied and pasted the "yum install" apps you mentioned but protectbase didn't let Thunar install...I logged into root from the login screen and just installed it via Add Software from the panel instead. Do I need to have XFCE installed for it to work properly within Fluxbox?

The other issue is when I ran Pidgin, I mistakingly maximized the window when I meant to close it out...clicking it again doesn't resize it back into a smaller window and I can't figure out how to resize the window at all. lol It's quite a noob-ish thing for me to not figure how to resize a window, but I'm stumped.

The last issue isn't so much a big deal, since it came be simply edited out, but the Restart menu command just closes out the toolbar and leaves you just staring at your wallpaper. The only way I was about to get out of it was to hit CTRL+ALT+F4, which brought up the terminal and reboot.

EDIT: Whoops! Problems all solved, chalk one up for slight stupidity on my part. haha I installed Thunar, but completely overlooked the Thunar-devel files, installing them has it working perfectly now. As for the window resizing problem, I think the theme I had it in wasn't letting me see the mouse icon change when I got it to the corner of the window...so everything's cool thus far. :D
Last edited by JiZames on 20 May 2008, 21:29, edited 1 time in total.
JiZames
ydl lover
ydl lover
 
Posts: 53
Joined: 16 May 2007, 01:34

Postby tcrroadie » 20 May 2008, 21:28

Awesome guide, tcrroadie! I gave Fluxbox a shot and I'm loving it so far, it actually makes the PS3 feel as if it's running Linux at full speed!...well, almost. Laughing


Glad to hear you are liking Fluxbox so far JiZames.

I have a few issues though. I copied and pasted the "yum install" apps you mentioned but protectbase didn't let Thunar install...I logged into root from the login screen and just installed it via Add Software from the panel instead. Do I need to have XFCE installed for it to work properly within Fluxbox?


Weird. I don't recall how I installed Thunar on my system. I could have sworn I installed it from the command line. Possibly you yum was trying to grab a newer version than protectbase would allow. And no, you do not need to have the XFCE desktop installed for Thunar.

The other issue is when I ran Pidgin, I mistakingly maximized the window when I meant to close it out...clicking it again doesn't resize it back into a smaller window and I can't figure out how to resize the window at all. lol It's quite a noob-ish thing for me to not figure how to resize a window, but I'm stumped


This could be due to the Fluxbox Style that you are using. I have noticed that some styles such as a style called Blackened that I like to use, are so clean that that do not have a means to simply left click on a window edge and resize the window. Try changing the Style that you are using. There may me a keyboard shortcut that can be set, but I am so lazy, that I have not looked into it yet.

The last issue isn't so much a big deal, since it came be simply edited out, but the Restart menu command just closes out the toolbar and leaves you just staring at your wallpaper. The only way I was about to get out of it was to hit CTRL+ALT+F4, which brought up the terminal and reboot.


This is really weird since I know I have refreshed Fluxbox on my YD6 installation by using Restart from the menu and it has worked eveytime for me. Maybe you can have a look in your .xsession-errors log located in your home directory.
User avatar
tcrroadie
ydl guru
ydl guru
 
Posts: 235
Joined: 12 May 2008, 17:44
Location: Dirt Poor Michigan, U.S.A

Postby JiZames » 20 May 2008, 21:36

haha You beat me by one minute! Just edited my last post with the solutions to the problems, you were completely on point with the style issue. I definitely appreciate the quick reply! I'll give the .xsession-errors log a look in a bit to see if it pulled up anything.
JiZames
ydl lover
ydl lover
 
Posts: 53
Joined: 16 May 2007, 01:34

Next

Return to Playstation 3

Who is online

Users browsing this forum: No registered users and 83 guests