u/Barafu

Silly problems require silly solutions
▲ 34 r/linux

Silly problems require silly solutions

I present to you definitely not another music player.

I have two monitors and I use bright themes. When I game or watch a movie I often want to turn another monitor off, because it shines into my eyes. However, if I turn off the monitor power, the OS begins to rearrange windows on screen, and often makes a mess. Turning down brightness does not help either.

I mentioned this problem to a girlfriend. She said she knows it too. So she opens a YouTube video "10 hours of black screen" and opens it fullscreen on the monitor she doesn't need.

Yeah, turns out people do that.

You can always open an image file and set it to fullscreen, but I frequently run into some issues with it, and it needs more than one click.

So I made an app for it. It is a black window. It opens instantly. It can go fullscreen, it can minimise, it can change colour. That's all. It remembers its size and position if the DE permits it. It hides the mouse pointer.

Black Curtain

If you need it, download the AppImage, run it, press F1.

Meanwhile, I'll go fix my other, actually useful app. I finally solved my issues with creating an AppImage, so I can now pack that one too.

UPD: Turns out, even the empty window can have bugs. I fixed the issue where under Wayland the application can get stuck in fullscreen if it was killed while in fullscreen on previous launch.

u/Barafu — 1 day ago
▲ 2 r/vscode+1 crossposts

Distrobox + VSCode can not start a Wayland application.

I am trying to develop a GUI application in Distrobox. I use eframe GUI lib, so it supports both Wayland and X. If I open a Distrobox terminal and run my application, it starts as normal and uses Wayland (I checked).

If, however, I start a host-installed VSCode, use DevContainer extension to connect to the box, and run application from the console there, it gives error: error: XNotSupported(XOpenDisplayFailed) and that's all. Consequently, debugging launch does not work either, with the same error.

I know that I can install VSCode into the distrobox. I'd prefer not to, if possible.

P.S. Oh, it also prints "Authorization required, but no authorization protocol specified" however, I believe that it means that after failing to start as Wayland, it attempts to start as X. So it is not the cause of the problem.

UPD1: Halfway there. The console was missing two environment variables:

WAYLAND_DISPLAY=wayland-0
XDG_RUNTIME_DIR=/run/user/1000

After adding them, I was able to launch the app from the VSCode embedded terminal. I am investigating now WHY are they missing and what else important may be missing, because just adding them in .bashrc feels like a dirty hack.

reddit.com
u/Barafu — 4 days ago
▲ 17 r/Bazzite

Can I see what is updated?

When the system gets 2GB of updates, like today, can I see what exactly is being updated?

reddit.com
u/Barafu — 6 days ago

After migrating from Cachy, I can not get DLSS Updater to work.

I can't get DLSS updater to update.

For example, lets use Cyberpunk. DLSS Quality, no framegen.

On Cachy, I used to run PROTON_DLSS_INDICATOR=1 PROTON_DLSS_UPGRADE=1 %command% --launcher-skip and the ingame indicator shows that it uses Preset K, which it should.

On Bazzite, the same command shows that Preset D is used. Besides, the indicator has a different layout. I used Proton-GE and Proton-Cachy, same result.

PROTON_DLSS_INDICATOR=1 PROTON_ENABLE_NGX_UPDATER=1 DXVK_NVAPI_DRS_NGX_DLSS_SR_OVERRIDE_RENDER_PRESET_SELECTION=render_preset_k %command% --launcher-skip also gives the same result, preset D.

Don't say to use dlss-swapper, it is broken and you should nott use it. And I tried, it also does not work.

reddit.com
u/Barafu — 12 days ago

What is the proper way to install VSCode without Bazzite-DX?

What is the proper way to install VSCode(M$ version)? It is on Flatpak, but Bazzite Portal recommends Brew install. I could also install it into the devcontainer. I could also use simply unpack it somewhere, it can self-update.

What would be the least glitchy way? I do occasional dev in Rust, Python, and want to try the Node stuff too.

P.S. Qt and Qt creator seems to definitely require its own devcontainer due to the need of dev libraries, so QtCreator goes into there, right?

reddit.com
u/Barafu — 13 days ago

What is with Bazzite and BEES? Is it preinstalled, touted, but not actually enabled? Or is it enabled in such a weird way that I could not find it?

That's what I do to make it at least do something:

  1. cd /etc/bees && cp bees.conf.example rootfs.conf
  2. Edit rootfs.conf to provide UUID
  3. systemctl enable beesd@UUID.timer

It uses a lot of CPU on first start, an 'expect to go have a tea' lot.

Probably need to go and set niceness somehow. Correction: nice and IOnice were set to lowest. Still manages to slow down Konsole somehow.

reddit.com
u/Barafu — 14 days ago