having a phone from this decade is bourgeois decadence
Great work comrade
having a phone from this decade is bourgeois decadence
Great work comrade
Hot damn that is responsive. I'm a Lemmy admin, is there an easy way to get this going for my instance? Docker container maybe?
Excellent work, comrade.
Alrighty, here's what I've got
FROM golang:1.21
WORKDIR /app
COPY . ./
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false .
EXPOSE 4000
ENTRYPOINT ["/app/hex"]
#CMD ["-hb","https://lemmygrad.ml/api/v3/"] #Optional
basically just clone the repo, cd into it, create a file with the above lines in it called Dockerfile (uncomment and change the instance base URL if you want to), and then run some docker commands like this:
sudo docker build --tag diethex .
sudo docker run -d --publish 4000:4000 diethex
Then you should be running on port 4000 to test out. Then map the port however you need it and pipe a subdomain to it using nginx as needed.
Oh and if you want to change the title, remove the taglines, etc, you'll need to edit the page templates in files/... It should be pretty straightforward to just change the title/header and remove the MOTD/taglines. I did it but only for the main page.
Incredible! That's pretty much what I was gonna say. Might throw this dockerfile in the extras folder.
Yea the hexbear specific stuff basically boils down to the taglines, the emojis, and the header in home.tmpl
. There's quite a few things I could do to make it a lot easier to use for other lemmy instances ... there's not a lot of configuration right now, but I tried to leave a lot of comments in the code.
it was built for a purpose and it accomplishes that swimmingly! and yeah feel free to do whatever with the dockerfile, hope people get some use out of it. I think the templates are simple enough that people can just do their own cosmetic changes but if you have ideas...
also for the dockerfile, copying in the entire repo contents probably isn't the most elegant thing but it was being annoying when I tried to do it other ways
Thanks a lot! I just haven't been home to mess with it yet.
good luck
You could do it but you'd have to be willing to do some of the docker stuff yourself. it shouldn't be too hard, just writing a dockerfile that installs the deps and the compiled app and runs it. OP is running it as an openrc service so that doesn't (likely) help you. some hexbear specific stuff is hardcoded but not a ton I don't think.
And of course you'd have to change the baseurl in hb/hb.go
Okay I got bored and decided to play with it. I got it running in a docker pretty easily, going to see how well pointing it at other instances works now. Will post Dockerfile and results.
Edit: okay, it works fine pointed at a non-hexbear instance (and you don't need to edit code, it's a command line flag.) Buuuut, the title still says diet hexbear and the taglines are all still hexbear's
the taglines are all still hexbear's
This seems like a feature
literally praxis omfg I can browse this stupid site with a light theme.
Excellent work. It is fast as hell. I once tried doing something similar myself where I tried to basically take libreddit and hack it to use lemmy API though I ended up giving up.
aaahhhhh this is so good! so lightweight! no js!! I am in love, thank you for this!
Based and coder pilled.
I'm on a plane with some dogshit WiFi and this is very handy
Question for OP and others with old phones, does Photon UI work any better for you?
Please let me know!
lemmy world but fast.. nice
now do a good instance!
well there are other instances that have Photon, i was just curious how fast it was for those with slow hardware.
god damn
we love our posters
Dumb thought: HTTP-only variant that renders fine on late '90s-early '00s browsers. I'm basically Strong Bad so i'd appreciate it
I think the only major things would be around the css selectors like footer > * + * {
, but it wouldn't really take too many changes. It basically already works in w3m
honestly this one is simple enough if you just removed some theming that would probably work
I really like the URL. "Die The X" heh heh
Die, Thex!
This is very cool. Looks great. So fast and light.
Also look into Lemmy client applications. Jerboa is made by the developers of Lemmy and is fairly lightweight.
comrade i'm in love with you wtf
This is what the main site should default to and look like with maybe that subtle alternating background color for comments.
Good shit. I'm definitely going to use this on my phone. Honestly, if you could find a way to get avatars to show up (I'm guessing that breaks the no Javascript rule), I would even use it on my desktop because its performance is so much better.
definitely don't need js to render a little image by a name
though it does make the page bigger and slower to load ig
u are literally my hero <3
cccoool! keep that phone going as long as you can!!
Neat!
Cool now I can bring all my homeless druggie friends with their shit ass Obamaphones on board.
The most amazing humans browse this site
comrade kota pic irl
Buy a Blu phone. I've been buying them for a while now, and I'm on my third one in over 15 years. The last one I bought wat just because it was a good upgrade. They're cheap and durable.
I have the worst phone.
Seriously, Pluto needs to give its citizens better phones and start feeding its people!
Why don't the people just overthrow the government of Pluto already?
Welp, gotta slap more sanctions on Pluto. That'll teach 'em!
Sounds like Pluto needs a hefty dose of Freedom(TM) and Democracy(TM)
The method of delivery is a US military invasion
Bring your Space Force, America! Let's duke it out!
Heck yeah, if you added logins and posting, it would be basically brutaldon for Lemmy, something I've been pondering for years.
I bet there's like 100 experienced front-end devs who'd like to make lemmy-ui faster/better/light-weight but nobody can run the UI locally, in fact it looks like it's easier to use any of the 3rd party apps. example: Xyphyn/photon or make you're own from scratch.
heh, yeah getting lemmy to run locally w/o docker was a pain and it took me a while to get it going.
This is very cool
Hell yeah
This is excellent! Great job!
the fediverse is so cool for stuff like this. reminds me of the justmytoots website, which unfortunately doesn't work for me on most instances. it would be cool if it worked on lemmy to quickly grab all of someone's posts only in that stripped down UI
On the road to fully automated luxury gay space communism.
Spreading Linux propaganda since 2020
Rules: