▲ 37 r/bspwm

[nex] Showcasing Layouts

Hello guys. I have added 3 additional layouts on top of bspwm. Renamed it to nex. And here is this workflow.

Might be slow in a 2gb ddr2 ram with screen recorder on. Else it is fast. Consumes 440 - 543 Mb RAM at startup, slowing increasing and stabilising somewhere near 600Mib. CPU @ idle is 10% (mine is very old, yours may be even less)

Current layouts :

- binary (bsp) (scheme : alternate, spiral, longest side)

- monocle

- tall (variants normal, reversed)

- wide (variants normal, reversed)

- grid

Any suggestions?

Repo : https://github.com/cobra-r9/nex

Dotfiles : https://github.com/cobra-r9/nordwolf

u/rudv-ar — 2 days ago
▲ 37 r/bspwm

[nex] A fork of bspwm with layouts.

Hello guys. I created a window manager based on bspwm, which you can call it an extension. Previously, it had tiled and monocle layouts, I extended to include wide and tall, renamed tiled to binary layout.

I am planning to do a major refactor on the entire codebase (of bspwm -> nex). Give your suggestions, on what to add, how, etc.

Definitely -> the code base was hard to understand with functions spread across many files. So I used claude to help me understand what every function does. But still, I was unable to grasp.

I am going to write it from scratch. With inline comments and documentation. There will be no AI used in this rewrite I am gonna do.

If you people are interested, tell me what name I can give it. Also currently we are using sxhkd for keybindings. Standalone unlike other WMs. I am planning to integrate it into the wm itself with some command syntax like this :

`ipc keybindings [super + alt + c + h] { shell commands seperated by ;}`

Something like this.

u/rudv-ar — 3 days ago

Finally, my first project : learn C, then learn C by building.

Hello guys. Finally, after learning enough C to get started, I built my first C project. A client daemon based pomodoro using UNIX sockets. Currently explaining my own code in the docs section. Line by line. Give me suggestions based on the explanation. (So that it might be easy for me, as well as other beginners to learn C by building something) .

No AI was used in making of this project.

Git : https://github.com/cobra-r9/pomoc.git

github.com
u/rudv-ar — 7 days ago
▲ 139 r/bspwm+2 crossposts

Polybar Module : pomodoro

This is new pomodoro module I made for polybar in C. Uses unix socket for communication - pomod is the daemon, pomoc is the client. Have two bash scripts to integrate into polybar like this.

Repo : https://github.com/cobra-r9/pomoc

Would like people to try and tell their experience. Any suggestions on what to improve it on?

u/rudv-ar — 9 days ago
▲ 44 r/Polybar

Pomodoro in Polybar

Hello guys. Recently I made a pomodoro daemon and client in C. I added two scripts and it seamlessly integrated into polybar. (Right = pomodoro, Left = Workspace).

Here is the link for the repo : https://github.com/cobra-r9/pomoc

Ppl who are willing to try?

u/rudv-ar — 9 days ago
▲ 123 r/nordtheme+1 crossposts

[bspwm] Nord?... :)

Is not this calm enough to use for long time? This is my final stable rice (not gonna rice again, maybe not different rice).

u/rudv-ar — 10 days ago

fread : how do I error check and find if it was a partial read?

Hello guys.

I was learning fread. I have a doubt - fread(buffer, sizeof(buffer), 1, file) vs fread(buffer, sizeof(char), sizeof(buffer), file) : what is the difference between these two. When should I use them?. Buffer is a chat array of size 1024.

Here is the git gist of my codes. I was trying to read from a file called demo.txt, which has size less than 1024 bytes.

There are two tries : fread-error.c and fread-doubt.c

IN fread-error.c, the output was : file reading failed.

IN fread-doubt.c, the output was fine : but that was a partial read, is not it? Then how do I check for partial reads?

Case 1 : file size is less than buffer size.

So there is a partial read? (As in fread-doubt.c). But how do I know if the file size is less than buffer size in prior?

Case 2 : file size is exactly greater than buffer size.

How do I assign the buffer the exact file size amount of bytes before the read?

Case 3 : file size is greater than the buffer size. But how do I know that the file I am reading is greater than buffer size? This will lead to partial read right? (If filesize > buffer)

I know. It is an array of questions. But right now I am confused and need to be clear how actually to read in all three cases with file read checks and check for partial read and ferror.

Gist : https://gist.github.com/cobra-r9/50e4d705f75ebcae45fdcab550bba7e4

u/rudv-ar — 14 days ago

How much should I learn? How long? And what?

​

I am a student. Just finished my schooling. Into cse specialisation in cybersec. Waiting for university to open.

Currently learning C. My journal for learning C can be found in: https://cobra-r9.github.io/Init87

I need to reverse engineer stuxnet solely. (Though unrealistic, but could it be possible?). What should I lesrn to do it? You can judge the quality of my code and understanding from those links so that it would be easy for you to give an accurate answer. And this repo

https://github.com/cobra-r9/Init87

What should I learn? Apart from C? And how long might it take based on my methodology of learning?

reddit.com
u/rudv-ar — 24 days ago

Regarding what to learn? How long to learn?

Hello guys. I have been learning C for about a month and this is what I have done. I have learnt programming previously - python, bash, but partially.

I was using linux since I was 15 years old. Classic hackers rabbit hole. After seeing some random video in YouTube about termux, I installed it @15, then kali linux after ditching windows. Then parrot os. After which I realized : I need to actually learn instead of just following tutorials and videos.

I was forced into biology stream, yet I managed to self learn C. Then I read some random PDFs and books about how to become an ethical hacker. It slowly converged into general cyber security. Then I started working on an unrealistic motto : reverse engineering and studying stuxnet solely by my own. (Lol, but I don't know whether it is possible or not, or how long it takes). I am using it as a motivation to learn low level currently.

Now I use arch by the way and am mentally stable. By August, my college first year begins and I need help regarding the actual reality in the field. Low level as well as Cyber Security. I took cse (specialisation in cybersec).

I feel like I need to be ahead of other peers and am chasing a doubtful thing - reverse engineer and study stuxnet.

My status now : in learning C - https://cobra-r9.github.io/Init87

This is just a github readme based blog where I wrote down my doubts and their answers regarding C in my own words + some AI TLDRs.

And my codes can be found in https://github.com/cobra-r9/Init87 at main branch.

I am currently following a pathway for learning C (completely).

https://github.com/cobra-r9/Init87/blob/web/pathway/01-basics.md

**I need help whether I can achieve what I am willing to do**, or how long it is going to take me for doing this. Is this realistic?

TLDR :

I am a student. Into cse specialisation in cybersec. Currently learning C. My journal for learning C can be found in : https://cobra-r9.github.io/Init87

I need to reverse engineer stuxnet solely. (Though unrealistic, but could it be possible?). What should I lesrn to do it? You can judge the quality of my code and understanding from those links. And this repo

https://github.com/cobra-r9/Init87

What should I learn? Apart from C? And how long might it take based on my methodology of learning?

I have just completed my schooling and waiting for university to open.

reddit.com
u/rudv-ar — 24 days ago

[bspwm] My workflow with shell

After theme integrations to the terminal and some additions to cli tool, I have a fairly productive setup. Arch + Nix; + nixos in another partiyon for experimentation (Ah, I can't even afford a VM). Intel i915. Yet it is smooth (without screenrec).

Refer to caelestia branch. Not the main branch.

https://github.com/rudv-ar/aevum-shell

Screen Recorder : ffmpeg

u/rudv-ar — 27 days ago

[bspwm] Caelestia like? Somewhat?

Hey guys. I am near the end : finishing the left bar. Thou it is only indicator stage and no clickable functions wired. But it indicates, wifi, bluetooth, audio and mic + battery(in laptop only). Soon to add system tray icons too. Then gonna wire the hover reveal stuffs.

Dynamic theming enabled for now.

u/rudv-ar — 1 month ago
▲ 117 r/bspwm+1 crossposts

[bspwm] Somehow...

Managed to integrate the caelestia's sidebar in aevum shell. Your opinions? Looking forward for early access people. Need someone to try this.

Caelestia in x11. Has both verical bar version (caelestia branch) as well as horizontal bar version (main branch)

Git repo : https://github.com/rudv-ar/aevum-shell

For *Nix* people - work is on the way and you should be able to give a try. Though advanced users can try now.

For arch, follow the installation manual in the caelestia branch of aevum.

u/rudv-ar — 1 month ago
▲ 60 r/bspwm+2 crossposts

[bspwm] caelestia's rightpane in x11.

Previously. I posted about building a caelestia like shell in x11. Here it is, midway processing through actions pane. (Right pane).

Added toggles, screen recorder(custom made using ffmpeg) and a Keep Awake toggle. Notifications Center not yet made. Yet - here is a demo.

Give me some suggestions.

repo : https://github.com/rudv-ar/aevum-shell

Looking for people who can try and spot bugs. It works fine in my PC.

u/rudv-ar — 1 month ago
▲ 111 r/bspwm+2 crossposts

[bspwm] caelestia for x11?

Nope. We cannot make exact copy. But I am trying to make one. Welcoming contributions.

Able to run smoothly (ignore lagging due to recording in background) in intel dual core, legacy pheonix bios. 2 gb ddr2 ram memory.

idle ram usage : 800-840 mb

shell startup time : 30 seconds (intentional delay in my case)

Currently - zero issues - works in my machine.

u/rudv-ar — 2 months ago
▲ 6 r/bspwm+1 crossposts

Caelestia for X11 Bspwm?

Hello guys, successfully I have ported "some" looks of caelestia combined with end 4 to my x11 shell. I named it aevum shell (previously it ws rudv-shell, now migrated to this new repo). It would be better if someone is able to join me in creating this. I first tested it in bspwm and works pretty well.

Here is the link to the repo : https://github.com/rudv-ar/aevum-shell.git

I will be adding the images ASAP.

reddit.com
u/rudv-ar — 2 months ago