Fix Signal and scratchpad

master
Quentin Duchemin 2022-11-10 12:03:38 +01:00
parent f95fae733b
commit 042eef68f8
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
3 changed files with 20 additions and 90 deletions

View File

@ -1,96 +1,21 @@
# ------------------------------------------------------
# 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"
type plug
slave { pcm "jack" }
}
# ------------------------------------------------------
# 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
pcm.jack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
}
period_size {
@func igetenv
vars [ JACK_PERIOD_SIZE ]
default 1024
capture_ports {
0 system:capture_1
1 system:capture_2
}
buffer_size 32768
}
}
# ------------------------------------------------------
# alsa_out -j alsa_out -dploop -q 1
pcm.ploop {
type plug
slave.pcm "hw:Loopback,1,1"
ctl.mixer0 {
type hw
card 0
}

View File

@ -232,7 +232,7 @@ for_window [class="(?i)Thunderbird"] move position center
# scratchpad
# Make the currently focused window a scratchpad
bindsym $mod+Shift+BackSpace move scratchpad
for_window [class="Signal"] move scratchpad
for_window [class="Signal" window_type="normal"] move scratchpad
for_window [class="Telegram"] move scratchpad
# we don't use class="Thunderbird" to not move windows like "MsgCompose" to scratchpad : only the main window will be in scratchpad
for_window [instance="Mail"] move scratchpad

7
.zshrc
View File

@ -114,7 +114,7 @@ alias pica_test='mkdir -p ~/sshfs/pica01-test && sshfs qduchemi@pica01-test.pica
eval "$(ssh-agent -s -t 3600)" &>/dev/null
alias lt='ls -lath'
export PATH=${PATH}:~/doc/picasoft/pass:$HOME/go/bin/:$HOME/.local/bin:/opt/feather:/opt/resolve/bin
export PATH=${PATH}:~/doc/picasoft/pass:$HOME/go/bin/:$HOME/.local/bin:/opt/feather:/opt/resolve/bin:/opt
source <(mmctl completion zsh)
@ -138,3 +138,8 @@ export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
alias code=vscodium
alias k=kubectl
alias kk="kubectl -n identibat-back"
alias kx="kubectl -n identibat-back exec -it"
export SCENARI_SSH_USER=qduchemin
export SCENARI_SSH_KEY_PATH=$HOME/.ssh/id_rsa