[SOLVED]How create 1 click WIFI button on the desktop - 2024

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Post Reply
User avatar
NoHo Hank
Level 5
Level 5
Posts: 564
Joined: Wed Jun 29, 2022 6:03 am

[SOLVED]How create 1 click WIFI button on the desktop - 2024

Post by NoHo Hank »

Script used to work on 21.1, not anymore on 21.3
About 1 year ago Koentje made this handsome script toggle-wifi.tar.gz.
viewtopic.php?p=2303816#p2303816
Sadly it isn't properly working on 21.3. It blocks the wifi but there is no icon to see when:

Code: Select all

Icon=network-wireless-disabled-symbolic.symbolic
Or the icon is shown but it doesn't change when block wifi if:

Code: Select all

Icon=network-wireless-disabled-symbolic
And wifi can't be switched on again.

Toggle WIFI.desktop:

Code: Select all

placed toggle-wifi.sh in /usr/bin
placed Change Icon in /home/noha/Desktop
path
/usr/bin/toggle-wifi.sh
Last edited by NoHo Hank on Tue Apr 16, 2024 5:36 am, edited 1 time in total.
Demand technology that serves us - https://peoplevsbig.tech/
None of Your Business https://noyb.eu/en
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How create 1 click WIFI button on the desktop - 2024

Post by Koentje »

You can try this version i'm using on my own laptop..
Run the installer script and you're good to go.
toggle-wifi-v2.tar.gz
(17.4 KiB) Downloaded 99 times
Image
User avatar
NoHo Hank
Level 5
Level 5
Posts: 564
Joined: Wed Jun 29, 2022 6:03 am

Re: How create 1 click WIFI button on the desktop - 2024

Post by NoHo Hank »

thnx will try that.
Demand technology that serves us - https://peoplevsbig.tech/
None of Your Business https://noyb.eu/en
User avatar
NoHo Hank
Level 5
Level 5
Posts: 564
Joined: Wed Jun 29, 2022 6:03 am

Re: How create 1 click WIFI button on the desktop - 2024

Post by NoHo Hank »

SPLENDID!
Extracted the toggle-wifi-v2.tar.gz and placed the appearing folder 'toggle-wifi' in 'home'.
Openened terminal within the folder 'toggle-wifi' and

Code: Select all

./install-toggle-wifi.sh
made it work!

I presume you can change the used .png for any other .png as long as you give them the same names?!
Demand technology that serves us - https://peoplevsbig.tech/
None of Your Business https://noyb.eu/en
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: How create 1 click WIFI button on the desktop - 2024

Post by Koentje »

Yep, that's correct! They are copied to ~/.icons folder.
Image
User avatar
NoHo Hank
Level 5
Level 5
Posts: 564
Joined: Wed Jun 29, 2022 6:03 am

Re: How create 1 click WIFI button on the desktop - 2024

Post by NoHo Hank »

Right!
Is it possible to get it also in the panel?
Demand technology that serves us - https://peoplevsbig.tech/
None of Your Business https://noyb.eu/en
Post Reply

Return to “Scripts & Bash”