Add .asoundrc for desktop
parent
bb181ce0c2
commit
9b5312a7e5
|
@ -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"
|
||||||
|
}
|
|
@ -7,11 +7,11 @@ transition=1
|
||||||
|
|
||||||
; Brightness change between day and night
|
; Brightness change between day and night
|
||||||
brightness-day=1.0
|
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
|
; Do not change Gamma correction at day, but compensate luminance loss at night
|
||||||
gamma-day=1.0
|
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...
|
; /sys/class/backlight is empty :( And DDC/CI is not implemented by my monitors, so software adjustement... Less dynamic...
|
||||||
adjustment-method=randr
|
adjustment-method=randr
|
||||||
|
|
10
README.md
10
README.md
|
@ -38,9 +38,9 @@ Setup for :
|
||||||
* [i3](http://i3wm.org/), a great tiling windows manager
|
* [i3](http://i3wm.org/), a great tiling windows manager
|
||||||
* In fact i3-gaps, to add margins between windows
|
* In fact i3-gaps, to add margins between windows
|
||||||
* And i3-lock-color, an improved lock screen
|
* 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
|
* 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
|
* Terminator
|
||||||
* ZSH with Oh My ZSH!
|
* ZSH with Oh My ZSH!
|
||||||
* [Dunst](https://github.com/dunst-project/dunst), a great and lightweight notification daemon
|
* [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 ;
|
* Cadence and Claudia, JACK and LADISH front-ends ;
|
||||||
* Non-Mixer, a mixer.
|
* Non-Mixer, a mixer.
|
||||||
* Ardour, a DAW.
|
* 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
|
* 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))
|
* 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
|
* gnupg
|
||||||
* maim, for screenshot + `pip install pyperclip`
|
* maim, for screenshot + `pip install pyperclip`
|
||||||
* Python 3.7
|
* Python 3.7
|
||||||
* opensmtpd
|
* arc-gtk-theme
|
||||||
|
|
||||||
\#todo automatic installation of dependencies
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue