Gör din egen Xsession

Min ultimata desktop setup. Kör denna med Avant Window Navigator och Gnome-Do. Har allt du kan tänkas behöva. Sen lite Compiz på det.

Först och främst; ta bort lite skit (jag gillar inte Unity):

sudo apt-get purge unity*

Sen, installera lite mer bra att ha grejor:

sudo apt-get install avant-window-navigator awn-applets-all compiz gnome-do curl compizconfig-settings-manager nautilus nautilus-sendto unity-greeter

Skapa följande filer eller kör följande:

curl https://www.ollegustafsson.com/wp-content/uploads/2011/12/ogg-session.tar.gz | sudo tar zxv -C /

[/usr/share/gnome-session/sessions/ogg.session]

[GNOME Session]
Name=oGG Session
RequiredComponents=gnome-settings-daemon;
RequiredProviders=windowmanager;panel;
DefaultProvider-windowmanager=compiz
DefaultProvider-panel=avant-window-navigator
DesktopName=GNOME

[/usr/share/xsessions/ogg.desktop]

[Desktop Entry]
Name=Avant Window Navigator (with Gnome and effects)
Comment=This session logs you into GNOME with Avant Window Navigator and with graphical effects.
Exec=gnome-session --session=ogg
TryExec=ogg-session
Icon=
Type=Application

[/usr/bin/ogg-session]

#!/bin/bash

# Script for the ’desktop-manager’ subproject of Avant Window Navigator

# This script removes Unity Compiz plugin and launches Avant Window Navigator with a short delay

UNITY_NAME=”unityshell”
COMPIZ_FLAT_FILE=”$HOME/.config/compiz-1/compizconfig/Default.ini”
COMPIZ_GCONF=”/apps/compiz-1/general/screen0/options/active_plugins”

if test -d ”$HOME/.config/compiz-1”; then # compiz >= 0.9
# plug-ins in double are NO LONGER filtered by Compiz in this version… (and if plugins are in double or wrong, compiz crashes 🙂 )
# flat file
if test -f ”$COMPIZ_FLAT_FILE”; then
pluginsFlat=`grep ”s0_active_plugins” $COMPIZ_FLAT_FILE`
if test `echo $pluginsFlat | grep -c $UNITY_NAME` -gt 0; then
pluginsFlatWithoutUnity=`echo $pluginsFlat | sed -e ”s/$UNITY_NAME;//g”`
sed -i ”/s0_active_plugins/ s/$pluginsFlat/$pluginsFlatWithoutUnity/g” $COMPIZ_FLAT_FILE
fi
fi
# gconf
plugins=`gconftool-2 -g $COMPIZ_GCONF`
if test `echo $plugins | grep -c $UNITY_NAME` -gt 0; then
pluginsWithoutUnity=`echo $plugins | sed -e ”s/$UNITY_NAME,//g”`
gconftool-2 -s $COMPIZ_GCONF –type=list –list-type=string ”$pluginsWithoutUnity”
killall unity-panel-service
fi
fi

if test `ps aux | grep -c ” [a]vant-window-navigator”` -eq 0; then # avant-window-navigator not launched
avant-window-navigator –startup-delay 3
fi

3 svar på ”Gör din egen Xsession”

Lämna ett svar

Din e-postadress kommer inte publiceras. Obligatoriska fält är märkta *