Yeah, I have that as a shortcut in my bluetooth i3 bar blocklet. It's really useful, especially with the autocomplete via <Tab>. I just wish the driver was a bit more stable..
Regarding the WiFi card, I'd suggest contacting Dell and see if they can replace it with an Intel card for you. I did exactly the same for my 9360 back then, and they ended up sending over someone who disassembled the device, took out the Killer card, and swapped in an Intel 7265 (or something like that). WiFi has been rock-stable since then.
I think they should do the same for you, especially since you also got the developer edition, which is meant to fully support Linux. Ask for an AX200, I can confirm that one's working with Arch on the 5.5 kernel.
I can confirm that this is working on my XPS13 9360. I used the same method which I found on StackExchange/AskUbuntu back then: https://askubuntu.com/a/1036122/164198
For some reason, I have an unexplainable aversion against global variables, blame my university C course for that. I will look into it, that's probably a better alternative.
It should, I need to add support for the logout command though - could you tell me the value of your XDG_CURRENT_DESKTOP, and the command you use to logout/end your session?
To be fair, that requires multiple shortcuts, one for each action. By using a graphical app, I only need one shortcut, and two clicks to execute an action, which first reduces the risk of accidentally triggering it, and keeps more shortcuts available for others use-cases/applications. It's also still much faster than always typing the command manually in the terminal.
Honestly, this is such a small program, that it's nowhere near being considered as bloat. When using i3, you already have many small external commands & scripts that you use for e.g. changing your volume, changing brightness, and manage networking. Imo the strength of i3 is that you have control on how to do each one of them, and the flexibility to do it in multiple ways.
My program can mostly be seen as a replacement for i3-nagbar, which I previously used as an interface to shutdown/logout/etc., however I wasn't a fan of the - kinda out of place - design, and the missing keyboard control - e.g., you can't hide it by pressing Escape, which my program supports (albeit with a small bug at the moment when not being executed from the terminal, I will fix that though).
Yeah, true, that'd need to be updated/changed if some DE requires a longer command, and potentially made dynamic to not waste memory much more than required - at the moment, 16 bytes will do though.
An easy fix for this issue would be to move the command strings into a define, and do a strlen on them before malloc, and then allocate exactly the needed size, afterwards str(n)cpy.
I didn't like the design of the i3 included nagbar as a power management dialog, especially with the missing keyboard controllability, so I build my own with GTK. At the moment, the logout button only works on i3, but should be able to support other DEs in future.
I'm looking forward to your feedback, especially considering the code, it's been a while since I last wrote C code and this is my first GTK project.
i3, GNOME Terminal (yes), fish, Vim.
Also everything JetBrains (mostly IntelliJ though).
I'm using Dank Mono as a font for the Terminal and all text editors/IDEs. Very comfortable to read. Alternatively, Fira Code is also pretty good. In the terminal, I'm using the Nord colorscheme.
With MiXplorer via SFTP
iridiumandsiliciumfor my servers,GLaDOSandchellfor my desktops. My laptop is justxps13. Boring, I know.Twice or thrice now. All different machines, copying over as much config as possible. All the "issues" that I had could be resolved easily.
I have 32 GB. My system is really efficient. Then I start Android Studio/Gradle, and my memory usage jumps up to 20 GB..
Yeah, I have that as a shortcut in my bluetooth i3 bar blocklet. It's really useful, especially with the autocomplete via
<Tab>. I just wish the driver was a bit more stable..I was using
whipperrecently, works without problems and verifies the ripped tracks as well.Yikes. I didn't know that, thanks for the heads-up.
Regarding the WiFi card, I'd suggest contacting Dell and see if they can replace it with an Intel card for you. I did exactly the same for my 9360 back then, and they ended up sending over someone who disassembled the device, took out the Killer card, and swapped in an Intel 7265 (or something like that). WiFi has been rock-stable since then.
I think they should do the same for you, especially since you also got the developer edition, which is meant to fully support Linux. Ask for an AX200, I can confirm that one's working with Arch on the 5.5 kernel.
-fCsicause I want to make sure I get a new & clean build..Fixed link.
I can confirm that this is working on my XPS13 9360. I used the same method which I found on StackExchange/AskUbuntu back then: https://askubuntu.com/a/1036122/164198
It is! Even with varying animations. And hey, it executes the command you actually wanted afterwards, so it's a bit kinder.
gti. Similar to sl.
Fixed it. I am now returning a reference to a const char pointer. I hope that's what you meant.
I've now added a screenshot to the README.
It builds entirely on GTK/GDK, so it should work. Could you maybe try and report back? That'd be highly appreciated! :)
This, exactly. Tbh, it'd be nice to have the nagbar fixed some time, but in the meantime, my little program should help.
Oops yeah, meant that. The variables are definitely pure evil.
For some reason, I have an unexplainable aversion against global variables, blame my university C course for that. I will look into it, that's probably a better alternative.
It should, I need to add support for the logout command though - could you tell me the value of your
XDG_CURRENT_DESKTOP, and the command you use to logout/end your session?To be fair, that requires multiple shortcuts, one for each action. By using a graphical app, I only need one shortcut, and two clicks to execute an action, which first reduces the risk of accidentally triggering it, and keeps more shortcuts available for others use-cases/applications. It's also still much faster than always typing the command manually in the terminal.
Honestly, this is such a small program, that it's nowhere near being considered as bloat. When using i3, you already have many small external commands & scripts that you use for e.g. changing your volume, changing brightness, and manage networking. Imo the strength of i3 is that you have control on how to do each one of them, and the flexibility to do it in multiple ways.
My program can mostly be seen as a replacement for i3-nagbar, which I previously used as an interface to shutdown/logout/etc., however I wasn't a fan of the - kinda out of place - design, and the missing keyboard control - e.g., you can't hide it by pressing Escape, which my program supports (albeit with a small bug at the moment when not being executed from the terminal, I will fix that though).
Yeah, true, that'd need to be updated/changed if some DE requires a longer command, and potentially made dynamic to not waste memory much more than required - at the moment, 16 bytes will do though.
An easy fix for this issue would be to move the command strings into a define, and do a strlen on them before malloc, and then allocate exactly the needed size, afterwards str(n)cpy.
Thanks for the review!
Will do! I was just too tired yesterday evening and wanted to push out the package. I will add them today after work.
UPDATE: Just added a screenshot & changed some other small things.
I didn't like the design of the i3 included nagbar as a power management dialog, especially with the missing keyboard controllability, so I build my own with GTK. At the moment, the logout button only works on i3, but should be able to support other DEs in future.
I'm looking forward to your feedback, especially considering the code, it's been a while since I last wrote C code and this is my first GTK project.
i3, GNOME Terminal (yes), fish, Vim.
Also everything JetBrains (mostly IntelliJ though).
I'm using Dank Mono as a font for the Terminal and all text editors/IDEs. Very comfortable to read. Alternatively, Fira Code is also pretty good. In the terminal, I'm using the Nord colorscheme.