Archive

Posts Tagged ‘fluxbox’

Restart fluxbox off the command line

May 7, 2015 1 comment

Problem:
When switching between 1 and 2 screens, I kept on manually having to restart fluxbox.

Solution:
fluxbox-remote command allows me to restart fluxbox using a script. As I already have a script that does the switching between 1 and 2 screens this was pretty neat.

To configure
1. Edit ~/.fluxbox/init change

session.screen0.allowRemoteActions: false
to
session.screen0.allowRemoteActions: true

2. Restart fluxbox using the menu.

3. Open a terminal and run the following command

$ fluxbox-remote restart


Source:

https://www.linuxquestions.org/questions/slackware-14/how-do-i-run-menu-and-logout-from-the-command-line-in-fluxbox-864919/

Advertisements

Fluxbox changing focus

December 8, 2014 Leave a comment

Problem:
I reinstalled debian and fluxbox. I have a monitor attached to my laptop, but every time I clicked on any window on the second screen, it would get moved to the first screen. Right clicking to bring up the main menu on the second screen also did not work.

Solution:
Apparently, under main menu, configuration there is an option to change the Focus Model. That was my problem. I changed it to “Mouse Focus” then back to “Click to Focus” and my fluxbox is now working as normal.

So that was not the fix. The issue was that when fluxbox starts, my Toolbar width is only on one screen. When I right click on the second screen that does not have the toolbar, the menu only appears on the first screen. So to fix, I need to restart fluxbox so that the Toolbar appears on both. (I need to change the init settings for this). Earlier, when changing focus I restarted it but attributed the fix to the changing of focus which was incorrect.

The upside of this struggle, was that I learnt quite a bit about the keys file. For more on keys

http://linux.die.net/man/5/fluxbox-keys

nitrogen – Setting wallpapers

September 7, 2014 Leave a comment

Problem:
Needed to setup a wallpaper on fluxbox and it needed to appear on one or two screens.

Solution:
Installed nitrogen. (Esetroot just did not work nicely for me. YMMV)

(as root) apt-get install nitrogen

Set up your preferred wallpaper using nitrogen.

$ nitrogen

nitrogen

nitrogen


Click “Preferences” and select the folder with the wallpapers. Then pick the wallpaper you want for a fullscreen or selective screens.

Nitrogen settings

$less ~/.config/nitrogen/bg-saved.cfg
[xin_0]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000

[xin_1]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000
.config/nitrogen/bg-saved.cfg (END)

Now all that was left was to configure fluxbox

Add nitrogen –restore to ~/.fluxbox/startup

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &
  xscreensaver &
  mate-power-manager &
  nitrogen --restore &

Added the following two lines to ~/.fluxbox/init

session.screen0.rootCommand:    nitrogen --restore
session.screen1.rootCommand:    nitrogen --restore

That was it.


Update (11th September 2014)

Above settings would work like a charm when I had a monitor plugged in. But the new wall paper would not take effect otherwise. To fix this I simply ran nitrogen again and picked the desired wallpaper. The nitrogen config file now looks like this

$less ~/.config/nitrogen/bg-saved.cfg
[xin_0]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000

[xin_1]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000

[:0.0]
file=/home/rodnee/Pictures/wolves_wide.jpg
mode=0
bgcolor=#000000
.config/nitrogen/bg-saved.cfg (END)

Now my wallpaper is set whether or not a monitor is plugged in.

fluxbox gdm flaky display resolution

January 28, 2012 Leave a comment

Problem:
I love fluxbox, but occassionally when booting up my laptop the display resolution changes from 1366×768 to 1024×768. Why? I do not know. (Although I think it is because of the gnome-settings-daemon version 2.30.2 that I am using that has a “bug” – Not sure. Once I get this version 3.2.2-1 I will know for sure). So I finally found a fix. xrandr.

Solution.
I added this line to my ~./fluxbox/startup file.

xrandr -s 1366x768 -r 60

Which means every time fluxbox starts up the correct resolution is set.

Source.
I got that tip from here
http://fluxbox-wiki.org/index.php?title=Change_resolution

Now the only issue I have is that I can not use gnome-control-center to change settings while using fluxbox. Hopefully the newer version of gnome-settings-daemon will sort that out.

Categories: laptop issues Tags: , ,