When using sindresorhus' eslint-plugin-unicorn package, I tend to use the following rules:
"rules": {
"unicorn/prevent-abbreviations": [
"error",
{
"replacements": {
"props": false,
"idx": false,
:: Directory to save backups | |
SET backupDir=D:\Backups\Audio Backup | |
:: Store date as a variable | |
FOR /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set datetime=%%G | |
SET hh=%time:~0,2% | |
SET hh=%hh: =0% | |
SET datetime=%datetime:~0,4%-%datetime:~4,2%-%datetime:~6,2% %hh%-%time:~3,2%-%time:~6,2% | |
:: Create a backup of the current audio settings state |
"rules": {
"unicorn/prevent-abbreviations": [
"error",
{
"replacements": {
"props": false,
"idx": false,
Add both files to ~/.config/systemd/user/ and enable them via systemctl --user enable --now pipewire-source-stereo@sourcename.service
or systemctl --user enable --now pipewire-sink-stereo@sinkname.service
.
Change sourcename
and sinkname
in the command to your needs. You can add multiple devices with different names.