It's possible to create custom shortcut with keyboard (Fn + some key) to enable and disable wifi?
It would help responders to your posts if you included details of the hardware you are using in your profile, like mine here:
If a notebook there may already be a key combination that does this. Will do some research and get back to you.
Here you go:
"For Ubuntu 22.04, you’ll need to use a combination of GNOME Shell extensions and custom keyboard shortcuts. Here’s a step-by-step guide:
- Install the
gnome-shell-extension-toggle-wifi
extension:
- Open a terminal and run the command:
sudo apt install gnome-shell-extension-toggle-wifi
- Restart your GNOME Shell by running:
sudo restart gnome-shell
- Configure the extension:
- Go to Settings > Extensions > Toggle WiFi
- Click the toggle button next to “Enabled” to turn it on
- Adjust the hotkey combination by clicking the “Hotkey” dropdown and selecting a desired combination (e.g.,
Ctrl + Shift + W
)
- Create a custom keyboard shortcut for the WiFi toggle:
- Go to Settings > Keyboard > Shortcuts > Custom Shortcuts
- Click the “+” button to add a new shortcut
- Name the shortcut (e.g., “Toggle WiFi”)
- Enter the command:
gnome-shell-extension-toggle-wifi-toggle
- Assign the hotkey combination you chose earlier
- Click “Apply” to save the changes
- Verify the shortcut:
- Press the assigned hotkey combination to toggle your WiFi status
Note: Make sure to restart your GNOME Shell after installing and configuring the extension to ensure it takes effect.
Here’s a summary of the steps in bullet points:
• Install the gnome-shell-extension-toggle-wifi
extensio
• Configure the extension to enable it and set a hotkey combination
• Create a custom keyboard shortcut for the WiFi toggle using the gnome-shell-extension-toggle-wifi-toggle
command
• Assign the hotkey combination to the custom shortcut
• Restart GNOME Shell and verify the shortcut works as expected."
(Please note that Zorin 17 is based on Ubuntu 22.04, and is best using this whenever searching for answers.)
Absolutely!
Go to Settings then Keyboard then View and Customize Shortcuts then create a custom shortcut
To enable WiFi run nmcli radio wifi on
and assign it to your preferred Shortcut Key.
To disable, do the same with nmcli radio wifi off
command.
Thanks it works.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.