stardance has been extended another month! the new deadline is october 31 :)

You are browsing as a guest. Sign up (or log in) to start making projects!

Erox

@Erox

Joined June 2nd, 2026

  • 39Devlogs
  • 6Projects
  • 4Ships
  • 41Votes
I use arch btw
Open comments for this post

1h 27m 11s logged

ok so made a new formula for the workspace logic , its easy res(len)*scale^(-1) + c and here frm my tests i got c=10 for 1080p monitors. It works flawlessly in my setup but i still havent tested it on diff moniters so cant say its universal .okk added shr.rs and the logic is clean af . js do basic math easy , i made c configureable with a integer pass , pass the val of c and youre good , to go but i still havent decided vals for c for other setups , lets them try lol .bruh i added use fn branch after command and wondering , why i am getting unknown command “use” lol.wow got an error thread 'main' (15889) panicked at src/ls.rs:32:10:cant parse monitor data: Error("missing field `available`", line: 45, column: 1)note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace[erox@archbtw distroller]$ ok pretty good , there was a prob with the avalible in the struct in ls but i js used serde def haha always false if no val , i have hyprctl monitors all -j so nothing to worry anyways it works now

0
0
21
Open comments for this post

1h 12m 18s logged

this time i am making a shared window for both monitors so user can move mouse between them , after a lot of trail and err , in main.rs then in terminal and then in arch wiki finally pulled it off , safe position is 1290x0 for m2 and m1 will be 0x0 but its for 1.5x scaling not 1x or diff , oh now i need to make it diff for scaling’s too ahh god it sucks

0
0
22
Open comments for this post

44m 3s logged

ok now i am working on it to use it as cli tool not js cargo run and pray so i think i will start with passing a value in cargo for now .ok did some work and got the refresh rate thing working too , now cargo run –list , cargo run – scale and refresh works , and works pretty fine i will need to add some restrictions because scalling max is 10 , higher gives hypr err , higher ref rate on external hdmi = no signal also disabling eDP kills the waybar too oh thts my fault lemme fix my own waybar , done took a lil time but fixed , also i changed hyprctl monitors -j to hyprctl monitors all -j because after disabling one moniter , hyprctl monitors was ignoring the disabled one

0
0
18
Open comments for this post

20m 48s logged

added another feature it does the scaling thing , hm so i used hyprctl eval 'hl.monitor({ output = "eDP-1", scale = 1.0 })' hyprctl commands obviously and scaled the monitors i think now imma gonna add separate display scaling , not a prob for me as i still havent implanted any cli commands , but also i added refresh rate impl too in the io.rs js didnt used tht in main.rs gonna do tht soon
check the video here “https://youtu.be/PTmcT2p5NYg”

0
0
7
Open comments for this post

3h 9m 18s logged

Recently i got a monitor (thx stardance) and connected it to my laptop right away , but my hyprland didnt had anything to assign to the moniter , so it just went with the default one ,a diff workspace and i had to configure it a lot then finally got it to work but now i think i will make a rust based cli tool to automate those things . Easy right? for users not me lol .
see the poc :
distroller list
distroller use 1 (here 1 means the 1st moniter like for laptop , it is eDP-1, while the other moniters will turn off maybe? define the state in distroller.conf )
distroller use 2 (HDMI-A-1)
distroller use 1,2… (it gives each moniter diff workspace)
distroller use 1,2 –share (it makes both share a workspace but more like a single monitor )
distroller use 1,2 –copy (show the same thing)
i made it a codeblock but the comments () arent valid so dont copy these things ,
now imma gonna start building the base
so built the initial struct , btw i used u8 for height and width at first but it doesnt store 1920 or 1080 so i used u16 as it is better than u32 atleast i think so , also i used f32 for the refreash rate as hyprland give things like 59.64 sometimes , wait wtf am i explain? its basics nah i dont needa explain, nah, i’wd build .
ok added another struct to copy the vals to new struct wait wait , why am i such a fool? why did i made a struct to js push a value to next struct? wait i again figured a thing , i can js follow the hyprctl output’s structure lol ,
[erox@archbtw ~]$ hyprctl monitors -j
[{
“id”: 0,
“name”: “eDP-1”,
“description”: “BOE 0x094A”,
“make”: “BOE”,
“model”: “0x094A”,
“width”: 1920,
“height”: 1080,
“physicalWidth”: 340,
“physicalHeight”: 190,
“refreshRate”: 60.00400,
“x”: 0,
“y”: 0,
“activeWorkspace”: {
“id”: 1,
“name”: “1”
},
{
“id”: 1,
“name”: “HDMI-A-1”,
“description”: “XXX HDMI”,
“make”: “XXX”,
“model”: “HDMI”,
“serial”: “”,
“width”: 1920,
“height”: 1080,
“physicalWidth”: 10,
“physicalHeight”: 10,
“refreshRate”: 60.00000,
“x”: 1280,
“y”: 0,
“activeWorkspace”: {
“id”: 4,
“name”: “4”
},]
[erox@archbtw ~]$

made the best struct
pub struct Disp {
pub name: String,
pub refreshRate: f32,
pub w: u16,
pub h: u16,
pub focused: bool,
pub disabled: bool,
}
now just gonna fetch frm the hyprctl output and print done
ok added the code to run hyprlctl monitors -j and fetch the info , but then i got err js because i forgot to add the deserializer and then after i fixed lol cargo toml didnt have derde lol , and now i imported it as macro another lol , and now i forgot to import the feature deserialize with serde .
bruh this time i js got a err of version mismatch tht was added by cargo , how life can be worser?
ohhh it worked finally :

but wait the 2nd moniter was supposed to be 100hz default , ik its downsampled because of the other moniter , anyways i ’ll fix tht later hmhm now imma gonna make the other features .
okk broke main.rs and made ls.rs and main.rs , currently i kept the hypr func (the one to execute hyprctl with structed args as u want ) in ls as idh any hypr.rs , but i will soon move tht to somewhere else as ls.rs is for listing only , yeah thts why i named it ls , i didnt steal the name of ls bash command , wait i kinda did to be honest .ok after a lot of research , i found hyprctl eval ‘hl.monitor({ output = “eDP-1”, disabled = true })’ works to turn of the display so i can make a function inside my new io.rs and use it to turn off on on the display hmhm.
now imma gonna work on the turn off and on function
done it works , i js used hyprctl command to do it , it wasnt much hard
after finding some repos i found this hyprctl eval ‘hl.monitor({ output = “eDP-1”, disabled = true })’ it ran well so i made a file named
io.rs and implanted on main done and now it works though its not usable on terminal , cargo run does the work fine .

0
0
6
Open comments for this post

22m 44s logged

Bruh they literally returned it because it wasnt a ing frm working bot but the pfp of the bot , ok i respect your decision hereby i change the banner

0
0
25
Open comments for this post

16m logged

done hosted on nest and it works fine on slack too . o n the way it wasnt working , i tried all sorts of methods , systemd , the one it etc , pm2 but it didnt work and at last i saw in ssh idh the .env :lol2: . next is to ship it and write a good enough readme .

0
0
21
Open comments for this post

50m 43s logged

Upgraded the overall project , last time i rushed , used my old project’s code but now i will be
continuing the project no slop

0
0
14
Loading more…

Followers

Loading…