bash: remove gtk dpi scaling, redirect river log to XDG_STATE_HOME

This commit is contained in:
Andrew Scott 2024-10-06 00:39:32 -04:00
parent b106c6392a
commit af77c8e850
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -19,16 +19,12 @@ export XDG_STATE_HOME="${HOME}/.local/state"
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
# GPG passphrase prompt # GPG passphrase prompt
export GPG_TTY=$(tty) GPG_TTY=$(tty)
export GPG_TTY
# Mozilla + Wayland # Mozilla + Wayland
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
{{ if eq .chezmoi.hostname "helix" -}}
# Scale GTK applicatons
export GDK_SCALE=2 GDK_DPI_SCALE=0.50
{{- end }}
## No littering in $HOME! ## No littering in $HOME!
# bash # bash
@ -81,4 +77,4 @@ export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority"
[[ -f ~/.bashrc ]] && . ~/.bashrc [[ -f ~/.bashrc ]] && . ~/.bashrc
# start river # start river
[[ -z $DISPLAY && $(tty) = "/dev/tty1" ]] && exec dbus-run-session river [[ -z $DISPLAY && $(tty) = "/dev/tty1" ]] && exec dbus-run-session river 2> "${XDG_STATE_HOME}"/river.log >/dev/null