Setup Cleanup on machine transfer

This commit is contained in:
yage 2022-02-06 01:08:03 -07:00
parent fdb6f3d00a
commit 795beba6ce
6 changed files with 7 additions and 15 deletions

View File

@ -23,15 +23,14 @@ case $DEVICE in
* ) ERROR 1 "Unsupported device '$DEVICE'" ;;
esac
VOLUME_INCREMENT=10%
DEFAULT_DEVICE="@DEFAULT_$(echo $DEVICE | tr '[:lower:]' '[:upper:]')@"
case $COMMAND in
up )
pactl set-$DEVICE-volume $DEFAULT_DEVICE +$VOlUME_INCREMENT
pactl set-$DEVICE-volume $DEFAULT_DEVICE +10%
PLAY_SFX volume
;;
down )
pactl set-$DEVICE-volume $DEFAULT_DEVICE -$VOlUME_INCREMENT
pactl set-$DEVICE-volume $DEFAULT_DEVICE -10%
PLAY_SFX volume
;;
mute )

View File

@ -17,9 +17,9 @@ function ERROR() {
COMMAND="$1"
case $COMMAND in
next ) COMMAND_KEY='j';;
prev ) COMMAND_KEY='k';;
playpause ) COMMAND_KEY='space';;
next ) COMMAND_KEY='j';;
prev ) COMMAND_KEY='k';;
play ) COMMAND_KEY='space';;
* ) ERROR 1 "unsupported command '$COMMAND'" ;;
esac

View File

@ -19,7 +19,7 @@ bindsym XF86AudioNext exec --no-startup-id $UTILS next
bindsym XF86AudioPlay exec --no-startup-id $UTILS play
bindsym XF86AudioRaiseVolume exec --no-startup-id $UTILS volumeup
bindsym XF86AudioLowerVolume exec --no-startup-id $UTILS volumedown
bindsym XF86AudioMute exec --no-startup-id $UTILS mute
bindsym XF86AudioMute exec --no-startup-id $UTILS volumemute
bindsym XF86AudioMicMute exec --no-startup-id $UTILS micmute
bindsym $mod+backslash exec --no-startup-id $UTILS micmute

View File

@ -15,7 +15,6 @@ function SETUP__CONFIG() {
CONFIG__SYMLINK 'pgcli/config' 'pgcli.conf'
CONFIG__SYMLINK 'pylintrc' 'pylintrc'
CONFIG__SYMLINK 'ripgrep/config' 'ripgrep.conf'
CONFIG__SYMLINK 'wryn/sfx' '../bin/sfx/play.sh'
############################################################################################
CONFIG__TERMINFO

4
setup/env/env.zsh vendored
View File

@ -14,9 +14,7 @@ PREFERRED_EDITOR=(vim vi)
# should play an audio file argument
MEDIA_ENGINE='canberra-gtk-play -f'
PLAY_SFX () {
$HOME/.config/wryn/sfx $@ >/dev/null 2>&1
}
PLAY_SFX () { $DOTWRYN/bin/play-sound $@ >/dev/null 2>&1; }
RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config"
TMUX_DEFAULT_SESSION_NAME='wryn'

View File

@ -1,7 +1,3 @@
source "$DOTWRYN_PATH/setup/vim.compile.zsh"
#####################################################################
function SETUP__VIM() {
STATUS 'starting vim setup'
"$DOTWRYN_PATH/bin/vim/compile"