flattening and cleaning up various configurations and executables
This commit is contained in:
parent
e0594ebfb7
commit
26571b5dfc
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr --output HDMI-0 --mode 3840x2160; sleep 1
|
||||
|
||||
@ -16,7 +16,7 @@ sleep 2;
|
||||
xrandr --output DP-2 --mode 3840x2160 --rate 120;
|
||||
|
||||
$DOTWRYN/bin/set-background random
|
||||
PLAY_SFX login
|
||||
$DOTWRYN/bin/play-sound login
|
||||
|
||||
xset dpms 0 0 0 && xset s noblank && xset s off \
|
||||
&& notify-send 'DPMS' 'disabled screen blank'
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr --output HDMI-0 --mode 3840x2160; sleep 1
|
||||
|
||||
@ -18,7 +18,7 @@ xrandr \
|
||||
(pkill compton; sleep 1; compton;) &
|
||||
|
||||
$DOTWRYN/bin/set-background purple.jpg
|
||||
PLAY_SFX login
|
||||
$DOTWRYN/bin/play-sound login
|
||||
|
||||
xset dpms 0 0 0 && xset s noblank && xset s off \
|
||||
&& notify-send 'DPMS' 'disabled screen blank'
|
@ -16,4 +16,4 @@ case $1 in
|
||||
;;
|
||||
esac
|
||||
|
||||
PLAY_SFX backlight
|
||||
$DOTWRYN/bin/play-sound backlight
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
[ ! $PRIMARY_MONITOR ] && {
|
||||
NOTIFY 'Unable to detect primary monitor'
|
||||
return
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
[ ! $EXTERNAL_MONITOR ] && {
|
||||
NOTIFY 'No external monitor connected!'
|
||||
return
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
[ ! $EXTERNAL_MONITOR ] && {
|
||||
NOTIFY 'No external monitor connected!'
|
||||
return
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
xrandr \
|
||||
--output eDP1 \
|
||||
--primary \
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
[ ! $NATIVE_MONITOR ] && {
|
||||
NOTIFY "Must specify NATIVE_MONITOR"
|
||||
return
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
LEFT=$(GET_ALL_EXTERNAL_MONITORS | grep 'DP.-1')
|
||||
RIGHT=$(GET_ALL_EXTERNAL_MONITORS | grep 'DP.-2')
|
||||
|
@ -46,7 +46,7 @@ DISCONNECT_OTHER() {
|
||||
sleep 1
|
||||
$DOTWRYN/bin/set-background random
|
||||
|
||||
[ $SFX ] && ( PLAY_SFX $SFX ) &
|
||||
[ $SFX ] && ( $DOTWRYN/bin/play-sound $SFX ) &
|
||||
return 0
|
||||
}
|
||||
|
@ -1,5 +1,9 @@
|
||||
#!/bin/zsh
|
||||
# requires i3lock-color
|
||||
which i3lock >/dev/null 2>&1 || {
|
||||
notify-send 'i3lock-color' 'could not find installation of i3lock'
|
||||
}
|
||||
# note: requires i3lock-color
|
||||
|
||||
INSIDE_VER='001020'
|
||||
RING_VER='004040'
|
||||
|
||||
@ -26,4 +30,5 @@ i3lock \
|
||||
--line-color=$LINE \
|
||||
--time-color=$TIME --date-color=$DATE \
|
||||
--keyhl-color=$KEYDOWN --bshl-color=$KEYREMOVE \
|
||||
|| notify-send 'i3lock-color' 'something went wrong; unable to lock' \
|
||||
;
|
||||
|
@ -1,22 +1,32 @@
|
||||
#!/bin/zsh
|
||||
source "$HOME/.config/wryn/env.zsh"
|
||||
|
||||
PLAY() {
|
||||
eval "$MEDIA_ENGINE" "$SFX_PATH/$1"
|
||||
true
|
||||
which canberra-gtk-play >/dev/null 2>&1 || {
|
||||
notify-send 'canberra-gtk-play' "unable to play '$1'; is canberra-gtk-play installed?"
|
||||
exit 1
|
||||
}
|
||||
|
||||
PLAY() { canberra-gtk-play -f "$SFX_PATH/$1"; }
|
||||
|
||||
SFX_FILE=''
|
||||
case $1 in
|
||||
volume ) PLAY yaru-message.oga ;;
|
||||
mute ) PLAY smooth-dialog-warning.oga ;;
|
||||
backlight ) PLAY yaru-audio-volume-change.oga ;;
|
||||
login ) PLAY yaru-desktop-login.oga ;;
|
||||
logout ) PLAY smooth-desktop-login.oga ;;
|
||||
notify ) PLAY yaru-complete.oga ;;
|
||||
undock ) PLAY yaru-desktop-login.oga ;;
|
||||
homedock ) PLAY homedock.oga ;;
|
||||
gamedock ) PLAY gamedock.oga ;;
|
||||
* )
|
||||
[ -f "$SFX_PATH/$1" ] && PLAY $1 || ls $SFX_PATH
|
||||
volume ) SFX_FILE=yaru-message.oga ;;
|
||||
mute ) SFX_FILE=smooth-dialog-warning.oga ;;
|
||||
backlight ) SFX_FILE=yaru-audio-volume-change.oga ;;
|
||||
login ) SFX_FILE=yaru-desktop-login.oga ;;
|
||||
logout ) SFX_FILE=smooth-desktop-login.oga ;;
|
||||
notify ) SFX_FILE=yaru-complete.oga ;;
|
||||
undock ) SFX_FILE=yaru-desktop-login.oga ;;
|
||||
homedock ) SFX_FILE=homedock.oga ;;
|
||||
gamedock ) SFX_FILE=gamedock.oga ;;
|
||||
|
||||
* ) SFX_FILE="$1"
|
||||
;;
|
||||
esac
|
||||
[ ! -f "$SFX_PATH/$SFX_FILE" ] && {
|
||||
notify-send 'canberra-gtk-play' "no such sfx file or alias '$1'" \
|
||||
exit 2
|
||||
}
|
||||
|
||||
canberra-gtk-play -f "$SFX_PATH/$SFX_FILE" \
|
||||
|| notify-send 'canberra-gtk-play' "unable to play '$1'"
|
||||
|
@ -27,15 +27,15 @@ DEFAULT_DEVICE="@DEFAULT_$(echo $DEVICE | tr '[:lower:]' '[:upper:]')@"
|
||||
case $COMMAND in
|
||||
up )
|
||||
pactl set-$DEVICE-volume $DEFAULT_DEVICE +10%
|
||||
PLAY_SFX volume
|
||||
$DOTWRYN/bin/play-sound volume
|
||||
;;
|
||||
down )
|
||||
pactl set-$DEVICE-volume $DEFAULT_DEVICE -10%
|
||||
PLAY_SFX volume
|
||||
$DOTWRYN/bin/play-sound volume
|
||||
;;
|
||||
mute )
|
||||
pactl set-$DEVICE-mute $DEFAULT_DEVICE toggle
|
||||
PLAY_SFX mute
|
||||
$DOTWRYN/bin/play-sound mute
|
||||
notify-send "default $DEVICE" "$(amixer sget Master | grep -q '\[on\]' && echo unmuted || echo muted)"
|
||||
;;
|
||||
* ) ERROR "Unsupported command '$COMMAND'" ;;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr \
|
||||
--output DP-3-1 \
|
||||
@ -18,4 +18,4 @@ xset dpms 0 0 0 && xset s noblank && xset s off \
|
||||
(pkill compton; sleep 0.5; compton;) &
|
||||
|
||||
$DOTWRYN/bin/set-background random
|
||||
PLAY_SFX gamedock
|
||||
$DOTWRYN/bin/play-sound gamedock
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr \
|
||||
--output eDP-1 \
|
||||
@ -17,4 +17,4 @@ xset dpms 0 0 0 && xset s noblank && xset s off \
|
||||
&& notify-send 'DPMS' 'disabled screen blank'
|
||||
|
||||
$DOTWRYN/bin/set-background random
|
||||
PLAY_SFX gamedock
|
||||
$DOTWRYN/bin/play-sound gamedock
|
@ -1,5 +1,5 @@
|
||||
#!/bin/zsh
|
||||
source ${0:a:h}/common
|
||||
source ${0:a:h}/xorg.zsh
|
||||
|
||||
xrandr \
|
||||
--output eDP-1 \
|
||||
@ -18,4 +18,4 @@ xset +dpms && xset s blank && xset s on \
|
||||
(pkill compton; sleep 0.5; compton;) &
|
||||
|
||||
$DOTWRYN/bin/set-background random
|
||||
PLAY_SFX gamedock
|
||||
$DOTWRYN/bin/play-sound gamedock
|
@ -7,7 +7,7 @@ case $_HOSTNAME in
|
||||
umbreon ) DEFAULT=undock ;;
|
||||
esac
|
||||
|
||||
LAYOUT="${0:a:h}/$_HOSTNAME/$DEFAULT"
|
||||
LAYOUT="$DOTWRYN/bin/$_HOSTNAME/$DEFAULT"
|
||||
|
||||
[ -f $LAYOUT ] && {
|
||||
until xrandr -q >/dev/null 2>&1; do sleep .1; done
|
@ -1,36 +0,0 @@
|
||||
#
|
||||
# scwrypts dot-files config
|
||||
#
|
||||
|
||||
TERMINFO_PATH="$DOTWRYN/config/terminfo"
|
||||
SAFE_SYMLINKS=0
|
||||
|
||||
# lines which begin with '#' are ignored
|
||||
SYMLINKS="
|
||||
# --------------------------------------------------------------------------
|
||||
# fully qualified path ~/.config/THE-REST
|
||||
# --------------------------------------------------------------------------
|
||||
$DOTWRYN/config/../bin/i3/utils i3/utils
|
||||
$DOTWRYN/config/../colorschemes/kitty.main kitty/theme.conf
|
||||
$DOTWRYN/config/bat.conf bat/config
|
||||
$DOTWRYN/config/code-activator.conf code-activator-zsh/settings.zsh
|
||||
$DOTWRYN/config/compton.conf compton/compton.conf
|
||||
$DOTWRYN/config/git.conf git/config
|
||||
$DOTWRYN/config/i3.conf i3/config
|
||||
$DOTWRYN/config/i3status.conf i3status/config
|
||||
$DOTWRYN/config/kitty.conf kitty/kitty.conf
|
||||
$DOTWRYN/config/mssqlcli.conf mssqlci/config
|
||||
$DOTWRYN/config/pgcli.conf pgcli/config
|
||||
$DOTWRYN/config/pylint.conf pylintrc
|
||||
$DOTWRYN/config/ripgrep.conf ripgrep/config
|
||||
$DOTWRYN/config/scwrypts.conf scwrypts/config
|
||||
$DOTWRYN/config/scwrypts.dotfile.conf scwrypts/config.dotfile.zsh
|
||||
$DOTWRYN/config/scwrypts.local.env scwrypts/env/local
|
||||
$DOTWRYN/config/scwrypts.vundle.zsh ../.vim/bundle/build.zsh
|
||||
$DOTWRYN/config/tmux.conf tmux/tmux.conf
|
||||
$DOTWRYN/config/xcompose.conf X11/xcompose
|
||||
$DOTWRYN/config/xconfig.conf X11/xconfig
|
||||
$DOTWRYN/config/xinitrc X11/xinitrc
|
||||
$DOTWRYN/bin/scwrypts ../.local/bin/scwrypts
|
||||
$DOTWRYN/bin/vim ../.local/bin/vim
|
||||
"
|
@ -1,10 +0,0 @@
|
||||
#!/bin/zsh
|
||||
export AWS_ACCOUNT=088935110352
|
||||
export AWS_PROFILE=yage
|
||||
export AWS_REGION=us-east-2
|
||||
export AWS__EFS__LOCAL_MOUNT_POINT=/mnt/efs/yage
|
||||
export AWS__S3__MEDIA_BUCKET=
|
||||
export AWS__S3__MEDIA_TARGETS=
|
||||
export REDIS_AUTH=
|
||||
export REDIS_HOST=
|
||||
export REDIS_PORT=
|
39
config/scwrypts/dotfiles.zsh
Normal file
39
config/scwrypts/dotfiles.zsh
Normal file
@ -0,0 +1,39 @@
|
||||
#
|
||||
# scwrypts dot-files config
|
||||
#
|
||||
|
||||
TERMINFO_PATH="$DOTWRYN/config/terminfo"
|
||||
SAFE_SYMLINKS=0
|
||||
|
||||
# lines which begin with '#' are ignored
|
||||
SYMLINKS="
|
||||
# --------------------------------------------------------------------------
|
||||
# fully qualified path ~/.config/THE-REST
|
||||
# --------------------------------------------------------------------------
|
||||
$DOTWRYN/bin/i3-utils i3/utils
|
||||
$DOTWRYN/colorschemes/kitty.main kitty/theme.conf
|
||||
$DOTWRYN/config/bat.conf bat/config
|
||||
$DOTWRYN/config/code-activator.conf code-activator-zsh/settings.zsh
|
||||
$DOTWRYN/config/compton.conf compton/compton.conf
|
||||
$DOTWRYN/config/git.conf git/config
|
||||
$DOTWRYN/config/i3.conf i3/config
|
||||
$DOTWRYN/config/i3status.conf i3status/config
|
||||
$DOTWRYN/config/kitty.conf kitty/kitty.conf
|
||||
$DOTWRYN/config/mssqlcli.conf mssqlci/config
|
||||
$DOTWRYN/config/pgcli.conf pgcli/config
|
||||
$DOTWRYN/config/pylint.conf pylintrc
|
||||
$DOTWRYN/config/ripgrep.conf ripgrep/config
|
||||
$DOTWRYN/config/scwrypts/config scwrypts/config
|
||||
$DOTWRYN/config/scwrypts/dotfiles.zsh scwrypts/dotfiles.zsh
|
||||
$DOTWRYN/config/scwrypts/env/local scwrypts/env/local
|
||||
$DOTWRYN/config/scwrypts/env/local.altaria scwrypts/env/local.altaria
|
||||
$DOTWRYN/config/scwrypts/env/local.butterfree scwrypts/env/local.butterfree
|
||||
$DOTWRYN/config/scwrypts/env/local.umbreon scwrypts/env/local.umbreon
|
||||
$DOTWRYN/config/scwrypts/vundle.zsh scwrypts/vundle.zsh
|
||||
$DOTWRYN/config/tmux.conf tmux/tmux.conf
|
||||
$DOTWRYN/config/xcompose.conf X11/xcompose
|
||||
$DOTWRYN/config/xconfig.conf X11/xconfig
|
||||
$DOTWRYN/config/xinitrc X11/xinitrc
|
||||
$DOTWRYN/bin/scwrypts ../.local/bin/scwrypts
|
||||
$DOTWRYN/bin/vim ../.local/bin/vim
|
||||
"
|
24
config/scwrypts/env/local
vendored
Normal file
24
config/scwrypts/env/local
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# standard AWS environment variables used by awscli and other tools
|
||||
export AWS_ACCOUNT=088935110352
|
||||
export AWS_PROFILE=yage
|
||||
export AWS_REGION=us-east-2
|
||||
|
||||
# fully-qualified path to mount the EFS drive
|
||||
export AWS__EFS__LOCAL_MOUNT_POINT=/mnt/efs/yage
|
||||
|
||||
# s3 bucket name and filesystem targets for media backups
|
||||
export AWS__S3__MEDIA_BUCKET=yage
|
||||
export AWS__S3__MEDIA_TARGETS=($S3_SYNC_MEDIA)
|
||||
|
||||
# custom i3 configuration settings
|
||||
export I3__BORDER_PIXEL_SIZE=
|
||||
export I3__DMENU_FONT_SIZE=
|
||||
export I3__GLOBAL_FONT_SIZE=
|
||||
export I3__MODEL_CONFIG=$DOTWRYN/config/i3.conf
|
||||
|
||||
# redis connection credentials
|
||||
export REDIS_AUTH=
|
||||
export REDIS_HOST=
|
||||
export REDIS_PORT=
|
24
config/scwrypts/env/local.altaria
vendored
Normal file
24
config/scwrypts/env/local.altaria
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# standard AWS environment variables used by awscli and other tools
|
||||
export AWS_ACCOUNT=088935110352 # inherited from local
|
||||
export AWS_PROFILE=yage # inherited from local
|
||||
export AWS_REGION=us-east-2 # inherited from local
|
||||
|
||||
# fully-qualified path to mount the EFS drive
|
||||
export AWS__EFS__LOCAL_MOUNT_POINT=/mnt/efs/yage # inherited from local
|
||||
|
||||
# s3 bucket name and filesystem targets for media backups
|
||||
export AWS__S3__MEDIA_BUCKET=yage # inherited from local
|
||||
export AWS__S3__MEDIA_TARGETS=($S3_SYNC_MEDIA) # inherited from local
|
||||
|
||||
# custom i3 configuration settings
|
||||
export I3__BORDER_PIXEL_SIZE=
|
||||
export I3__DMENU_FONT_SIZE=
|
||||
export I3__GLOBAL_FONT_SIZE=
|
||||
export I3__MODEL_CONFIG=$DOTWRYN/config/i3.conf # inherited from local
|
||||
|
||||
# redis connection credentials
|
||||
export REDIS_AUTH=
|
||||
export REDIS_HOST=
|
||||
export REDIS_PORT=
|
24
config/scwrypts/env/local.butterfree
vendored
Normal file
24
config/scwrypts/env/local.butterfree
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# standard AWS environment variables used by awscli and other tools
|
||||
export AWS_ACCOUNT=088935110352 # inherited from local
|
||||
export AWS_PROFILE=yage # inherited from local
|
||||
export AWS_REGION=us-east-2 # inherited from local
|
||||
|
||||
# fully-qualified path to mount the EFS drive
|
||||
export AWS__EFS__LOCAL_MOUNT_POINT=/mnt/efs/yage # inherited from local
|
||||
|
||||
# s3 bucket name and filesystem targets for media backups
|
||||
export AWS__S3__MEDIA_BUCKET=yage # inherited from local
|
||||
export AWS__S3__MEDIA_TARGETS=($S3_SYNC_MEDIA) # inherited from local
|
||||
|
||||
# custom i3 configuration settings
|
||||
export I3__BORDER_PIXEL_SIZE=
|
||||
export I3__DMENU_FONT_SIZE=
|
||||
export I3__GLOBAL_FONT_SIZE=
|
||||
export I3__MODEL_CONFIG=$DOTWRYN/config/i3.conf # inherited from local
|
||||
|
||||
# redis connection credentials
|
||||
export REDIS_AUTH=
|
||||
export REDIS_HOST=
|
||||
export REDIS_PORT=
|
24
config/scwrypts/env/local.umbreon
vendored
Normal file
24
config/scwrypts/env/local.umbreon
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/zsh
|
||||
|
||||
# standard AWS environment variables used by awscli and other tools
|
||||
export AWS_ACCOUNT=088935110352 # inherited from local
|
||||
export AWS_PROFILE=yage # inherited from local
|
||||
export AWS_REGION=us-east-2 # inherited from local
|
||||
|
||||
# fully-qualified path to mount the EFS drive
|
||||
export AWS__EFS__LOCAL_MOUNT_POINT=/mnt/efs/yage # inherited from local
|
||||
|
||||
# s3 bucket name and filesystem targets for media backups
|
||||
export AWS__S3__MEDIA_BUCKET=yage # inherited from local
|
||||
export AWS__S3__MEDIA_TARGETS=($S3_SYNC_MEDIA) # inherited from local
|
||||
|
||||
# custom i3 configuration settings
|
||||
export I3__BORDER_PIXEL_SIZE=
|
||||
export I3__DMENU_FONT_SIZE=
|
||||
export I3__GLOBAL_FONT_SIZE=
|
||||
export I3__MODEL_CONFIG=$DOTWRYN/config/i3.conf # inherited from local
|
||||
|
||||
# redis connection credentials
|
||||
export REDIS_AUTH=
|
||||
export REDIS_HOST=
|
||||
export REDIS_PORT=
|
@ -6,7 +6,7 @@ export PATH="$DOTWRYN/bin/xorg/$(hostnamectl --static):$PATH"
|
||||
for SCRIPT in $(find /etc/x11/xinit/xinitrc.d); do source $SCRIPT; done
|
||||
command -v dex && dex -a
|
||||
|
||||
$DOTWRYN/bin/xorg/activate-default &
|
||||
$DOTWRYN/bin/xorg-activate-default &
|
||||
|
||||
cd
|
||||
exec i3
|
||||
|
@ -25,7 +25,7 @@ source "$DOTWRYN_PATH/zsh/plugins/scwrypts/zsh/utils/utils.module.zsh" || exit 3
|
||||
|
||||
SCWRYPTS() {
|
||||
CI=1 \
|
||||
CONFIG__USER_SETTINGS="$DOTWRYN_PATH/config/scwrypts.dotfile.conf" \
|
||||
CONFIG__USER_SETTINGS="$DOTWRYN_PATH/config/scwrypts/dotfiles.conf" \
|
||||
DOTWRYN=$DOTWRYN_PATH \
|
||||
"$DOTWRYN_PATH/zsh/plugins/scwrypts/scwrypts" -n $1 -- ${@:2}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user