fix: pipewire might fail to start

This commit is contained in:
Klesh Wong 2022-05-04 22:27:11 +08:00
parent d384465dd6
commit 32a31a2dd6

View File

@ -24,7 +24,7 @@ $DRI/dict.sh
HTTPS_PROXY=$GITHUB_PROXY git clone https://github.com/klesh/awesome-wm-widgets.git "$XDG_CONFIG_HOME/awesome/awesome-wm-widgets" HTTPS_PROXY=$GITHUB_PROXY git clone https://github.com/klesh/awesome-wm-widgets.git "$XDG_CONFIG_HOME/awesome/awesome-wm-widgets"
# ~/.xinitrc # ~/.xinitrc
cat <<EOT > ~/.xinitrc cat <<'EOT' > ~/.xinitrc
export XMODIFIERS="@im=ibus" export XMODIFIERS="@im=ibus"
export QT_IM_MODULE=ibus export QT_IM_MODULE=ibus
export GTK_IM_MODULE=xim export GTK_IM_MODULE=xim
@ -32,6 +32,7 @@ export VIM_MODE=enhanced
export DMENU_DEFAULT_OPTS='-i -c -fn monospace:13 -nb #222222 -nf #bbbbbb -sb #5b97f7 -sf #eeeeee -l 20' export DMENU_DEFAULT_OPTS='-i -c -fn monospace:13 -nb #222222 -nf #bbbbbb -sb #5b97f7 -sf #eeeeee -l 20'
export TMUX_SHELL=/usr/bin/fish export TMUX_SHELL=/usr/bin/fish
export XDG_RUNTIME_DIR=/tmp/runtime-klesh export XDG_RUNTIME_DIR=/tmp/runtime-klesh
mkdir -p $XDG_RUNTIME_DIR
exec dbus-run-session -- awesome 2> /tmp/awesome.log exec dbus-run-session -- awesome 2> /tmp/awesome.log
EOT EOT
@ -42,7 +43,7 @@ cat <<'EOT' | sed "s|__PDIR__|$PDIR|g" > ~/.profile
export WINIP=localhost export WINIP=localhost
export PATH=~/dotfiles/bin:~/.local/bin:$PATH export PATH=~/dotfiles/bin:~/.local/bin:$PATH
#Startx Automatically # startx Automatically
if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then if [ -z "$DISPLAY" ] && [ $(tty) = /dev/tty1 ]; then
startx startx
fi fi