diff --git a/setup/linux/include_x/airootfs/etc/skel/.start_desktop_apps b/setup/linux/include_x/airootfs/etc/skel/.start_desktop_apps index 2e33ed8f..d6d2b5ca 100755 --- a/setup/linux/include_x/airootfs/etc/skel/.start_desktop_apps +++ b/setup/linux/include_x/airootfs/etc/skel/.start_desktop_apps @@ -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 diff --git a/setup/linux/include_x/airootfs/etc/skel/.update_conky b/setup/linux/include_x/airootfs/etc/skel/.update_conky index 0e1445df..b97a86c1 100755 --- a/setup/linux/include_x/airootfs/etc/skel/.update_conky +++ b/setup/linux/include_x/airootfs/etc/skel/.update_conky @@ -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}" diff --git a/setup/linux/include_x/airootfs/etc/skel/.zlogin b/setup/linux/include_x/airootfs/etc/skel/.zlogin index 1b005d4d..65a23ed1 100644 --- a/setup/linux/include_x/airootfs/etc/skel/.zlogin +++ b/setup/linux/include_x/airootfs/etc/skel/.zlogin @@ -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