Yes, a quick web search later I haven’t found a readymade solution.
Setting the volume for specific outputs is not very hard, so maybe a middleground solution is to have two shortcuts. One for “game mode” and one for “music mode” or whatever.
Yes, a quick web search later I haven’t found a readymade solution.
Setting the volume for specific outputs is not very hard, so maybe a middleground solution is to have two shortcuts. One for “game mode” and one for “music mode” or whatever.
The details depend a bit on the audiostack of your distro, but they all have a cli program with which you can change inputs/outputs and volume; e.g. pactl
for pulseaudio and wpctl
for wireplumber.
You’ll need a mechanism to find your triggers (I create a firefox tab with youtube/spotify, I have a music player active) and then you can act on it.
Detecting voice in an audiostream is probably technically possible, but that sounds pretty hard to setup.
You’re welcome!
Wow, who would have thought?
It seems the AI hype is shrinking (or at least slowing down), since people are more and more critical of it: intellectual property, workers rights, power consumption, climate impacts, usefulness and more.
If you want more reading, I recommend these:
I can’t recommend Ed Zitron’s blog enough: Where’s your Ed at
He did an interview with Adam Conover a month ago, which was also really interesting.
The other blog I highly recommend is The Luddite, e.g. Why is there an AI hype?
Youtube tip everyone needs to now: remove the si
query parameter, it’s not necessary and used for tracking
From
https://youtu.be/LKCVKw9CzFo?si=06X6O91R9pX_8UbX
Into
https://youtu.be/LKCVKw9CzFo
How did you install nixos? The labels for disks and partitions are usually set during creation.
If the KDE-spin installer did not need to reformat the disks (i.e. the partition sizes and formats didn’t change) it probably didn’t touch the partition labels.
You can change the label if it bothers you, just make sure fstab doesn’t use the old label :)
Happy hopping!
because bash isn’t always in /usr/bin/bash
.
On macOS the version on /usr/bin/bash
is very old (bash 3 I think?), so many users install a newer version with homebrew which ends up in PATH, which /usr/bin/env
looks at.
Protip: I start every bash script with the following two lines:
#!/usr/bin/env bash
set -euo pipefail
set -e makes the script exit if any command (that’s not part of things like if-statements) exits with a non-zero exit code
set -u makes the script exit when it tries to use undefined variables
set -o pipefail will make the exit code of the pipeline have the rightmost non-zero exit status of the pipeline, instead of always the rightmost command.
That seems more sensible.
But they still can track some of the things you do (same with any untrusted wifi network):
The best thing is to use a different device, period.
Since the company is lord and master over the device, in theory, they can see anything you’re doing.
Maybe not decrypting wireguard traffic in practice, but still see that you’re doing non-official things on the device that are probably not allowed. They might think you’re a whistleblower or a corporate spy or something.
I have no idea where you work, but if they install a CA they’re probably have some kind of monitoring to see what programs are installed/running.
If the company CA is all you’re worried about, running a browser that uses its own CA list should be enough.
Maybe your drive(s) fail and you want to reinstall.
Then you already have a setup with all your software and config files installed. Just reinstall NixOS and re-apply your configuration (or build your own Install ISO ).
And if you ever get a new laptop/desktop/VM/VPS you can do the same.
Don’t forget to take backups, regardless of your setup tho.
The reproducibility also leads to some surprise features, like being able to wipe your entire system on every boot. Since NixOS always puts the necessary files in the correct place, this is perfectly fine. If you then add some mechanism to persist specific data across reboots (a separate partition, or the Impermanence module), you will remove all kinda of randomly accumulated files on every boot.
This means I have very small backups, because I have three kinds of data: stuff that is wiped on every boot, stuff that is persisted but not backed up (/nix/store
, all kinds of caches) and stuff that is persisted and backed up (documents, repositories, media).
None of my OS’s files are in the backups, which makes of them a lot smaller than my previous arch install.
You can also set up a wireguard VPN to run VNC over, that might be easier instead of using SSH tunnels.
Python development shouldn’t be that hard I think. You can just drop a shell.nix
that imports your pyproject.toml
and then you can run nix develop
and have all your dependencies installed seamlessly with poetry2nix.
I’m using neovim so I can’t really help you with vscode, sorry.
Have you tried Erasing your darlings with NixOS?
The picture is LotR, yes. But the text underneath refers to WarGames.
That movie is WarGames (1983)
There’s several pages on the arch wiki that should help:
Session Lock, specifically the xorg/wayland triggers and units sections
This sounds like a very specific question, what problem are you really trying to solve?
Logout before suspend/hibernate, or something else?
To expand a little on @Laser ‘s point 2:
In bash (and other programming languages) # is used at the start of the line to notate comments.
When writing percentages, you write the symbol after the number, e.g. 50%
That’s how I keep them apart, lol
Theres a section in the bash manual with these and a whole bunch of more expansion tricks.
One I find useful is
echo "${myvar@A}"
If you want to hear someone talk about penetration testing (heh) these things:
DEF CON 27: Adventures in smart buttplug penetration testing (semi-NSFW obviously)
If you’ll pardon the pun,
This feels like a god-tier shitpost