💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2019-12-03.txt captured on 2024-05-12 at 16:09:42.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2019-12-03T00:00:30 #kisslinux <atkka> I hope I can contribute someday 2019-12-03T00:02:08 #kisslinux <dylanara1> Sounds good :) 2019-12-03T02:20:55 #kisslinux <lieuxnoir> suppose i have this: 2019-12-03T02:21:06 #kisslinux <lieuxnoir> `su {` 2019-12-03T02:21:17 #kisslinux <lieuxnoir> ` su -c "$*"` 2019-12-03T02:21:23 #kisslinux <lieuxnoir> `}` 2019-12-03T02:22:04 #kisslinux <lieuxnoir> how should i sanitize arguments having special characters like `'` or `|`? 2019-12-03T02:23:28 #kisslinux <lieuxnoir> commands like `su wpa_passphrase 'name' 'pass' >> /etc/blah/blah` won't work and i have to escape the `'`s everytime 2019-12-03T03:28:23 #kisslinux <konimex> assuming ` means backticks, why not use $()? 2019-12-03T04:00:56 #kisslinux <Crestwave> lieuxnoir: What shell is that? 2019-12-03T04:02:34 #kisslinux <Crestwave> Why not use an alias? 2019-12-03T04:04:23 #kisslinux <Crestwave> dylanaraps: LC_CTYPE=C is needed to consider characters as single-byte 2019-12-03T04:05:54 #kisslinux <Crestwave> It would be faster if you used a regular variable instead of running `set` each time, although I'm not sure how much the difference is for that program 2019-12-03T04:18:46 #kisslinux <Crestwave> Also, maybe consider (it's up to preference, just consider) [:alnum:]? 2019-12-03T05:38:51 #kisslinux <lieuxnoir> @koni 2019-12-03T05:39:14 #kisslinux <lieuxnoir> konimex: no, i just surrounded them with backticks 2019-12-03T05:39:32 #kisslinux <lieuxnoir> i was referring to single quotes and pipe symbols 2019-12-03T05:40:22 #kisslinux <lieuxnoir> su { su -c "$*" } 2019-12-03T05:40:38 #kisslinux <lieuxnoir> now if i run 2019-12-03T05:41:07 #kisslinux <lieuxnoir> su wpa_passphrase 'somename' 'somepassword' 2019-12-03T05:41:32 #kisslinux <lieuxnoir> the single quotations will ruin the command 2019-12-03T05:42:06 #kisslinux <lieuxnoir> because sometimes i have to use them because special characters like $ gets read as variables when im using them as passwords 2019-12-03T05:42:40 #kisslinux <lieuxnoir> something like myhardpassword123withspecialchars@#$@#$@#% 2019-12-03T05:42:51 #kisslinux <lieuxnoir> so i have to use single quotes 2019-12-03T05:43:12 #kisslinux <lieuxnoir> i don't know 2019-12-03T05:43:16 #kisslinux <lieuxnoir> maybe im missing something 2019-12-03T05:47:16 #kisslinux <lieuxnoir> @dylanaraps: will you be replacing wpa_supplicant with eiwd anytime soon? 2019-12-03T06:08:02 #kisslinux <Crestwave> lieuxnoir: Can you answer my questions? 2019-12-03T08:25:07 #kisslinux <dylanaraps> lieuxnoir: You can just swap it out really easily. 2019-12-03T08:25:51 #kisslinux <dylanaraps> Once eiwd is more mature I'll add it to the installation guide alongside wpa_supplicant/dhcpcd. 2019-12-03T10:11:32 #kisslinux <lieuxnoir> Crestwave: it's busybox ash 2019-12-03T10:11:38 #kisslinux <lieuxnoir> @cres 2019-12-03T10:12:21 #kisslinux <lieuxnoir> Crestwave: because i might add something to the function that could sanitize the arguments 2019-12-03T10:26:36 #kisslinux <lieuxnoir> alias su='su -c "$*"' does not work 2019-12-03T10:52:45 #kisslinux <Crestwave> That's not valid ash? 2019-12-03T10:53:06 #kisslinux <Crestwave> You're missing the parenthesis in the function declaration and a command separator before the closing brace 2019-12-03T10:53:24 #kisslinux <Crestwave> Additionally, you're naming the function the same thing as the command you're executing, so it would inifitely recurse 2019-12-03T10:53:52 #kisslinux <Crestwave> That's also not how you use aliases 2019-12-03T10:54:01 #kisslinux <Crestwave> It's `alias su='su -c'` 2019-12-03T10:54:46 #kisslinux <Crestwave> Although I would personally name it something else like `alias sudo='su -c'` 2019-12-03T10:55:08 #kisslinux <lieuxnoir> thanks, but im asking on how to properly escape special characters on a command 2019-12-03T10:55:30 #kisslinux <Crestwave> printf %q or ${var@Q} on Bash 2019-12-03T10:56:31 #kisslinux <lieuxnoir> can i do it something like this on my current function? 2019-12-03T10:56:42 #kisslinux <lieuxnoir> command=$(printf %q "$*") 2019-12-03T10:56:50 #kisslinux <lieuxnoir> then su -c $command 2019-12-03T10:56:53 #kisslinux <lieuxnoir> ? 2019-12-03T10:57:10 #kisslinux <Crestwave> That would subject it to word splitting and globbing 2019-12-03T10:57:48 #kisslinux <lieuxnoir> yes, you're right 2019-12-03T10:57:56 #kisslinux <Crestwave> Wait 2019-12-03T10:58:06 #kisslinux <lieuxnoir> but in order for `su -c` to properly work 2019-12-03T10:58:13 #kisslinux <Crestwave> Since it quotes it globbing and such should be fine. 2019-12-03T10:58:23 #kisslinux <lieuxnoir> the commands should be enclosed in single quotations 2019-12-03T10:58:32 #kisslinux <Crestwave> You should probably use `command=$(printf %q "$@")`, though 2019-12-03T10:59:18 #kisslinux <Crestwave> Hm or printf ' %q' "$@" 2019-12-03T11:00:19 #kisslinux <lieuxnoir> su invalid option 'b' 2019-12-03T11:00:26 #kisslinux <Crestwave> Wait couldn't you just use sudo() { su -c "$@"; } in the first place? 2019-12-03T11:00:48 #kisslinux <Crestwave> Ah the problem is that you need to quote arguments to su, then quote it again 2019-12-03T11:00:49 #kisslinux <lieuxnoir> yes i can 2019-12-03T11:01:30 #kisslinux <lieuxnoir> yes, exactly 2019-12-03T11:01:44 #kisslinux <lieuxnoir> using your function 2019-12-03T11:02:06 #kisslinux <lieuxnoir> and together with wpa_passphrase 2019-12-03T11:02:18 #kisslinux <lieuxnoir> it'll look something like 2019-12-03T11:03:17 #kisslinux <lieuxnoir> sudo wpa_passphrase 'SSID' 'pa$wordwithspecialchars' 2019-12-03T11:04:50 #kisslinux <Crestwave> I'm getting confused by all this but `sudo() { cmd=$1; shift; args=$(printf %q "$*"); su -c "$cmd $args"; }` should work, I think? 2019-12-03T11:05:03 #kisslinux <Crestwave> Nope 2019-12-03T11:06:45 #kisslinux <lieuxnoir> if the command issued in su is not enclosed in single quotes, it will not work 2019-12-03T11:06:57 #kisslinux <lieuxnoir> su -c command works 2019-12-03T11:07:06 #kisslinux <lieuxnoir> su -c command args will not 2019-12-03T11:07:20 #kisslinux <lieuxnoir> su -c 'command args' will work 2019-12-03T11:07:43 #kisslinux <Crestwave> Well `sudo() { su -c "${*@Q}"; }` works in Bash, I think. I'm just getting confused translating it to POSIX 2019-12-03T11:08:14 #kisslinux <Crestwave> Because printf %q would escape the spaces between arguments 2019-12-03T11:09:40 #kisslinux <Crestwave> Try `sudo() { su -c "$(printf ' %q' "$@")"; }` 2019-12-03T11:10:11 #kisslinux <Crestwave> Hah that's actually what I said earlier. Seems to work, though 2019-12-03T11:33:25 #kisslinux <lieuxnoir> what's the difference between $@ and $* 2019-12-03T11:33:31 #kisslinux <lieuxnoir> they seem to work the same 2019-12-03T12:05:01 #kisslinux <dylanaraps> lieuxnoir: '$@' expands each element and '$*' expands to the argument list as a single string (split on IFS). 2019-12-03T12:05:18 #kisslinux <dylanaraps> Man I worded that badly 2019-12-03T14:04:08 #kisslinux <dylanaraps> E5ten: I've made iwd populate a file (/var/lib/iwd/scan) with the scan results (updated on each scan). 2019-12-03T14:04:45 #kisslinux <dylanaraps> Looks like this: https://termbin.com/r6w1 2019-12-03T14:05:21 #kisslinux <dylanaraps> It's a start and I'm lazy 2019-12-03T14:05:23 #kisslinux <dylanaraps> :^) 2019-12-03T14:10:51 #kisslinux <qtpie> will there be any errors if I update linux-headers but not the kernel? 2019-12-03T14:11:45 #kisslinux <dylanaraps> There shouldn't be. What's the version difference like. 2019-12-03T14:12:01 #kisslinux <dylanaraps> ?* 2019-12-03T14:12:11 #kisslinux <qtpie> i'm running kernel 5.4 and the latest headers(and kernel) version is 5.4.1 2019-12-03T14:12:39 #kisslinux <dylanaraps> It's fine. 2019-12-03T14:12:52 #kisslinux <qtpie> I see. Thanks 2019-12-03T14:13:08 #kisslinux <dylanaraps> The only time you might have trouble is with a larger version gap. 2019-12-03T14:13:27 #kisslinux <dylanaraps> 3.X.X->4.X.X->5.X.X 2019-12-03T14:13:38 #kisslinux <dylanaraps> Though it could still work regardless. 2019-12-03T14:13:50 #kisslinux <qtpie> noted 2019-12-03T14:13:56 #kisslinux <qtpie> i won't be waiting this long anyway 2019-12-03T14:14:00 #kisslinux <dylanaraps> You can always lock the package version if you like. 2019-12-03T14:14:10 #kisslinux <dylanaraps> The headers are forwards compatible. 2019-12-03T14:28:45 #kisslinux <qtpie> tmux is failing to build for me 2019-12-03T14:29:09 #kisslinux <dylanaraps> Error message? 2019-12-03T14:29:35 #kisslinux <qtpie> https://pst.moe/paste/emvxko 2019-12-03T14:30:55 #kisslinux <dylanaraps> Hm. Builds fine for me. 2019-12-03T14:31:24 #kisslinux <dylanaraps> Default package? No changes made to it? 2019-12-03T14:31:41 #kisslinux <qtpie> yes it's the default package 2019-12-03T14:31:46 #kisslinux <qtpie> didn't make any changes 2019-12-03T14:31:55 #kisslinux <qtpie> ran an update now and saw that it failed 2019-12-03T14:32:22 #kisslinux <dylanaraps> Found this: https://github.com/tmux/tmux/issues/39 2019-12-03T14:32:58 #kisslinux <dylanaraps> Very helpful... 2019-12-03T14:35:12 #kisslinux <qtpie> took me a full minute to find out why it was showing that issue as being referenced in the other thread 2019-12-03T14:35:39 #kisslinux <dylanaraps> Lol yeah 2019-12-03T14:35:56 #kisslinux <dylanaraps> The file containing the error hasn't seen changes in 9 months fyi. 2019-12-03T14:35:59 #kisslinux <dylanaraps> Odd. 2019-12-03T14:36:50 #kisslinux <dylanaraps> Which version are you trying to build? 2019-12-03T14:37:10 #kisslinux <qtpie> tmux 3.0-1 ==> 3.0a-1 2019-12-03T14:37:20 #kisslinux <qtpie> something is weird 2019-12-03T14:37:38 #kisslinux <qtpie> -> sudo kiss update 2019-12-03T14:37:41 #kisslinux <qtpie> -> Updating repositories 2019-12-03T14:37:43 #kisslinux <qtpie> -> Checking for new package versions 2019-12-03T14:37:45 #kisslinux <qtpie> !> $KISS_PATH needs to be set 2019-12-03T14:37:47 #kisslinux <qtpie> /usr/bin/kiss: line 846: can't open /version: no such file 2019-12-03T14:37:56 #kisslinux <qtpie> works if I use su and then kiss update 2019-12-03T14:38:06 #kisslinux <dylanaraps> Don't run kiss as root. 2019-12-03T14:38:19 #kisslinux <qtpie> ah 2019-12-03T14:39:30 #kisslinux <qtpie> let me try the build script for version 3.0-1 2019-12-03T14:39:36 #kisslinux <qtpie> see if that is compiling 2019-12-03T14:42:12 #kisslinux <qtpie> how can I try an older version in kiss? 2019-12-03T14:42:17 #kisslinux <qtpie> git checkout? 2019-12-03T14:49:38 #kisslinux <dylanaraps> revert the commit by checking out the previous commit, run 'kiss b tmux' and then checkout master again. 2019-12-03T14:49:57 #kisslinux <dylanaraps> Or clone the repositories again, checkout the commit and build from the newly cloned repo. 2019-12-03T14:50:03 #kisslinux <dylanaraps> There's a lot of ways to do it. 2019-12-03T14:52:06 #kisslinux <qtpie> it is failing for 3.0 as well 2019-12-03T14:55:29 #kisslinux <qtpie> i think i know what it is 2019-12-03T14:55:38 #kisslinux <qtpie> i just updated linux-firmware 2019-12-03T14:55:54 #kisslinux <qtpie> checking the configure log of tmux i see this line: 2019-12-03T14:56:03 #kisslinux <qtpie> >checking for util.h... no 2019-12-03T14:56:50 #kisslinux <dylanaraps> So util.h is missing from the latest headers? 2019-12-03T14:58:22 #kisslinux <qtpie> idk. i'll update my kernel to 5.4.1 and reboot 2019-12-03T14:58:28 #kisslinux <qtpie> will see how it goes then 2019-12-03T14:58:38 #kisslinux <dylanaraps> OK 2019-12-03T14:59:28 #kisslinux <dylanaraps> brb 2019-12-03T15:01:44 #kisslinux <lieuxnoir> dylanaraps: i think i got your brightness script working 2019-12-03T15:02:04 #kisslinux <lieuxnoir> because i noticed that it was setting wrong values 2019-12-03T15:02:47 #kisslinux <lieuxnoir> can you check if this is okay: 2019-12-03T15:03:39 #kisslinux <lieuxnoir> `bri=$((cur ${2:-=} max * $1 / 100))` 2019-12-03T15:35:54 #kisslinux <qtpie> dylanaraps, tmux is still not building 2019-12-03T15:36:26 #kisslinux <dylanaraps> Interesting. You might want to open an issue upstream. 2019-12-03T15:36:33 #kisslinux <dylanaraps> Is that util.h file indeed missing? 2019-12-03T15:36:34 #kisslinux <qtpie> cool 2019-12-03T15:37:45 #kisslinux <qtpie> i don't see it in /usr/include/linux 2019-12-03T15:39:43 #kisslinux <dylanaraps> Let me check mine. 2019-12-03T15:40:05 #kisslinux <dylanaraps> I don't have it either and tmux builds. 2019-12-03T15:43:31 #kisslinux <qtpie> i'll open an issue on their github in a few hours 2019-12-03T15:46:28 #kisslinux <dylanaraps> Sounds good 2019-12-03T16:04:11 #kisslinux <lieuxnoir> dylanaraps do you also use udev rules to control the backlight? 2019-12-03T16:07:37 #kisslinux <dylanaraps> Nope 2019-12-03T16:07:57 #kisslinux <dylanaraps> printf %s "$bri" > "$bri_path/brightness" 2019-12-03T16:08:00 #kisslinux <dylanaraps> From my script. 2019-12-03T16:08:21 #kisslinux <lieuxnoir> but doesn't it need root? 2019-12-03T16:08:33 #kisslinux <dylanaraps> > ::once:/bin/chmod a+rw /sys/class/backlight/intel_backlight/brightness 2019-12-03T16:08:37 #kisslinux <dylanaraps> In my /etc/inittab. 2019-12-03T16:09:01 #kisslinux <dylanaraps> Sets the write permission at boot. 2019-12-03T16:09:32 #kisslinux <lieuxnoir> ah, neat 2019-12-03T16:12:52 #kisslinux <E5ten> Nice (about the scan results thing) 2019-12-03T16:18:29 #kisslinux <dylanaraps> Yup 2019-12-03T16:18:42 #kisslinux <dylanaraps> Also now populates a file with the currently connected SSID. 2019-12-03T16:26:24 #kisslinux <E5ten> 👍️ 2019-12-03T16:33:35 #kisslinux <E5ten> oh no wonder my backlight control hasn't been working, I'm an idiot, I didn't do anything with mdev to give myself perms after switching off udev 2019-12-03T16:53:03 #kisslinux <dylanaraps> lol 2019-12-03T17:03:37 #kisslinux <dylanaraps> 10/10 compiler warning Firefox 2019-12-03T17:03:39 #kisslinux <dylanaraps> > note: ‘*((void*)(& r)+56).js 2019-12-03T17:04:09 #kisslinux <dylanaraps> I'm building 72.0b1 now. 2019-12-03T17:04:22 #kisslinux <dylanaraps> Had to rewrite a bunch of patches. 2019-12-03T17:04:34 #kisslinux <dylanaraps> There's a lot more rust shit in this version. 2019-12-03T17:04:39 #kisslinux <dylanaraps> Still Python 2 :( 2019-12-03T17:04:48 #kisslinux <E5ten> :( 2019-12-03T17:04:56 #kisslinux <E5ten> how much python2 though 2019-12-03T17:05:52 #kisslinux <dylanaraps> The Firefox codebase contains around 500,000 lines of Python 2 2019-12-03T17:05:58 #kisslinux <dylanaraps> Dunno how much has been ported 2019-12-03T17:06:01 #kisslinux <E5ten> jesusss 2019-12-03T17:06:08 #kisslinux <dylanaraps> Hang on 2019-12-03T17:06:16 #kisslinux <dylanaraps> I've got a link to a blog post by a mozilla dev 2019-12-03T17:06:19 #kisslinux <dylanaraps> You'll like it 2019-12-03T17:06:36 #kisslinux <E5ten> I'm scared 2019-12-03T17:06:57 #kisslinux <dylanaraps> > In mozilla-central there are over 3500 Python files (excluding third party files), comprising roughly 230k lines of code. Additionally there are 462 repositories labelled with Python in the Mozilla org on Github 2019-12-03T17:07:10 #kisslinux <dylanaraps> https://ahal.ca/blog/2019/python-3-at-mozilla/ 2019-12-03T17:07:18 #kisslinux <dylanaraps> My number was off. :P 2019-12-03T17:09:12 #kisslinux <E5ten> the real solution shouldn't be python2-->python3 it should be purging python :>) 2019-12-03T17:18:02 #kisslinux <dylanaraps> Of course 2019-12-03T17:39:07 #kisslinux <E5ten> why does curl have a make dep on perl? 2019-12-03T17:41:40 #kisslinux <E5ten> and for a less kisslinux specific question, why does perl exist? 2019-12-03T19:17:05 #kisslinux <qtpie> [ 2019-12-03T19:18:30 #kisslinux <dylanaraps> E5ten: Does curl not need perl? 2019-12-03T19:19:16 #kisslinux <dylanaraps> Ooo 2019-12-03T19:19:19 #kisslinux <dylanaraps> Fixed 2019-12-03T19:19:55 #kisslinux <dylanaraps> My Firefox beta build failed. :( 2019-12-03T19:30:32 #kisslinux <E5ten> damn :( 2019-12-03T19:31:08 #kisslinux <dylanaraps> I didn't keep logs either :^) 2019-12-03T19:31:17 #kisslinux <dylanaraps> Running it again now. 2019-12-03T19:31:30 #kisslinux <dylanaraps> (I don't use scrollback in my terminals) 2019-12-03T19:32:48 #kisslinux <E5ten> yeah scrollbackless terminals are uh a little too far into the simple zone for me 2019-12-03T19:36:36 #kisslinux <dylanaraps> I just pipe to 'less' or use '| tee file' to display to the terminal and save to a file. 2019-12-03T19:39:06 #kisslinux <dylanaraps> For something as simple as a terminal, man do most terminal emulators get it wrong. 2019-12-03T19:39:14 #kisslinux <dylanaraps> VTE based terminals are terrible. 2019-12-03T19:39:40 #kisslinux <E5ten> I use alacritty 2019-12-03T19:39:54 #kisslinux <dylanaraps> Is it really as fast as it claims to be? 2019-12-03T19:40:05 #kisslinux <E5ten> Yeah 2019-12-03T19:40:10 #kisslinux <E5ten> It's definitely a noticeable difference 2019-12-03T19:40:17 #kisslinux <E5ten> Enough to keep me on it despite the rust 2019-12-03T19:40:35 #kisslinux <dylanaraps> Seen this?: https://github.com/jwilm/alacritty/pull/798 2019-12-03T19:41:09 #kisslinux <E5ten> More benchmarks have been done since 2019-12-03T19:41:29 #kisslinux <dylanaraps> Yeah 2019-12-03T19:41:43 #kisslinux <dylanaraps> I laugh at his reply tough 2019-12-03T19:42:04 #kisslinux <E5ten> And better ones too, like ones specifically designed to test elements of terminal speed 2019-12-03T19:43:09 #kisslinux <E5ten> Like on the thing he links he compares to urxvt kitty st and termite, and I feel like that's enough terminals for it to be a pretty conclusive statement 2019-12-03T19:43:59 #kisslinux <retard> "Alacritty, the OpenGL terminal emulator written in Rust" 2019-12-03T19:44:03 #kisslinux <retard> pass 2019-12-03T19:44:05 #kisslinux <E5ten> Cuz termite is probably representative of speed for all VTE terminals, and even if it isn't there's no chance the others are close to as fast cuz they aren't GPU accelerated and they're all bloated, so they don't get the speed boost st does from being light and they don't get the speed boost alacritty and kitty do from being GPU accelerated 2019-12-03T19:44:10 #kisslinux <dylanaraps> xterm would've been nice too though 2019-12-03T19:44:27 #kisslinux <dylanaraps> Despite its bloat it's surprisingly fast. 2019-12-03T19:45:54 #kisslinux <dylanaraps> Input latency is another factor: https://github.com/jwilm/alacritty/issues/673#issuecomment-459342135 2019-12-03T19:46:01 #kisslinux <dylanaraps> (Test results of various terminals) 2019-12-03T19:47:35 #kisslinux <E5ten> fair enough, idk where it's at in that regard right now but anecdotally I don't notice a problem with it 2019-12-03T19:48:34 #kisslinux <dylanaraps> It's been a while since I tried alacritty. 2019-12-03T19:48:40 #kisslinux <dylanaraps> I'll build it once firefox is done 2019-12-03T19:49:38 #kisslinux <E5ten> nice 2019-12-03T19:59:37 #kisslinux <dylanaraps> > 37:37.47 10 | #define UNISTR_FROM_STRING_EXPLICIT 2019-12-03T19:59:40 #kisslinux <dylanaraps> wew 2019-12-03T19:59:43 #kisslinux <dylanaraps> 40 minutes in. 2019-12-03T19:59:56 #kisslinux <dylanaraps> Usually takes 230 minutes. 2019-12-03T20:00:11 #kisslinux <dylanaraps> 2:30 minutes 2019-12-03T20:00:15 #kisslinux <dylanaraps> oops 2019-12-03T20:02:05 #kisslinux <E5ten> no ccache? 2019-12-03T20:02:17 #kisslinux <dylanaraps> I use it 2019-12-03T20:02:23 #kisslinux <dylanaraps> Doesn't support rust though. 2019-12-03T20:02:28 #kisslinux <dylanaraps> Which takes up the first hour. 2019-12-03T20:02:29 #kisslinux <E5ten> sccache 2019-12-03T20:02:49 #kisslinux <dylanaraps> Rust support for that is iffy too 2019-12-03T20:02:56 #kisslinux <dylanaraps> Though it is meant for Firefox 2019-12-03T20:03:07 #kisslinux <dylanaraps> There we go, rust stuff finished. 2019-12-03T20:03:10 #kisslinux <dylanaraps> > 41:56.64 Finished release [optimized] target(s) in 39m 41s 2019-12-03T20:03:27 #kisslinux <E5ten> I only use it for rust, definitely improves the build time a fair bit even if it's not great 2019-12-03T20:04:16 #kisslinux <dylanaraps> Oh god, the error better not be in the vendored dav1d crap 2019-12-03T20:05:56 #kisslinux <E5ten> because it would be stupid/annoying if it was or because it'd be harder to fix if it was and for either response, why? 2019-12-03T20:06:41 #kisslinux <dylanaraps> It just spat out an endless stream of warnings 2019-12-03T20:06:58 #kisslinux <dylanaraps> Any error is annoying for me to fix. :P 2019-12-03T20:07:07 #kisslinux <dylanaraps> OK 2019-12-03T20:07:10 #kisslinux <dylanaraps> We errored 2019-12-03T20:08:14 #kisslinux <dylanaraps> > error: duplicate case value 2019-12-03T20:08:17 #kisslinux <E5ten> well I meant stupid/annoying relative to the error being somewhere else not just in general 2019-12-03T20:08:26 #kisslinux <dylanaraps> ooo 2019-12-03T20:08:32 #kisslinux <dylanaraps> This might be my fault. 2019-12-03T20:08:35 #kisslinux <dylanaraps> Heh 2019-12-03T20:08:55 #kisslinux <dylanaraps> I think I rewrote a patch which isn't needed anymore. 2019-12-03T20:09:08 #kisslinux <dylanaraps> ie I added code which is now already there 2019-12-03T20:09:32 #kisslinux <dylanaraps> This is the best case 2019-12-03T20:10:05 #kisslinux <E5ten> nice lol 2019-12-03T20:11:27 #kisslinux <dylanaraps> > // musl libc will set this up in pthreads support. 2019-12-03T20:11:30 #kisslinux <dylanaraps> YAY 2019-12-03T20:11:36 #kisslinux <dylanaraps> A musl fix in Firefox 2019-12-03T20:11:45 #kisslinux <E5ten> oooo very nice 2019-12-03T20:12:14 #kisslinux <dylanaraps> Whole patch can go 2019-12-03T20:12:17 #kisslinux <dylanaraps> neat 2019-12-03T20:39:55 #kisslinux <dylanaraps> E5ten: holy shit. iwd kinda has file based IPC right now. 2019-12-03T20:40:32 #kisslinux <dylanaraps> rename the connected .psk file to .psk.bak and you immediately disconnect. 2019-12-03T20:40:38 #kisslinux <dylanaraps> (as an example) 2019-12-03T20:40:49 #kisslinux <dylanaraps> Rename it back to .psk and you immediately connect. 2019-12-03T20:41:05 #kisslinux <dylanaraps> Can very easily write a simple client around that. :^) 2019-12-03T20:41:45 #kisslinux <dylanaraps> Pair this with my changes for scan results/currently connected. :D 2019-12-03T20:42:23 #kisslinux <E5ten> awesome 2019-12-03T20:53:06 #kisslinux <dylanaraps> https://termbin.com/sg4h 2019-12-03T20:53:09 #kisslinux <dylanaraps> ;) 2019-12-03T20:53:28 #kisslinux <dylanaraps> Output needs aligning but it works. 2019-12-03T21:01:27 #kisslinux <E5ten> 👌 2019-12-03T21:16:31 #kisslinux <dylanaraps> E5ten: https://termbin.com/zpfp 2019-12-03T21:16:36 #kisslinux <dylanaraps> Very barebones right now. 2019-12-03T21:16:48 #kisslinux <dylanaraps> connect/disconnect still need some thought. 2019-12-03T21:17:30 #kisslinux <E5ten> very nice that it's starting to come together though 2019-12-03T21:18:29 #kisslinux <dylanaraps> Yes 2019-12-03T21:18:40 #kisslinux <dylanaraps> Through abuse of the configuration file handling 2019-12-03T21:19:15 #kisslinux <dylanaraps> :P 2019-12-03T21:25:21 #kisslinux <dylanaraps> https://termbin.com/kf0i 2019-12-03T21:27:37 #kisslinux <E5ten> I assume auth only deals with non-enterprise networks? 2019-12-03T21:27:50 #kisslinux <dylanaraps> Yup 2019-12-03T21:28:00 #kisslinux <dylanaraps> Even Arch recommend setting up enterprise networks by hand. 2019-12-03T21:28:13 #kisslinux <dylanaraps> Dunno if the iwctl client actually handles them. 2019-12-03T21:28:25 #kisslinux <E5ten> I don't think it does 2019-12-03T21:28:43 #kisslinux <dylanaraps> It's something I *could* implement. 2019-12-03T21:28:52 #kisslinux <dylanaraps> I just don't have a test network to auth with. 2019-12-03T22:10:46 #kisslinux <E5ten> I don't even think I mentioned this here, but when I was switching to mdev, which requires using xf86-input-{keyboard,mouse,synaptics} cuz both evdev and libinput require udev, I saw that in git master xf86-input-keyboard actually removed linux support, meaning that come next release (which could be forever away because it sees absolutely no development) xorg will not be usable without udev, period 2019-12-03T22:11:25 #kisslinux <E5ten> if that release ever does come I'm just gonna revert the removal though 2019-12-03T22:12:14 #kisslinux <dylanaraps> Great 2019-12-03T22:12:37 #kisslinux <dylanaraps> Good thing is that you can either revert the commit through a patch or just stick to an older release. 2019-12-03T22:12:58 #kisslinux <dylanaraps> I laugh when I see that the BSDs pull in dbus for Firefox. 2019-12-03T22:13:05 #kisslinux <dylanaraps> It's kinda crazy 2019-12-03T22:13:23 #kisslinux <E5ten> not a hard removal to revert cuz the os-specific things are in individual files 2019-12-03T22:14:03 #kisslinux <E5ten> so it's just build system changes and file removals, no C files are actually changed 2019-12-03T22:15:22 #kisslinux <dylanaraps> wow 2019-12-03T22:17:55 #kisslinux <E5ten> the mdev-like-a-boss guy thinks that the person/people behind the change just didn't realize that evdev and libinput both require udev, so he brought it up in #xorg-devel and hopefully it was just that they didn't realize and they're willing to revert 2019-12-03T22:24:44 #kisslinux <dylanaraps> Ah 2019-12-03T22:25:16 #kisslinux <dylanaraps> https://github.com/dylanaraps/eiwd/blob/master/iwc 2019-12-03T22:25:24 #kisslinux <dylanaraps> Initial work done 2019-12-03T22:26:23 #kisslinux <E5ten> that's what I'm talkin' about 2019-12-03T22:27:33 #kisslinux <dylanaraps> This can also get rid of iwd_passphrase as it automates the entire process. 2019-12-03T22:27:36 #kisslinux <E5ten> iwctl deals with non-root access to /var/lib/iwd through dbus right? 2019-12-03T22:27:51 #kisslinux <dylanaraps> iwctl doesn't touch the files directly iirc. 2019-12-03T22:27:53 #kisslinux <dylanaraps> iwd does 2019-12-03T22:28:03 #kisslinux <E5ten> ah 2019-12-03T22:28:04 #kisslinux <dylanaraps> (through messages sent via dbus) 2019-12-03T22:29:33 #kisslinux <dylanaraps> I do all of the error handling early so the functions are nice and simple. 2019-12-03T22:29:54 #kisslinux <dylanaraps> find_network() is a little messy 2019-12-03T22:30:14 #kisslinux <E5ten> stty echo icanon leaves me unable to press enter for some reason 2019-12-03T22:30:31 #kisslinux <dylanaraps> Huh 2019-12-03T22:30:36 #kisslinux <dylanaraps> Hang on 2019-12-03T22:30:52 #kisslinux <dylanaraps> (Should just be 'stty echo') 2019-12-03T22:31:09 #kisslinux <E5ten> what does icanon do? 2019-12-03T22:31:31 #kisslinux <dylanaraps> Basically, whether or not input requires 'Enter'. 2019-12-03T22:31:55 #kisslinux <dylanaraps> I use it in pash to read a single byte without Enter 2019-12-03T22:32:10 #kisslinux <E5ten> makes sense 2019-12-03T22:32:54 #kisslinux <dylanaraps> Replacing 20k lines of C with a simple shell script feels good 2019-12-03T22:33:09 #kisslinux <dylanaraps> I know functionality won't be 100% identical but still 2019-12-03T22:33:30 #kisslinux <E5ten> yeah that's pretty great 2019-12-03T22:34:40 #kisslinux <dylanaraps> Now what's tricky is disconnection. If a network conf file is moved out of /var/lib/iwd you disconnect. 2019-12-03T22:35:31 #kisslinux <dylanaraps> What happens to the conf files we leave in that directory? 2019-12-03T22:35:55 #kisslinux <dylanaraps> We can't just leave them there if that makes sense. 2019-12-03T22:36:28 #kisslinux <E5ten> I feel like you might have to implement more complex IPC for the connection/disconnection to not be janky... 2019-12-03T22:36:29 #kisslinux <dylanaraps> They can also just be renamed (ssid.psk -> ssid.psk.disc) 2019-12-03T22:37:12 #kisslinux <E5ten> like I don't love moving configs between .bak and not for connect 2019-12-03T22:38:00 #kisslinux <dylanaraps> I've figured it out. 2019-12-03T22:38:03 #kisslinux <dylanaraps> I get what you mean. 2019-12-03T22:39:14 #kisslinux <dylanaraps> I just want to push out a simple client for now. 2019-12-03T22:39:44 #kisslinux <E5ten> yeah that completely makes sense, I meant long term 2019-12-03T22:39:50 #kisslinux <dylanaraps> Oh yeah 2019-12-03T22:40:06 #kisslinux <dylanaraps> I still need to fully wrap my head around the codebase. 2019-12-03T22:41:06 #kisslinux <dylanaraps> I'm behind on some offline and unrelated work too. 2019-12-03T22:41:32 #kisslinux <dylanaraps> So pushing some kind of client now-ish is my priority. 2019-12-03T22:42:01 #kisslinux <E5ten> oh man I feel that, I've got a project due tonight at midnight and a couple due tomorrow and I just keep procrastinating 2019-12-03T22:44:19 #kisslinux <dylanaraps> Heh 2019-12-03T22:44:26 #kisslinux <dylanaraps> I have too much fun with this stuff. 2019-12-03T22:45:22 #kisslinux <E5ten> ikr 2019-12-03T22:47:15 #kisslinux <dylanaraps> Anything missing from the current option list? 2019-12-03T22:49:43 #kisslinux <E5ten> uhhh iwctl has a ton of subcommands iirc 2019-12-03T22:50:04 #kisslinux <E5ten> status is one of them I can remember off the top of my head 2019-12-03T22:50:51 #kisslinux <dylanaraps> In terms of things that are core functionality? 2019-12-03T22:50:54 #kisslinux <dylanaraps> The base basically. 2019-12-03T22:52:10 #kisslinux <E5ten> scan in iwctl triggers a scan, get-networks list currently available networks (like iwc's scan), but I don't think that or status are really doable before more complex IPC is implemented so I think this is good for now 2019-12-03T22:53:06 #kisslinux <dylanaraps> OK 2019-12-03T22:53:09 #kisslinux <dylanaraps> Thanks 2019-12-03T23:11:35 #kisslinux <dylanaraps> ooo 2019-12-03T23:11:38 #kisslinux <dylanaraps> Firefox is done 2019-12-03T23:12:32 #kisslinux <dylanaraps> This is new: 2019-12-03T23:12:35 #kisslinux <dylanaraps> > Changing your language setting to English will make you more difficult to identify and enhance your privacy. Do you want to request English language versions of web pages? 2019-12-03T23:12:39 #kisslinux <dylanaraps> > NO YES 2019-12-03T23:28:47 #kisslinux <konimex> if the default is English (US) then that's a hard no from me 2019-12-03T23:29:03 #kisslinux <konimex> some sites only detect LANG and force their inches and pounds 2019-12-03T23:36:53 #kisslinux <zjp`> dylanaraps: Hey, when you get a moment, can you check the neofetch-alignment PR? I'm just wondering if there's a better way for me to check the user's config for label lengths 2019-12-03T23:37:41 #kisslinux <dylanaraps> Will do 2019-12-03T23:37:52 #kisslinux <zjp`> tyvm! 2019-12-03T23:48:16 #kisslinux <konimex> ALSA finally removed in 71? https://www.reddit.com/r/linux/comments/e5i714/firefox_71_released_improved_lockwise_native_mp3/f9k79nl/ 2019-12-03T23:49:03 #kisslinux <konimex> and why the fuck is the question downvoted is beyond me 2019-12-03T23:56:28 #kisslinux <dylanaraps> ALSA works fine here. 2019-12-03T23:56:33 #kisslinux <dylanaraps> 72.0b1 2019-12-03T23:58:30 #kisslinux <dylanaraps> Commented 2019-12-03T23:58:44 #kisslinux <konimex> so might be just distro defaults 2019-12-03T23:59:03 #kisslinux <dylanaraps> Yup 2019-12-03T23:59:17 #kisslinux <dylanaraps> brb