Adjusted startup configuration

* picom replaced compton
* Fix conky config for i3 use in .update_x
* Improved detection of current WM in .start_desktop_apps and .update_conky
This commit is contained in:
2Shirt 2020-01-16 17:56:49 -07:00
parent ac134b0a3f
commit f16a01c6fb
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 7 additions and 3 deletions

View file

@ -3,7 +3,7 @@
## Start desktop apps based on WM
# Start common apps
compton --backend xrender --xrender-sync --xrender-sync-fence &
picom --backend xrender --xrender-sync --xrender-sync-fence &
sleep 1s
x0vncserver -display :0 -passwordfile $HOME/.vnc/passwd -AlwaysShared &
conky &
@ -11,7 +11,7 @@ nm-applet &
volumeicon &
# Start WM specific apps
if fgrep -q "i3" /proc/cmdline; then
if ! [[ "${I3SOCK:-}" == "" ]]; then
# i3
i3-msg restart
else

View file

@ -24,6 +24,11 @@ for i in "${IF_LIST[@]}"; do
done
sed -i -r "s/#Network//" "${CONFIG_NEW}"
# Fix under i3
if ! [[ "${I3SOCK:-}" == "" ]]; then
sed -i -r 's/(own_window_type)(.*)(desktop)/\1\2override/' "${CONKY_NEW}"
fi
# Replace config if there were changes
if ! diff -q "${CONFIG_NEW}" "${CONFIG_REAL}" >/dev/null 2>&1; then
rm "${CONFIG_REAL}"

View file

@ -5,7 +5,6 @@ if [ "$(fgconsole 2>/dev/null)" -eq "1" ]; then
# Update settings if using i3
if fgrep -q "i3" /proc/cmdline; then
sed -i -r 's/#(own_window_type override)/\1/' ~/.conkyrc
sed -i -r 's/openbox-session/i3/' ~/.xinitrc
fi