A command to switch airplane mode in gnome?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I am looking for a single command that switches airplane mode on/off. Actually I want to manipulate my fn+f10 key to switch airplane mode. I tried to add custom shortcut from gnome settings but it only allows one command. I know that nmcli radio wifi off
works fine but I need to enter two commands to turn it on/off. Is there a way to do it with one command
wifi gnome nmcli
add a comment |Â
up vote
1
down vote
favorite
I am looking for a single command that switches airplane mode on/off. Actually I want to manipulate my fn+f10 key to switch airplane mode. I tried to add custom shortcut from gnome settings but it only allows one command. I know that nmcli radio wifi off
works fine but I need to enter two commands to turn it on/off. Is there a way to do it with one command
wifi gnome nmcli
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I am looking for a single command that switches airplane mode on/off. Actually I want to manipulate my fn+f10 key to switch airplane mode. I tried to add custom shortcut from gnome settings but it only allows one command. I know that nmcli radio wifi off
works fine but I need to enter two commands to turn it on/off. Is there a way to do it with one command
wifi gnome nmcli
I am looking for a single command that switches airplane mode on/off. Actually I want to manipulate my fn+f10 key to switch airplane mode. I tried to add custom shortcut from gnome settings but it only allows one command. I know that nmcli radio wifi off
works fine but I need to enter two commands to turn it on/off. Is there a way to do it with one command
wifi gnome nmcli
wifi gnome nmcli
edited Oct 11 '17 at 6:30
jasonwryan
47.1k14127178
47.1k14127178
asked Oct 9 '17 at 18:58
Bbbbbb kkkkkkk
82
82
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
You can use rfkill
:
alias airplane-toggle="rfkill list | grep -q 'byesb' && rfkill unblock all || rfkill block all"
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You can use rfkill
:
alias airplane-toggle="rfkill list | grep -q 'byesb' && rfkill unblock all || rfkill block all"
add a comment |Â
up vote
3
down vote
accepted
You can use rfkill
:
alias airplane-toggle="rfkill list | grep -q 'byesb' && rfkill unblock all || rfkill block all"
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You can use rfkill
:
alias airplane-toggle="rfkill list | grep -q 'byesb' && rfkill unblock all || rfkill block all"
You can use rfkill
:
alias airplane-toggle="rfkill list | grep -q 'byesb' && rfkill unblock all || rfkill block all"
answered Oct 9 '17 at 19:50
jayhendren
5,13221341
5,13221341
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f397098%2fa-command-to-switch-airplane-mode-in-gnome%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password