QuazarOmega

joined 1 year ago
MODERATOR OF
[–] [email protected] 2 points 1 week ago

Will do, hopefully there is one

[–] [email protected] 2 points 1 week ago (1 children)

That is insanely cool, but isn't it even more manual? ( °ヮ° ᵕ)

[–] [email protected] 7 points 1 week ago

You were far ahead of professors that make you write it out with pen and paper

 

cross-posted from: https://lemy.lol/post/30887473

I sometimes play games and also open my music player, but the sound from the game drowns out the music, so I need to go into the sound mixer on KDE and manually lower the game's volume every time.
I was wondering, is there a way to do this process automatically? As in setting up conditions like "if music is playing (some MPRIS API?) then lower all other apps' volumes)", maybe even crazier "if some app is outputting voice then set its volume back up and lower music app's volume or pause its playback altogether for some specified timeout that keeps being refreshed for as long as voice is heard".
I imagine the latter is a bit of a dream, but maybe for the first, even some quick sound profile selector would go a long way, say switching from "normal profile" to "background music profile", etc. which specify preconfigured volumes for those apps.
Is that a thing?

[–] [email protected] 4 points 1 week ago* (last edited 1 week ago) (2 children)

Why so irritable? I'm just asking, I don't even know German, I thought since you knew the video already, you could point me in the right direction, rather than me having to sift through it all while also passing it through a translator to hopefully (because I don't know how well youtube's auto-translate feature works) find the information I'm looking for in the whole presentation

[–] [email protected] 2 points 1 week ago

On a quick skim I don't see a way on it to set volume profiles, let alone program behavior based on certain events, is there some menu I might have missed?

[–] [email protected] 1 points 1 week ago* (last edited 1 week ago) (1 children)

So what I'm getting is that I would have to come up with something myself, right? I mean that would be super cool to do, but I don't have the time to put into that, unfortunately

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago)

This is the architecture though, I'm asking about an application that can interact with it

[–] [email protected] 2 points 1 week ago (6 children)

55 minutes? Uhm, could you tell me the relevant section of the video, please?

 

I sometimes play games and also open my music player, but the sound from the game drowns out the music, so I need to go into the sound mixer on KDE and manually lower the game's volume every time.
I was wondering, is there a way to do this process automatically? As in setting up conditions like "if music is playing (some MPRIS API?) then lower all other apps' volumes)", maybe even crazier "if some app is outputting voice then set its volume back up and lower music app's volume or pause its playback altogether for some specified timeout that keeps being refreshed for as long as voice is heard".
I imagine the latter is a bit of a dream, but maybe for the first, even some quick sound profile selector would go a long way, say switching from "normal profile" to "background music profile", etc. which specify preconfigured volumes for those apps.
Is that a thing?

[–] [email protected] 1 points 1 week ago

I see, I guess that's what happened to those that broke for me

[–] [email protected] 14 points 1 week ago* (last edited 1 week ago) (2 children)

I used to prefer GNOME, until I started using KDE daily on the desktop, I thought it would just be temporary, but I ended up liking KDE way more because of the features that are built-in, the integration is simply priceless and I'm tired of those GNOME extensions that keep breaking at the next GNOME major release and I have to wait weeks for the poor devs to catch up and fix them up to get the compatibility going again, in some ways that also happens on KDE with the widgets, but, arguably, you will need way fewer of those to extend the already wide functionality provided by the Fedora KDE experience, so you risk incurring in that issue a lot less. Note I specifically mention Fedora both because it's the system you want and because the pool of apps included is the best for a streamlined, but not bloated, experience, which also allows me to use Kinoite without troubling myself to overlay crucial apps that aren't provided or don't work fully) as Flatpak.

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (4 children)

I'm glad that it's coming natively, but hands down there's a whole lot of progress they have yet to make to come close to the usability provided by Sidebery, good that they're also working on native vertical tabs in fact! So I think that if you're looking for a better system you could try out that extension https://addons.mozilla.org/en-US/firefox/addon/sidebery/

 

I was looking to implement a year column and while researching I stumbled on the YEAR data type which sounded just right by its name, I assumed that it would just be something like an integer that can maybe hold only 4 digits, maybe more if negative?
But then I noticed while actually trying it out that some years I was inputting randomly by hand never went through giving an out of range error, so I went to look at the full details and, sure enough, it's limited to years between 1901 and 2155, just 2155!
In terms of life of an application 2155 is just around the corner, well not that any software has ever lived that long, but you get what I mean in the sense that we want our programs to be as little affected by time within what's reasonable given space constraints.
So what will they do when they get close enough to that year, because you don't even have to be in that year to need it accessible, there could be references that point to the future, maybe for planning of some thing or user selected dates and whatnot; will they change the underlying definition of it as time passes so it's always shifted forward? If that's the approach they'll take, will they just tell everyone who's using this type that their older dates will just not be supported anymore and they need to migrate to a different type? YEAR-OLD? Then YEAR-OLDER? Then YEAR-OLDER-BUT-LIKE-ACTUALLY? Or, that if they plan to stay in business, they should move to SMALLINT?
Or will they take the opposite approach and put out a new YEAR datatype every time the 256 range is expired like YEAR-NEW, YEAR-NEW-1, YEAR-FINAL, YEAR-JK-GUYS-THE-WORLD-HASNT-COLLAPSED, etc.?

So I wonder, what's the point of this data type? It's just so incredibly restricted that I don't see even a hypothetical use.
There exist other questions like this (example) but I think they all don't address this point: has anyone from MariaDB or MySQL or an SQL committee (I don't know if that's a thing) wrote up some document that describes the plan for how this datatype will evolve as time passes? An RFC or anything like that?

18
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

What is this?

For all you Reddit refugees this is like r/place.
For all who don't know what that is either, this is a public, well, canvas, that will be freely accessible to anyone with a Fediverse account (specifics on the main post, don't worry, Lemmy is included).
You'll be able to place (this is not place!!!) one pixel every certain amount of time on the canvas, either in an empty or an already used spot, overwriting it in the latter case.

Where is this happening?

Right over on https://canvas.fediverse.events/

Announcement post and other related stuff:

When can we participate?

On the 12th July 2024, or 2024-07-12 for all you ISO lovers!

Why should I care?

I don't know, it could be fun and it's not like you have to do it alone, it's actually way more fun to partecipate alongside your fellow fediversers, sooo... monke together strong?
If you have some particular interest and you want it represented, try to look for your people in the right communities, and organize together to make the best fricking piece of pixel art the world has ever seen!!

From here I guess we can invite you to maybe make a little something for our lemy.lol instance's community, claiming a patch of land for ourselves as the (certified) best instance of the Fediverse (full disclosure: am admin of said instance).
If we want to make something, we can probably make a Matrix room to coordinate our efforts!
Otherwise, just go ahead and have fun with your loved <insert niche game/anime/film/any piece of media> and make something out of it!


Lastly here's last year's final canvas to try to win you over (or scare you):
2023 Fediverse Canvas - Final state

 

I saw that there's this nifty xdg-ninja that informs you on what you have installed that doesn't respect the XDG spec, if it has support for it or not and what you can do to make it comply.
But now I was wondering if there was any tool to do the actual work automatically, I believe I have once seen a program that spoofed your home directory to non-complying apps so that you could transparently override their whole app data location to a path you wanted so they can keep functioning, but I can't for the life of me find it again.
It would be double awesome if it did both, i.e. auto-applying any changes to apps that support XDG but need to be configured to enable it and, for those who don't, forcefully spoofing the home directory

 

My solution:

let

  nixFilesInDirectory = directory:
    (
      map (file: "${directory}/${file}")
      (
        builtins.filter
          (
            nodeName:
              (builtins.isList (builtins.match ".+\.nix$" nodeName)) &&
              # checking that it is NOT a directory by seeing
              # if the node name forcefully used as a directory is an invalid path
              (!builtins.pathExists "${directory}/${nodeName}/.")
          )
          (builtins.attrNames (builtins.readDir directory))
      )
    );

  nixFilesInDirectories = directoryList:
    (
      builtins.concatMap
        (directory: nixFilesInDirectory directory)
        (directoryList)
    );
  # ...
in {
  imports = nixFilesInDirectories ([
      "${./programs}"
      "${./programs/terminal-niceties}"
  ]);
  # ...
}

snippet from the full source code: quazar-omega/home-manager-config (L5-L26)

credits:


I'm trying out Nix Home Manager and learning its features little by little.
I've been trying to split my app configurations into their own files now and saw that many do the following:

  1. Make a directory containing all the app specific configurations:
programs/
└── helix.nix
  1. Make a catch-all file default.nix that selectively imports the files inside:
programs/
├── default.nix
└── helix.nix

Content:

{
  imports = [
    ./helix.nix
  ];
}
  1. Import the directory (picking up the default.nix) within the home-manager configuration:
{
  # some stuff...
  imports = [
    ./programs
  ];
 # some other stuff...
}

I'd like to avoid having to write each and every file I'll create into the imports of default.nix, that kinda defeats the point of separating it if I'll have to specify everything anyway, so is there a way to do so? I haven't found different ways to do this in various Nix discussions.


Example I'm looking at: https://github.com/fufexan/dotfiles/blob/main/home/terminal/default.nix

My own repository: https://codeberg.org/quazar-omega/home-manager-config

341
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 

We all know who's the real steward of free software and federation

*smiles in anticipation*


legit had to draw the vector logo of Gogs for this, smh

edit: actually... it already exists, oopsie (ᵕ—ᴗ—) smh my head

 

I was trying to analyze my phone's storage through Filelight, but it just gets frozen after I select the phone's folder. I didn't find anything in Bugzilla regarding this problem.
Is the protocol supported at all in the app?

 

I have come across a few add-ons that are only available through GitHub, for example. So I'm wondering, is there some system to keep them updated automatically, or do I have to manually redownload them every time?

 

I've mostly been using the official F-droid app, but I've become tired of having to click install every single time there's a new update for an app.
On a new phone I tried starting right away with Neo Store, which I know has that functionality, and in fact I haven't had to confirm installation of updates since on there, but on my old devices where I started with F-droid how can I get that to work?
I believe I read somewhere that for this to work, the apps I want to update automatically need to be installed the first time from within the same app and, even then, only some apps that target Android SDKs from a certain point forward support that, so not all can benefit from this feature.
So how can I make this change, do I have to uninstall every application from F-droid I have and reinstall them from Neo Store or is there an easier way?

Edit: One other thing, even in Neo Store it seems I can't update without confirmation if I manually update only one app at a time and instead it works if I let it update everything by having "Auto-update" enabled

 

There's something I don't understand here: why when I do "Open Folder" and then save the session, closing it and opening it again I'm left with nothing?
Instead, if I open some files in subdirectories, the next time I reopen the session I'm just presented with the parent folders of those files, but I really needed to have the topmost directory to be able to access the whole tree structure whenever I reopen the session.

Is it possible? Or do I have to make a project?

 

Hey, periodic personal perplexity here! 👀

I noticed that my own posts made to external instances are not visible from my own account on this instance, but they are from outside

Even though I didn't find them there, they are still present both here and in the external instance on the respective communities where they were posted to, e.g.

I only see my posts on lemy.lol on my profile.

What happened?

view more: next ›