LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-15-2016, 04:21 AM   #1
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 105
Blog Entries: 12

Rep: Reputation: 26
Fluxbox - close window with middle button click on iconbar


Hello.

Is there a way to configure Fluxbox to close the window with middle mouse button click on its title in iconbar (similar to XFCE panel behavior)?

It seems to me that iconbar reacts only to left and right click, and middle click (Mouse2) is handled by toolbar (therefore closing the window which has focus, and not the one clicked.

Any hints appreciated
 
Old 08-15-2016, 05:57 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Quote:
Any hints appreciated
I'd look in ~/.fluxbox/preferences text file myself. I am not on my fluxbox laptop right now,
 
Old 08-15-2016, 08:40 AM   #3
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 105

Original Poster
Blog Entries: 12

Rep: Reputation: 26
Quote:
Originally Posted by rokytnji View Post
I'd look in ~/.fluxbox/preferences text file myself.
I haven't got such a file. Did you mean ~/.fluxbox/init ?
I am using Fluxbox 1.3.5. I did look up the options for iconbar and keys file, without any useful result.
 
Old 08-15-2016, 08:26 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I think the file you want is ~/.fluxbox/keys.

http://fluxbox-wiki.org/category/how...shortcuts.html

The mouse actions are in the first part of the file.
 
Old 08-16-2016, 02:34 AM   #5
dr_agon
Member
 
Registered: Sep 2007
Location: Poland
Distribution: Ubuntu LTS
Posts: 105

Original Poster
Blog Entries: 12

Rep: Reputation: 26
Thanks for the reply, but I have already tried
Code:
OnToolbar Mouse2 :Close
My problem is that this mouse event is received by toolbar and not the particular window in inconbar, so the currently focused window is closed, regardless where I click.
 
Old 08-16-2016, 10:57 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
every software has its limitations.
seems like you found one.
best advice: change your usage habits!
 
Old 08-16-2016, 11:33 AM   #7
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,111
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
My bad on suggesting preferences file. I checked my little 9 inch netbook and I have no preferences file either. Closest I have is one called Personal for listing preferred applications in my menu.

Anyways. I figured I'd look through my styles folder in my ~/.fluxbox folder to see if any control over buttons could be made in there. I was hoping a theme edit might do it.

Unfortunately. I saw nothing there either.
 
Old 08-16-2016, 09:11 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Quote:
OnToolbar Mouse2 :Close
I am not an expert in Fluxbox commands, but I suspect that a command starting with

Code:
Ontitlebar
might be more what you want.
 
Old 09-14-2016, 08:02 PM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Any of these examples will close a window in fluxbox.

~/.fluxbox/keys
Code:
OnTitlebar Double Mouse1 :Close
OnTitlebar Mouse2 :Close
OnTitlebar Control Mouse1 :Close
Mod4 q :Close
 
  


Reply

Tags
fluxbox, mouse



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
enable middle button click to paste centguy Linux - Software 5 11-11-2014 08:18 PM
Lost 2-button middle click function on Dell Inspiron 15z Resistor1 Linux Mint 2 01-18-2014 10:17 PM
Lost 2-button middle click function on Dell Inspiron 15z Resistor1 Linux Mint 0 10-22-2013 01:44 AM
[SOLVED] Middle Mouse button in Fluxbox (slackware64 13.37) portia Linux - Software 5 02-02-2013 03:13 PM
Moving a window with middle click possible ? wini_g Linux - Software 1 06-16-2006 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration