Setup Cleanup on machine transfer
This commit is contained in:
parent
fdb6f3d00a
commit
795beba6ce
@ -23,15 +23,14 @@ case $DEVICE in
|
|||||||
* ) ERROR 1 "Unsupported device '$DEVICE'" ;;
|
* ) ERROR 1 "Unsupported device '$DEVICE'" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
VOLUME_INCREMENT=10%
|
|
||||||
DEFAULT_DEVICE="@DEFAULT_$(echo $DEVICE | tr '[:lower:]' '[:upper:]')@"
|
DEFAULT_DEVICE="@DEFAULT_$(echo $DEVICE | tr '[:lower:]' '[:upper:]')@"
|
||||||
case $COMMAND in
|
case $COMMAND in
|
||||||
up )
|
up )
|
||||||
pactl set-$DEVICE-volume $DEFAULT_DEVICE +$VOlUME_INCREMENT
|
pactl set-$DEVICE-volume $DEFAULT_DEVICE +10%
|
||||||
PLAY_SFX volume
|
PLAY_SFX volume
|
||||||
;;
|
;;
|
||||||
down )
|
down )
|
||||||
pactl set-$DEVICE-volume $DEFAULT_DEVICE -$VOlUME_INCREMENT
|
pactl set-$DEVICE-volume $DEFAULT_DEVICE -10%
|
||||||
PLAY_SFX volume
|
PLAY_SFX volume
|
||||||
;;
|
;;
|
||||||
mute )
|
mute )
|
||||||
|
@ -17,9 +17,9 @@ function ERROR() {
|
|||||||
|
|
||||||
COMMAND="$1"
|
COMMAND="$1"
|
||||||
case $COMMAND in
|
case $COMMAND in
|
||||||
next ) COMMAND_KEY='j';;
|
next ) COMMAND_KEY='j';;
|
||||||
prev ) COMMAND_KEY='k';;
|
prev ) COMMAND_KEY='k';;
|
||||||
playpause ) COMMAND_KEY='space';;
|
play ) COMMAND_KEY='space';;
|
||||||
* ) ERROR 1 "unsupported command '$COMMAND'" ;;
|
* ) ERROR 1 "unsupported command '$COMMAND'" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ bindsym XF86AudioNext exec --no-startup-id $UTILS next
|
|||||||
bindsym XF86AudioPlay exec --no-startup-id $UTILS play
|
bindsym XF86AudioPlay exec --no-startup-id $UTILS play
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id $UTILS volumeup
|
bindsym XF86AudioRaiseVolume exec --no-startup-id $UTILS volumeup
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id $UTILS volumedown
|
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 XF86AudioMicMute exec --no-startup-id $UTILS micmute
|
||||||
bindsym $mod+backslash exec --no-startup-id $UTILS micmute
|
bindsym $mod+backslash exec --no-startup-id $UTILS micmute
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@ function SETUP__CONFIG() {
|
|||||||
CONFIG__SYMLINK 'pgcli/config' 'pgcli.conf'
|
CONFIG__SYMLINK 'pgcli/config' 'pgcli.conf'
|
||||||
CONFIG__SYMLINK 'pylintrc' 'pylintrc'
|
CONFIG__SYMLINK 'pylintrc' 'pylintrc'
|
||||||
CONFIG__SYMLINK 'ripgrep/config' 'ripgrep.conf'
|
CONFIG__SYMLINK 'ripgrep/config' 'ripgrep.conf'
|
||||||
CONFIG__SYMLINK 'wryn/sfx' '../bin/sfx/play.sh'
|
|
||||||
############################################################################################
|
############################################################################################
|
||||||
|
|
||||||
CONFIG__TERMINFO
|
CONFIG__TERMINFO
|
||||||
|
4
setup/env/env.zsh
vendored
4
setup/env/env.zsh
vendored
@ -14,9 +14,7 @@ PREFERRED_EDITOR=(vim vi)
|
|||||||
|
|
||||||
# should play an audio file argument
|
# should play an audio file argument
|
||||||
MEDIA_ENGINE='canberra-gtk-play -f'
|
MEDIA_ENGINE='canberra-gtk-play -f'
|
||||||
PLAY_SFX () {
|
PLAY_SFX () { $DOTWRYN/bin/play-sound $@ >/dev/null 2>&1; }
|
||||||
$HOME/.config/wryn/sfx $@ >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config"
|
RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config"
|
||||||
TMUX_DEFAULT_SESSION_NAME='wryn'
|
TMUX_DEFAULT_SESSION_NAME='wryn'
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
source "$DOTWRYN_PATH/setup/vim.compile.zsh"
|
|
||||||
|
|
||||||
#####################################################################
|
|
||||||
|
|
||||||
function SETUP__VIM() {
|
function SETUP__VIM() {
|
||||||
STATUS 'starting vim setup'
|
STATUS 'starting vim setup'
|
||||||
"$DOTWRYN_PATH/bin/vim/compile"
|
"$DOTWRYN_PATH/bin/vim/compile"
|
||||||
|
Loading…
Reference in New Issue
Block a user