SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-02-19 20:54:20

raoul95
New Member
Registered: 2012-02-19
Posts: 9

Can you make tint2 autohide until you press a certain key? [SOLVED]

I'm fairly new to crunchbang, and love the openbox and tint2 interface, and as I am using it on a netbook I set tint2 to autohide, but I'm clumsy with a track pad so I end up maximising it a lot by mistake which is quite annoying. Is there anyway of making it only maximise when you press a certain key or key combination (eg super N) and not when you hover over it. Any help would be much appreciated smile

Last edited by raoul95 (2012-02-22 16:56:20)

Offline

Be excellent to each other!

#2 2012-02-21 01:58:47

cJones
#! Junkie
From: Oregon
Registered: 2012-02-21
Posts: 447

Re: Can you make tint2 autohide until you press a certain key? [SOLVED]

http://code.google.com/p/tint2/wiki/Con … l_autohide

You probably already know how to adjust those settings, but my suggestion (as I am still new to #!) would be to maybe just increase the show time? That way it only pops up if you hold the mouse over for x amount of time. Hopefully that helps a little until somebody with more experience with tint2 can give you exactly what you wanted.

Last edited by cJones (2012-02-21 01:59:29)


d(o_O)b

Offline

#3 2012-02-21 08:10:23

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Can you make tint2 autohide until you press a certain key? [SOLVED]

A different approach, but the same result (I hope).
You could make a keybinding in openbox to switch tint2 on and off.....


Create a script /home/username/bin/toggletint2

#! /bin/bash

if [ `pidof tint2` ]; then
    killall tint2
    exit
else
    tint2 &
fi
exit

and make it executable:
chmod +x /home/username/bin/toggletint2


And add this to the keybinding section in ~/.config/openbox/rc.xml

    <keybind key="W-2">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Toggle Tint2</name>
        </startupnotify>
        <command>toggletint2</command>
      </action>
    </keybind>

After you reconfigure openbox, tint2 can be switched on and off with winkey-2. 
You can now disable autohide in tint2.

Last edited by Tunafish (2012-02-23 11:30:42)


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

#4 2012-02-21 19:41:32

raoul95
New Member
Registered: 2012-02-19
Posts: 9

Re: Can you make tint2 autohide until you press a certain key? [SOLVED]

I'd prefer to use a keybinding as I really like being able to do everything just with the keyboard, but when I did what you suggested it says "failed to execute child process "toggletint2" (permissioned denied)" I presume this is just a case of giving the command sudo status, but not sure how to do that in scripts, or is it just as simple as adding sudo to the beginning of the line?

Offline

#5 2012-02-21 22:10:15

2ManyDogs
dv#!
From: elsewhere
Registered: 2011-11-22
Posts: 1,346

Re: Can you make tint2 autohide until you press a certain key? [SOLVED]

You should not need sudo for this.
Did you make the script executable?

chmod +x /home/username/bin/toggletint2

Last edited by 2ManyDogs (2012-02-22 01:03:12)


Be eggsalad to each other.

Offline

#6 2012-02-22 16:50:51

raoul95
New Member
Registered: 2012-02-19
Posts: 9

Re: Can you make tint2 autohide until you press a certain key? [SOLVED]

Aaa forgot to make it executable that would be it, it works really nicely now smile
Thanks for all your help smile

Offline

#7 2012-02-23 11:31:38

Tunafish
#! Die Hard
From: the Netherlands
Registered: 2010-03-07
Posts: 1,204

Re: Can you make tint2 autohide until you press a certain key? [SOLVED]

raoul95 wrote:

Aaa forgot to make it executable that would be it, it works really nicely now smile
Thanks for all your help smile

Glad it works.
I updated the instructions in post 4, in case anyone finds this solution.
Tuna


sed 's/stress/relaxation/g'
Privacy & Security on #!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo