-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shell subprocessing + keyboard support? questions #16
Comments
Hi! Thanks for writing down your thoughts. Some answers:
Me too! 😃 I first wrote this to blow minds in /g/ desktop threads.
In short: No such API, because security. But you can do it with a web server.
I agree it's lacking for that. I've tried to keep hudkit focused on just the task of "put a transparent web view over your whole desktop", to keep it useful also for programs other than taskbars. It would be very cool to have a separate project that uses hudkit, which is focused specifically on taskbars. It could automatically start a web server, exposing an API that lets the page JS access the sorts of data you mention. If you want to have a go at making one, I'd be happy to advise and answer questions.
(For other readers' reference, that's PR #12.) The PR lists its outstanding problems, but if those don't bother you, feel free to use it. |
Thanks for replying! While waiting for your response, I tried eww and stylizing with CSS was very limited for someone who takes CSS for granted (cannot I didn't know that there were branches for things that I just admitted about, nice to know. I admire your statement about the subprocess functionality of Hudkit, never thought of a random suspicious "website" made for Hudkit would be that destructive. The workaround seems better, because you can put any external necessary data (e.g. desktop.ini files for a rofi-like application), as I saw that not only Hudkit supports files but any link given. Never thought of that because of a scenario what if a port already got preoccupied, and how it should run because you have 2 processes running (in my case, All that is left is to know how I would use them and it would be handled by me. So who would put in the tags EDIT: Besides how do you think one would put the system tray icons on Hudkit? |
I use a #!/usr/bin/env bash
PORT=5004
echo "Starting web server"
( node server.js "$PORT" ) &
echo "Waiting for server port to open"
while ! (ss --tcp --listening "( sport = :$PORT )" | grep LISTEN > /dev/null); do
sleep 0.1
done
echo "Starting hudkit"
( hudkit "http://localhost:$PORT" ) &
# Wait for any child process to exit
wait -n
# Kill all child processes
kill 0
I "solved" that above by making the port configurable. If there's a conflict with port The proper way to do this on Linux would be to bind the server to port
GTK3's StatusIcon API is deprecated, so I'd rather not depend on it. Hudkit may have to migrate to GTK4 eventually, if/when WebkitGTK gets GTK4 support. |
I currently do that by having You can also disable the desktop switcher with an i3bar config property |
Alright that should probably take care of my concerns on making a "desktop environment" with Hudkit. |
This is an interesting repository as I recently did web development and is into r/unixporn, but I have some questions assuming if this project is still active.
Is there any API or a workaround for subprocessing for getting external information? (active workspace number, filesystem utilizing, dbus utilizing, or powering or rebooting from a powermenu window made with this)
I'm planning to add keyboard support for my powermenu window, but apparently, I saw your pull request about keyboard support, can I utilize it?
At first glance, I felt like this API is a bit lacking, because I feel like it's specifically made for HUDs or status bars to show time, computer performance, etc., unless if this is something made for fun.
Using i3 as my window manager.
The text was updated successfully, but these errors were encountered: