add: launcher for jack audio
add: alias to change display frequency add: shortcut for workspace "game"
This commit is contained in:
parent
a262f249ae
commit
b5d5c834f3
4 changed files with 23 additions and 1 deletions
|
@ -29,6 +29,7 @@ alias md5='ms5'
|
||||||
alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir'
|
alias md5sum-dir='function _md5sum-dir(){ find $1 -type f -exec md5sum {} \; | md5sum; }; _md5sum-dir'
|
||||||
|
|
||||||
alias pacman-autoremove='pacman -Rns $(pacman -Qtdq)'
|
alias pacman-autoremove='pacman -Rns $(pacman -Qtdq)'
|
||||||
|
alias portalo-hz='xrandr --output HDMI-1 --mode 2560x1440 --refresh'
|
||||||
|
|
||||||
alias ssh-sftp='$(read -t 2 -r tool; if [[ -z "$tool" ]]; then tool="ssh"; fi; echo $tool)'
|
alias ssh-sftp='$(read -t 2 -r tool; if [[ -z "$tool" ]]; then tool="ssh"; fi; echo $tool)'
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
|
|
|
@ -117,6 +117,8 @@ super + {o,i}
|
||||||
# focus or send to the given desktop
|
# focus or send to the given desktop
|
||||||
super + {_,shift + }{1-9,0}
|
super + {_,shift + }{1-9,0}
|
||||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||||
|
super + {_,shift + } dead_circumflex
|
||||||
|
bspc {desktop -f,node -d} 'game'
|
||||||
|
|
||||||
#
|
#
|
||||||
# preselect
|
# preselect
|
||||||
|
|
17
.local/bin/start_jack
Executable file
17
.local/bin/start_jack
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sleep 5
|
||||||
|
|
||||||
|
jack_control ds alsa
|
||||||
|
jack_control dps device hw:U192k
|
||||||
|
jack_control dps rate 48000
|
||||||
|
jack_control dps nperiods 2
|
||||||
|
jack_control dps period 128
|
||||||
|
jack_control start
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
pulseaudio -D &
|
||||||
|
|
||||||
|
sleep 5
|
||||||
|
a2jmidid -e &
|
4
.profile
4
.profile
|
@ -12,9 +12,11 @@ then
|
||||||
gpgconf --launch gpg-agent
|
gpgconf --launch gpg-agent
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$HOME/.local/bin/start_jack &
|
||||||
|
|
||||||
if [ -x "$(command -v mopidy)" ]
|
if [ -x "$(command -v mopidy)" ]
|
||||||
then
|
then
|
||||||
sh -c "sleep 8 && mopidy > /tmp/mopidy.log" & # mopidy needs internet (wait 8 secs) for spotify
|
sh -c "sleep 12 && mopidy" & # mopidy needs internet (wait some secs) for spotify
|
||||||
else
|
else
|
||||||
[ -x "$(command -v mpd)" ] && mpd &
|
[ -x "$(command -v mpd)" ] && mpd &
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue