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:
parent
ac134b0a3f
commit
f16a01c6fb
3 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue