SEARCH

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

You are not logged in.

#1 2009-10-07 12:26:10

veer-arjun
Member
Registered: 2009-10-04
Posts: 15

Keybind for network manager applet?

Can anyone tell me what is the keybind for network manager applet..i wnt for applet plz..nt for manager and if there isn't plz guide me how to set it up?i dont like network manager applet in my tint2 panel.so i want to remove it.

Offline

Help fund CrunchBang, donate to the project!

#2 2009-10-07 12:52:05

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 689
Website

Re: Keybind for network manager applet?

hi, i don't know if it's possible to remove nm-applet when network-manager is running... hmm

oh, and welcome on our crunchy-world smile

--edit: so, it's possible. as said below, just go in your ~/bin folder and create a file ~/bin/toggle_nmapplet , and paste it inside:

#!/bin/sh
if [ "$(pidof nm-applet)" ]; then
    killall nm-applet
    exit
else
    nm-applet
    exit
fi

make it executable, then go in your ~/.config/openbox/rc.xml , and add those lines in the keybinding section:

    <keybind key="A-S-w">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Toggle nm-applet</name>
        </startupnotify>
        <command>toggle_nmapplet</command>
      </action>
    </keybind>

take care of modify the keybind you want to associate and the name of your script.
this way, you could remove nm-applet and show it on when you want to see wifi network ..
hope it helps smile

Last edited by arpinux (2009-10-07 13:23:09)

Offline

#3 2009-10-07 12:52:14

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Keybind for network manager applet?

i dont know if theres one already but if you look in ~/.config/openbox/rc.xml (through the menu at preferences->openbox config->)you will find all the keybindings, if its not in there its pretty easy to add


- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Offline

#4 2009-10-07 17:16:55

veer-arjun
Member
Registered: 2009-10-04
Posts: 15

Re: Keybind for network manager applet?

arpinux wrote:

hi, i don't know if it's possible to remove nm-applet when network-manager is running... hmm

oh, and welcome on our crunchy-world smile

--edit: so, it's possible. as said below, just go in your ~/bin folder and create a file ~/bin/toggle_nmapplet , and paste it inside:

#!/bin/sh
if [ "$(pidof nm-applet)" ]; then
    killall nm-applet
    exit
else
    nm-applet
    exit
fi

make it executable, then go in your ~/.config/openbox/rc.xml , and add those lines in the keybinding section:

    <keybind key="A-S-w">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Toggle nm-applet</name>
        </startupnotify>
        <command>toggle_nmapplet</command>
      </action>
    </keybind>

take care of modify the keybind you want to associate and the name of your script.
this way, you could remove nm-applet and show it on when you want to see wifi network ..
hope it helps smile

i am unable to understand what will this setup exactly do.see lets see it like this:-
1.what do you do for turning your net on.you look for the nm-applet right?then you click on it.
2.after clicking on it a menu pops up.from where you select the name of the access point(i use my mobile for internet,no wifi,no broadband i.e. I use ppp0).
3.after clicking on the name,network manager establishes the network.right?
Now lets suppose i don't hve the nm-applet.so for connecting to the net i want a key bind either for (1) or (2).though i'll prefer the (2).
I don't how well i hve explained my situation but certainly.i cn't explain bettep.. [:(]

Offline

#5 2009-10-07 17:29:51

arpinux
#! Die Hard
From: Montréal, France
Registered: 2009-01-15
Posts: 689
Website

Re: Keybind for network manager applet?

...i am unable to understand what will this setup exactly do.see lets see it like this:-
1.what do you do for turning your net on.you look for the nm-applet right?then you click on it.
--- i do agree smile
2.after clicking on it a menu pops up.from where you select the name of the access point(i use my mobile for internet,no wifi,no broadband i.e. I use ppp0).
3.after clicking on the name,network manager establishes the network.right?
Now lets suppose i don't hve the nm-applet.so for connecting to the net i want a key bind either for (1) or (2).though i'll prefer the (2).
--- so, with the setup i propose, you could remove nm-applet from your ~autostart, then enable it only when you need (by doing Alt-Shift-w in my example), then choose your access point, and at the end, disable nm-applet.
I don't how well i hve explained my situation but certainly.i cn't explain bettep.. [:(]

--- i don't know if i'm clear, but i hope so [:)]

Offline

#6 2009-10-07 17:36:31

veer-arjun
Member
Registered: 2009-10-04
Posts: 15

Re: Keybind for network manager applet?

arpinux wrote:

...i am unable to understand what will this setup exactly do.see lets see it like this:-
1.what do you do for turning your net on.you look for the nm-applet right?then you click on it.
--- i do agree smile
2.after clicking on it a menu pops up.from where you select the name of the access point(i use my mobile for internet,no wifi,no broadband i.e. I use ppp0).
3.after clicking on the name,network manager establishes the network.right?
Now lets suppose i don't hve the nm-applet.so for connecting to the net i want a key bind either for (1) or (2).though i'll prefer the (2).
--- so, with the setup i propose, you could remove nm-applet from your ~autostart, then enable it only when you need (by doing Alt-Shift-w in my example), then choose your access point, and at the end, disable nm-applet.
I don't how well i hve explained my situation but certainly.i cn't explain bettep.. [:(]

--- i don't know if i'm clear, but i hope so [:)]

ahh!!! Thank you!!! You have been so kind.. I guess i'll get sumthing to work..alas! simplicity is not so simple.. smile

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