mccd

joined 2 years ago
[–] mccd 4 points 8 months ago

Sure:

bar {
    position top
    mode dock
    strip_workspace_numbers yes
    gaps 5
    status_edge_padding 0
    # When the status_command prints a new line to stdout, swaybar updates.
    status_command while printf \"%s :: %s" \"$(date +'%H:%M')\" \"$(cat /sys/class/power_supply/BAT0/capacity)%\"; do sleep 60; done 
    colors {
        statusline #f6f6f6
        background #272727
        inactive_workspace #272727 #272727 #f6f6f6
        focused_workspace  #f6f6f6 #f6f6f6 #272727
    }
}
[–] mccd 4 points 8 months ago (1 children)

I'm a big fan of the TWM/plan9 look, so it makes sense. Thanks! :)

[–] mccd 9 points 8 months ago

My latest setup, where I attempt to use Nix without home-manager and with rc-shell.

Cool fact about this setup is that I have a custom setup for Kakoune for note-taking, where I can take notes in any file format by adding a [cf:tag] or [:tag]. If [cf:tag] is added to a file, if I mention that tag anywhere it will be highlighted and I can click on it (by help of alacritty hints) to got that specific file.

General info:

  • OS: Nix
  • Shell: rc
  • WM: sway
  • Applications: cat info.txt, tig, kakoune, custom bemenu, swaybar
  • Fonts: Iosevka SS13 Extended, Iosevka Aile
95
submitted 8 months ago* (last edited 8 months ago) by mccd to c/unixporn@lemmy.ml
 
[–] mccd 2 points 9 months ago

You might have some luck at https://deskto.ps/

[–] mccd 1 points 1 year ago

Seems the download button is broken? Would love to read this but I can't.

[–] mccd 3 points 2 years ago

Oh neat, TIL about old.lemmy.sdf.org. That's great!

[–] mccd 2 points 2 years ago (2 children)

Neat, how do you manage lemmy? Any particular client you use?

[–] mccd 1 points 2 years ago
  • Where I live taxis are not safe, neither is public transport for someone that looks like me, uber/car is the safest option to get around unfortunately.
  • Taking photos of family and events
  • 2FA
  • Google maps - don't think I could get around without it.
[–] mccd 2 points 2 years ago* (last edited 2 years ago) (1 children)

My feeling for Go and why I went with it for my project is that I think it is the language that sucks the least for server development since I value simplicity, decent performance, fast feedback loop, portability, offline docs and good tooling. It also has a big userbase, and I have a bunch of obscure tooling elsewhere so I felt I didn't want to introduce more esoteric choices. But it felt a bit sad that it was the best option.

I also looked at Elixir but found the layers of abstractions a bit intimidating and I heard stories that compilation times becoming long.

Ocaml ticks most of the boxes of what I look for, but the library ecosystem is immature for server development IMO.

Do you have any language you prefer?

[–] mccd 2 points 2 years ago* (last edited 2 years ago) (3 children)

Yeah I'm very new to the language; I like the simple toolchain and network libraries but the way I need to reimplement a bunch of primitive functions surprises me a lot (no math.Max for ints ??). I feel productive in Go, but a part of me feels that is just because I'm outputting so much boilerplate haha.

If I could have ocaml with the toolchain and library ecosystem of Go, I'd be happy.

17
submitted 2 years ago* (last edited 2 years ago) by mccd to c/unixporn
 

Hey everyone!

Recently managed to figure out my memory issues, had a corrupt ram that I needed to replace. Openbsd has now been running great and all the memory issues are gone.

I fell in love recently with dithered images, it creates an amazing aesthetic.

Setup:

OS - OpenBSD
Term - Xterm
Shell - sh
WM - cwm
Font - Go Mono
Applications - imv, vim, xclock

My vim theme is a slightly modified version of the default quiet theme. Just changed the background and comment color.

[–] mccd 1 points 2 years ago* (last edited 2 years ago)

It was suggestions from the subreddit and irc that it's probably a harddrive failure. The kernel devs wanted some more details, but at that point I had already deleted OpenBSD and gone back to Alpine. I might give it a spin again later and if the error happens, I'll be sure to include the full panic report.

Thanks for suggesting smart, I gave it a spin and it seems the harddrive is healthy?

$ doas smartctl -H /dev/nvme0n1
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

My new suspicion is that I did something funky with the kernel parameters and fstab to try and speed up the system which made it panic.

EDIT: Welp, the issue was with the RAM. Now that's replaced, all is well.

[–] mccd 2 points 2 years ago

Really nice. We're in the process of setting up office tooling for my work, and there is little competition for Google Suite, since it's cheap as hell and includes so much. Some competition in the space is very welcome.

One thing that scares me about proton is that git send-email seems to not work great (at least according to git-send-email.io). Anyone knows if that is still accurate?

8
submitted 2 years ago* (last edited 2 years ago) by mccd to c/unixporn
 

Presenting my new setup :)

Applications Xclock, xterm, qutebrowser, vim, mandocs, pfetch

Vim theme: Default quiet theme with modified background

Font: Iosevka SS13 E X T E N D E D, Iosveka Aile

view more: next ›