HOKAY; XDG_* refactor

This commit is contained in:
2024-08-16 09:41:26 -06:00
parent 7b70567a67
commit 9301a32090
31 changed files with 332 additions and 130 deletions

View File

@ -17,3 +17,7 @@ wryn:
home server data
server-hostnames:
.ENVIRONMENT: WRYN__SERVER_HOSTNAMES
dotwryn:
.DESCRIPTION: >-
path to the local installation of wrynegade/dotwryn
.ENVIRONMENT: DOTWRYN

View File

@ -11,13 +11,13 @@ MAIN() {
case $SELECTION in
random )
feh --recursive --randomize --bg-fill $WALLPAPER_PATH
feh --no-fehbg --recursive --randomize --bg-fill $WALLPAPER_PATH
;;
* )
[ ! -f $DESKTOP__WALLPAPER_PATH/$SELECTION ] \
&& FAIL 2 "no such wallpaper '$SELECTION' in wallpaper path"
feh --bg-fill $DESKTOP__WALLPAPER_PATH/$SELECTION
feh --no-fehbg --bg-fill $DESKTOP__WALLPAPER_PATH/$SELECTION
;;
esac
}

View File

@ -231,7 +231,7 @@ SET_THEME() {
local WALLPAPER="$(find "$DESKTOP__WALLPAPER_PATH" -type f -name $THEME_NAME.\* 2>/dev/null | head -n1)"
[ "$WALLPAPER" ] && command -v feh &>/dev/null \
&& feh --bg-fill "$WALLPAPER"
&& feh --no-fehbg --bg-fill "$WALLPAPER"
CHECK_ERRORS --no-usage \
&& echo "$THEME_NAME" > "$ACTIVE_THEME_PATH/name.txt"

View File

@ -31,6 +31,23 @@ USAGE__description="
MAIN() {
[[ $TERM =~ tmux ]] && ERROR "\n Cannot run tmux-omni within a tmux session!\n "
local BACKGROUND_LAUNCH=false
local _S
while [[ $# -gt 0 ]]
do
_S=1
case $1 in
--background ) BACKGROUND_LAUNCH=true ;;
esac
[[ $_S -le $# ]] \
&& shift $_S \
|| ERROR "missing argument for '$1'" \
|| shift $# \
;
done
CHECK_ERRORS
local OMNI_SOCKET="omni.socket"
@ -48,6 +65,11 @@ MAIN() {
OMNI_TMUX new -d -s omni-manager "$SCWRYPTS_ROOT__remote/tmux/manager"
}
[[ $BACKGROUND_LAUNCH =~ true ]] && {
SUCCESS "omni server activated"
return 0
}
STATUS 'connecting to omni server'
OMNI_TMUX a -t=omni
}