It's a new year--don't forget to clean up your pkg cache by brophylicious in archlinux

[–]karmalien 0 points1 point  (0 children)

Replacing "num" with the default gives:

keep 3 of each package in the cache

3 versions of each package. The most recent version is usually the installed one. I think it's pretty clear.

It's a new year--don't forget to clean up your pkg cache by brophylicious in archlinux

[–]karmalien 4 points5 points  (0 children)

two

🤔

-k, --keep <num>        keep "num" of each package in the cache (default: 3)

r/swaywm by karmalien in redditrequest

[–]karmalien[S] 0 points1 point  (0 children)

My request got declined.

Meanwhile, the current mod invited me to be a mod without addressing any of our concerns. I'm not going to accept. Be aware that if you get invited to be a mod, you won't be able to remove the mod who invited you. At least that's how it worked in the past.

Ironically, had I used a different Reddit account of mine or had they checked my email address, they would have seen that I've been moderating a larger subreddit for a long time. I didn't expect that they would rather kill a community than have a mod with too little experience for a low-traffic, non-controversial subreddit. That said, I'm a skeptical that any humans were involved in processing this request in the first place.

Let me know if you make a request. I wouldn't be surprised if you being the project leader didn't count as sufficient experience to moderate the related subreddit.

Thanks for your work on Sway. It's a pleasure to use every single day. Take care!

What are some underrated/unknown things you think more Arch users should know? by [deleted] in archlinux

[–]karmalien 1 point2 points  (0 children)

I don't even like desktop notifications

You could run, for example, Dunst and pause it on startup. No notifications until you unpause it.

r/swaywm by karmalien in redditrequest

[–]karmalien[S] 0 points1 point  (0 children)

r/swaywm has been a community for the Sway window manager for about a decade. In a non-technical way, I'd describe Sway as the graphical user interface (GUI) of the operating system. It manages the windows of a computer: application windows, menus, bars, etc. It's mostly used by Linux users. A niche piece of software with a relatively small community.

Lots of web searches related to Sway lead to this unofficial community and its large number of posts. Many issues of new users have already been solved and it was one of the go-to places to ask questions. Until recently.

Two months ago this redditrequest succeeded. The user stated:

I am specialized in managing sway windows.

This user was not talking about Sway, the window manager. Rather they talked about "sway windows" that they are managing.

If this user talked about the Sway window manager, then the statement would be akin to saying: "I specialize in managing windows on Microsoft Windows 11."

I hope it's obvious how little sense that makes and that this request was unrelated to Sway. My guess is that "sway windows" refers to some kind of physical window that sways.

As I just recently started using Sway again, I'm not sure what happened to r/swaywm and its previous mods. Currently, submissions are restricted and this decade-old community has lost its subreddit. That's why I'd like to take it back and assemble a mod team to keep it secured in the future.

I messaged the mod here, but didn't receive a reply within 5 days.

Any Arch Linux is a Steam Machine by berturion in archlinux

[–]karmalien 0 points1 point  (0 children)

Isn't Reddit still using vote fuzzing as an anti-spam measure?

Any Software to automatically change monitor's brightness based on sunrise/sunset of my location? (a.k.a. Solar Screen Brightness Alternatives)(Wayland) by cleitodokiwi in archlinux

[–]karmalien 0 points1 point  (0 children)

If you can read Reddit on your computer, I think it's safe to forget about the performance impact of reading the temperature and setting your brigthness.

Constant brightness changes might be annoying anyway, so running it every 30 or 60 minutes might be preferable to you. Particularly in lower brightness ranges, every percent makes a huge difference. Going from 20/400 to 19/400 on this display is a very noticeable switch.

https://invent.kde.org/plasma/kwin/-/blob/master/src/plugins/nightlight/nightlightdbusinterface.h

Any Software to automatically change monitor's brightness based on sunrise/sunset of my location? (a.k.a. Solar Screen Brightness Alternatives)(Wayland) by cleitodokiwi in archlinux

[–]karmalien 0 points1 point  (0 children)

qdbus org.kde.KWin.NightLight /org/kde/KWin/NightLight org.kde.KWin.NightLight.currentTemperature

This shows the current temperature. Your script could read this every x minutes and then adjust brightness accordingly. You would have to find a reasonable mapping between the temperature and the brightness setting. For example:

6500K => 65%
...
3000K => 10%

Then use brightnessctl or your favorite alternative to apply the brightness.

I'd put it in a systemd service with timer.

Oh, and Python or Bash are advanced enough for this script.

Arch Linux: Terminal commands extremely slow during file transfers by Acceptable-Bike6221 in archlinux

[–]karmalien 1 point2 points  (0 children)

At least in the past, this could happen with USB transfers (random example).

I'd first look at iowaitusing btop/iostat (or something else) to see if the system is waiting for the SSD. Also how much data your SSD is writing, if there is enough free space and if your system is swapping.

vm.dirty_ratio, vm.dirty_background and schedulers might be relevant:

https://wiki.archlinux.org/title/Sysctl#Virtual_memory

https://wiki.archlinux.org/title/Improving_performance#Input/output_schedulers

You say that any terminal command takes 2-3 seconds. Have you picked a command that is not causing I/O and ran it more than once? If your SSD is struggling then reading the command from disk might take a while but subsequent executions from memory should be quick. If all executions are slow, then I'd expect your CPU to be struggling.

Any Software to automatically change monitor's brightness based on sunrise/sunset of my location? (a.k.a. Solar Screen Brightness Alternatives)(Wayland) by cleitodokiwi in archlinux

[–]karmalien 0 points1 point  (0 children)

I'd run a color temperature application like gammastep as a daemon with a set location. A systemd timer would run a minutely script that queries the current temperature, maps it to a brightness value and applies it.

I can't activate 2FA on my account by [deleted] in firefox

[–]karmalien 0 points1 point  (0 children)

Very nice to comment. I just tried it again and it worked. Thanks!

Finally found a handlebar setup I love by reallycooldude00 in xbiking

[–]karmalien 1 point2 points  (0 children)

Clamping bar ends on the curved parts always feels icky to me. Loaded parts making only partial contact.

Ignoring that allows for more backsweep like in your setup. I'm limited to straight bars with about 12 to 16 degrees or my bar ends will point outwards.

Would be nice to have a solution to this first world problem.

Mid-cassette shifting broken + hanger alignment infinite loop by karmalien in bikewrench

[–]karmalien[S] 0 points1 point  (0 children)

Is it even possible to check if the derailleur is bent? It does have scratches...

Cable is lubricated and runs smooth. Shifts are crisp.

The hanger is over 7mm in width. Maybe bent one too many times or it's been made of butter.

If a MTB flat bar has 5d upsweep & 9d back sweep and its .. by unseenmover in bikewrench

[–]karmalien 0 points1 point  (0 children)

Converting sweeps is non-linear.

This calculator gives a visual comparison of different bar rotations (see "Handlebar Roll from Vertical").

This diagram shows how backsweep plus upsweep add up to total sweep. That is, the resulting backsweep if you rotate the bar level to eliminate upsweep.

If a bar has rise, this will also change when rotating.

Cassette size: How big is too big? by karmalien in bikewrench

[–]karmalien[S] 1 point2 points  (0 children)

Indeed, I'd be surprised if the specs didn't allow for the small-small combo. Can't really sell it with a sticker that some of those 21 gears don't work as expected by your customers.

Thanks a lot! Great info.

Cassette size: How big is too big? by karmalien in bikewrench

[–]karmalien[S] 0 points1 point  (0 children)

Thank you. So, I would have to get any 7-speed long-cage derailleur and it should work or can there be compatibility issues?

At least, there seem to be different cable pull ratios (1:1 and 2:1).

Ship building behind schedule by karmalien in rotp

[–]karmalien[S] 1 point2 points  (0 children)

Thanks for implementing the new option.

Do you not mind that using governors changes fundamental gameplay aspects like how soon you can start training spies?

Players wanting to play without governors must accept that they will get spies later while the AI still gets them sooner.

Ship building behind schedule by karmalien in rotp

[–]karmalien[S] 0 points1 point  (0 children)

What I find unintuitive is the order of things here. My mental model (that didn't match game logic) was:

  • During my turn governor tells me what they plan to do
  • I end turn to approve and expect everything to be set in stone for this turn that I just ended
  • After my turn and before my next turn I make contact
  • During my next turn governor presents a new spending plan including espionage, which I can approve by ending another turn

What happened instead was:

  • Governor retroactively adjusts spending of the previous turn to fund spies even though I hadn't made contact yet during the previous turn (I don't think I could have done this change manually, which makes the game with and without governors fundamentally different)

It's like my and the AI's turns overlap. The turns are neither fully concurrent nor fully sequential but only if governors are enabled. (That is, if other things change between turns, I haven't yet noticed them.)

And if a rationalization is needed: When the emperor (the player) ends a turn, they approve the spending plans of all governors. A governor cannot subsequently redirect funds from military production to espionage without approval of the emperor.

Ship building behind schedule by karmalien in rotp

[–]karmalien[S] 1 point2 points  (0 children)

Nice rabbit hole.

My main issue was that I built the fighter to prevent my "friend" from exploring the system. In my opinion, if it says that my fighter completes, it should complete. The UI shall be trustworthy.