MISC
- added sync media directories - zsh plugin update
This commit is contained in:
@ -19,29 +19,29 @@ esac
|
||||
#####################################################################
|
||||
|
||||
PULL_MEDIA() {
|
||||
local TARGET="$1"
|
||||
local REMOTE_TARGET="s3://$S3_SYNC_BUCKET/$1"
|
||||
local LOCAL_TARGET="$HOME/$1"
|
||||
local FLAGS=()
|
||||
|
||||
[ ! -d $LOCAL_TARGET ] && mkdir -p $LOCAL_TARGET
|
||||
|
||||
local DELETE="$2"
|
||||
[ $DELETE ] && FLAGS=--delete
|
||||
[ $DELETE ] && FLAGS+=--delete
|
||||
|
||||
CHECK "downloading latest $1"
|
||||
aws --profile $DOTWRYN_AWS_PROFILE \
|
||||
s3 sync $REMOTE_TARGET $LOCAL_TARGET \
|
||||
$FLAGS >/dev/null 2>&1 \
|
||||
$FLAGS \
|
||||
&& OK || WARN
|
||||
}
|
||||
|
||||
PUSH_MEDIA() {
|
||||
local TARGET="$1"
|
||||
local REMOTE_TARGET="s3://$S3_SYNC_BUCKET/$1"
|
||||
local LOCAL_TARGET="$HOME/$1"
|
||||
local FLAGS=()
|
||||
|
||||
local DELETE="$2"
|
||||
[ $DELETE ] && FLAGS=--delete
|
||||
[ $DELETE ] && FLAGS+=--delete
|
||||
|
||||
CHECK "uploading $1"
|
||||
aws --profile $DOTWRYN_AWS_PROFILE \
|
||||
|
@ -26,6 +26,8 @@ CLIENT_CLASS="${@:2}"
|
||||
XFFSET=0.0
|
||||
YFFSET=0.0
|
||||
FACTOR=0.8
|
||||
xrandr | grep primary | awk '{print $4;}' | grep -q '^3840' \
|
||||
&& FACTOR=0.5
|
||||
case $APPLICATION in
|
||||
pavucontrol ) FACTOR=0.4 YFFSET=200 ;;
|
||||
esac
|
||||
|
@ -17,7 +17,7 @@ case $COMMAND in
|
||||
|
||||
lock ) $DOTWRYN/bin/i3lock ;;
|
||||
|
||||
bgrandomize ) $DOTWRYN/bin/randomize-background ;;
|
||||
bgrandomize ) $DOTWRYN/bin/set-background random ;;
|
||||
|
||||
alternateterm ) $DOTWRYN/bin/kitty/alternate-theme ;;
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/zsh
|
||||
source "$HOME/.config/wryn/env.zsh"
|
||||
|
||||
[ -d "$WALLPAPER_PATH" ] \
|
||||
&& feh --recursive --randomize --bg-fill "$WALLPAPER_PATH"
|
14
bin/set-background
Executable file
14
bin/set-background
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/zsh
|
||||
source "$HOME/.config/wryn/env.zsh"
|
||||
[ ! -d $WALLPAPER_PATH ] && exit 1
|
||||
|
||||
|
||||
case $1 in
|
||||
random )
|
||||
feh --recursive --randomize --bg-fill $WALLPAPER_PATH
|
||||
;;
|
||||
* )
|
||||
[ ! -f $WALLPAPER_PATH/$1 ] && exit 2
|
||||
feh --bg-fill $WALLPAPER_PATH/$1
|
||||
;;
|
||||
esac
|
@ -2,12 +2,12 @@
|
||||
source ${0:a:h}/common
|
||||
|
||||
xrandr \
|
||||
--output HDMI-0 \
|
||||
--output DP-0 \
|
||||
--primary \
|
||||
--mode 3840x2160 \
|
||||
--rotate normal \
|
||||
--pos 0x0 \
|
||||
;
|
||||
|
||||
$DOTWRYN/bin/randomize-background
|
||||
$DOTWRYN/bin/set-background random
|
||||
PLAY_SFX login
|
||||
|
@ -44,7 +44,7 @@ DISCONNECT_OTHER() {
|
||||
done
|
||||
|
||||
sleep 1
|
||||
$DOTWRYN/bin/randomize-background
|
||||
$DOTWRYN/bin/set-background random
|
||||
|
||||
[ $SFX ] && ( PLAY_SFX $SFX ) &
|
||||
return 0
|
||||
|
Reference in New Issue
Block a user