You are not logged in.

#1 2020-02-14 11:23:44

clusterF
Member
Registered: 2019-05-07
Posts: 539

[SOLVED] iwd (iNet wireless daemon)

Hello,

i know how to use iwd and have it setup fine on my voidlinux box. I would ask at the void reddit forum but not a member there.

I want to use iwctl to enable wifi manually via a keybind from sxhkd but not sure how to approach it.

I would like to just do the below one line, but iwctl seems self contained if you will?

iwctl station wlan0 connect <ssid>

any help much appreciated.

edit: this is not a question about sxhkd, i would like to put iwctl inside a script and call that script from sxhkd.

Last edited by clusterF (2020-02-15 02:19:29)

Offline

#2 2020-02-14 12:35:41

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 760

Re: [SOLVED] iwd (iNet wireless daemon)

^There is a nice info on Archlinux wiki (as always) about iwd ... I feel it should be enough to get you started.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#3 2020-02-14 13:35:27

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: [SOLVED] iwd (iNet wireless daemon)

iMBeCil wrote:

^There is a nice info on Archlinux wiki (as always) about iwd ... I feel it should be enough to get you started.

Thanks, but did you even understand my post?

Offline

#4 2020-02-14 15:23:26

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 760

Re: [SOLVED] iwd (iNet wireless daemon)

^Apparently, I didn't understand your post. Sorry. I wonder why? Am I stupid? Probably - see my nick. Or your question isn't formulated clear enough?

See link in ohnonot's sig 'how to ask smart questions', perhaps I will understand your post better. (Hint: what did you try? What was the outcome? Any terminal output?)

(I do not want to start a fight ... simply stating the obvious.)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#5 2020-02-14 15:39:02

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: [SOLVED] iwd (iNet wireless daemon)

^ terminal output = iwctl

Offline

#6 2020-02-14 15:53:34

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 760

Re: [SOLVED] iwd (iNet wireless daemon)

^I do not understand, and I'm afraid somebody else should step in and help you. To repeat: archLinux wiki page seems to have enough information ... Good luck with iwd.

Last edited by iMBeCil (2020-02-14 15:54:49)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#7 2020-02-14 17:10:39

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,181

Re: [SOLVED] iwd (iNet wireless daemon)

clusterF wrote:

this is not a question about sxhkd, i would like to put iwctl inside a script and call that script from sxhkd.

Somethng like this?

Stackexchange is usually a good place to look.


You must unlearn what you have learned.
    -- yoda

Online

#8 2020-02-15 02:14:04

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: [SOLVED] iwd (iNet wireless daemon)

Thanks packrat and imbecil.

imbecil, sorry if i came across as short and shrift, indeed the archwiki has all the needed info.

Not sure what was going on yesterday but when i did the below command it would go into interactive mode, today im able to do the same commands on the terminal with no issues.

iwctl station wlan0 connect SSID
~:$ iwctl station wlan0 show
                                 Station: wlan0
--------------------------------------------------------------------------------
  Settable  Property            Value
--------------------------------------------------------------------------------
            Scanning            no
            State               connected
            Connected network   SSID

for those interested, the one line command to manually connect via iwd from a keybind is...

xterm -e bash -c 'iwctl station wlan0 connect <SSID> && iwctl station wlan0 show;$SHELL'

Last edited by clusterF (2020-02-15 02:25:04)

Offline

#9 2020-02-15 04:18:08

beaker
Member
Registered: 2016-03-06
Posts: 150

Re: [SOLVED] iwd (iNet wireless daemon)

clusterF wrote:

for those interested, the one line command to manually connect via iwd from a keybind is...

thanks - hoping to move to eiwd (iwd without dbus) on my kiss system(s) when I have some spare time.

Offline

#10 2020-02-15 08:39:48

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 760

Re: [SOLVED] iwd (iNet wireless daemon)

clusterF wrote:

Thanks packrat and imbecil.

imbecil, sorry if i came across as short and shrift, indeed the archwiki has all the needed info.

You're welcome, and no sweat, all good. Glad you found right command.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#11 2020-02-16 10:33:22

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: [SOLVED] iwd (iNet wireless daemon)

beaker wrote:
clusterF wrote:

for those interested, the one line command to manually connect via iwd from a keybind is...

thanks - hoping to move to eiwd (iwd without dbus) on my kiss system(s) when I have some spare time.

I gave this eiwd a try on my devuan setup that uses openrc and sys-v, i had to create service files that i copied over from the gentoo website. Not sure how you would go in kiss linux but id say it might be a lot more straight forward depending on their init. Pro tip get the eiwd release from here https://github.com/dylanaraps/eiwd/releases it builds a lot better than cloning the git repo and trying to build from that, the release files are all self contained.

here are the links to the files needed for openrc if you are interested.

https://wiki.gentoo.org/wiki/User:Hfern … c-init#iwd

https://gitweb.gentoo.org/repo/gentoo.g … /iwd.initd

you just have to be aware of where the iwd daemon installs to, mine was in /usr/bin/iwd

so i had to change the location in the openrc service file from /usr/libexec/iwd to /usr/bin/iwd

and you can delete the depends on dbus from the service file too wink

If you need any help in the future let me know, ill try to help out.

Last edited by clusterF (2020-02-16 10:35:07)

Offline

#12 2020-02-25 09:18:49

beaker
Member
Registered: 2016-03-06
Posts: 150

Re: [SOLVED] iwd (iNet wireless daemon)

Wow! Thanks for that info clusterF and apologies for the late reply. Haven't gotten round to trying this yet.

Offline

#13 2020-02-25 10:17:23

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: [SOLVED] iwd (iNet wireless daemon)

Your welcome beaker.

Offline

Board footer

Powered by FluxBB