From 9b5312a7e546e15e2ef9fab432cfeab81be6d879 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Sun, 27 Sep 2020 14:46:16 +0200 Subject: [PATCH] Add .asoundrc for desktop --- .asoundrc.desk | 96 +++++++++++++++++++++++++++++++++++++++++++ .config/redshift.conf | 4 +- README.md | 10 ++--- 3 files changed, 102 insertions(+), 8 deletions(-) create mode 100644 .asoundrc.desk diff --git a/.asoundrc.desk b/.asoundrc.desk new file mode 100644 index 0000000..7d93427 --- /dev/null +++ b/.asoundrc.desk @@ -0,0 +1,96 @@ +# ------------------------------------------------------ +# Custom asoundrc file for use with snd-aloop and JACK +# +# use it like this: +# env JACK_SAMPLE_RATE=44100 JACK_PERIOD_SIZE=1024 alsa_in (...) +# + +# ------------------------------------------------------ +# playback device +pcm.aloopPlayback { + type dmix + ipc_key 1 + ipc_key_add_uid true + slave { + pcm "hw:Loopback,0,0" + format S32_LE + rate { + @func igetenv + vars [ JACK_SAMPLE_RATE ] + default 44100 + } + period_size { + @func igetenv + vars [ JACK_PERIOD_SIZE ] + default 1024 + } + buffer_size 4096 + } +} + +# capture device +pcm.aloopCapture { + type dsnoop + ipc_key 2 + ipc_key_add_uid true + slave { + pcm "hw:Loopback,0,1" + format S32_LE + rate { + @func igetenv + vars [ JACK_SAMPLE_RATE ] + default 44100 + } + period_size { + @func igetenv + vars [ JACK_PERIOD_SIZE ] + default 1024 + } + buffer_size 4096 + } +} + +# duplex device +pcm.aloopDuplex { + type asym + playback.pcm "aloopPlayback" + capture.pcm "aloopCapture" +} + +# ------------------------------------------------------ +# default device +pcm.!default { + type plug + slave.pcm "aloopDuplex" +} + +# ------------------------------------------------------ +# alsa_in -j alsa_in -dcloop -q 1 +pcm.cloop { + type dsnoop + ipc_key 3 + ipc_key_add_uid true + slave { + pcm "hw:Loopback,1,0" + channels 2 + format S32_LE + rate { + @func igetenv + vars [ JACK_SAMPLE_RATE ] + default 44100 + } + period_size { + @func igetenv + vars [ JACK_PERIOD_SIZE ] + default 1024 + } + buffer_size 32768 + } +} + +# ------------------------------------------------------ +# alsa_out -j alsa_out -dploop -q 1 +pcm.ploop { + type plug + slave.pcm "hw:Loopback,1,1" +} diff --git a/.config/redshift.conf b/.config/redshift.conf index abbc57c..58a7bba 100644 --- a/.config/redshift.conf +++ b/.config/redshift.conf @@ -7,11 +7,11 @@ transition=1 ; Brightness change between day and night brightness-day=1.0 -brightness-night=0.9 +brightness-night=0.8 ; Do not change Gamma correction at day, but compensate luminance loss at night gamma-day=1.0 -gamma-night=1.0 +gamma-night=0.8 ; /sys/class/backlight is empty :( And DDC/CI is not implemented by my monitors, so software adjustement... Less dynamic... adjustment-method=randr diff --git a/README.md b/README.md index 2851815..ffbdd85 100644 --- a/README.md +++ b/README.md @@ -38,9 +38,9 @@ Setup for : * [i3](http://i3wm.org/), a great tiling windows manager * In fact i3-gaps, to add margins between windows * And i3-lock-color, an improved lock screen -* [LightDM](https://wiki.ubuntu.com/LightDM) with custom GTKTheme and background +* [LightDM](https://wiki.ubuntu.com/LightDM) with custom theme and background * Sublime Text 3 -* [Polybar](https://github.com/jaagr/polybar/), a great replacement for i3-bar with easy custom plugins +* [Polybar](https://github.com/jaagr/polybar/), a great replacement for i3-bar with easy custom plugins and [system tray](https://specifications.freedesktop.org/systemtray-spec/systemtray-spec-0.3.html) * Terminator * ZSH with Oh My ZSH! * [Dunst](https://github.com/dunst-project/dunst), a great and lightweight notification daemon @@ -52,7 +52,7 @@ switcher * Cadence and Claudia, JACK and LADISH front-ends ; * Non-Mixer, a mixer. * Ardour, a DAW. -* Random things (GTK3+ theme, Redshift, taskwarrior...) +* Random things (GTK3+ theme Arc, Redshift, taskwarrior...) * A custom script to take screenshots and save them or upload them * Screenshots (area or windows), with saving or uploading to a Lychee server ([custom script here](.config/i3/scripts/screenshot.py)) @@ -76,9 +76,7 @@ Configuration makes use of these things, just to record but not exhaustive : * gnupg * maim, for screenshot + `pip install pyperclip` * Python 3.7 -* opensmtpd - -\#todo automatic installation of dependencies +* arc-gtk-theme ## Usage