From 8b970d5990aaea3543ba70350d27daa5a8c5ca22 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 8 Feb 2013 01:32:00 -0200 Subject: Do not link xsession with xprofile --- modules/profile/profile.dot.link | 12 ++++---- modules/profile/xinitrc.dot.link | 4 +-- modules/profile/xprofile.dot.link | 63 -------------------------------------- modules/profile/xsession.dot.link | 64 ++++++++++++++++++++++++++++++++++++++- 4 files changed, 70 insertions(+), 73 deletions(-) mode change 100755 => 100644 modules/profile/xprofile.dot.link mode change 120000 => 100755 modules/profile/xsession.dot.link (limited to 'modules/profile') diff --git a/modules/profile/profile.dot.link b/modules/profile/profile.dot.link index 3b71de0..ce2dd52 100644 --- a/modules/profile/profile.dot.link +++ b/modules/profile/profile.dot.link @@ -31,14 +31,14 @@ mkdir -p $TMP eval "`dircolors -b ~/.dircolorsrc`" # SSH Agent -#if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then -# $HOME/apps/scripts/ssh-agent-eval -#fi +if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then + $HOME/apps/scripts/ssh-agent-eval +fi # GPG Agent -#if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then -# $HOME/apps/scripts/gpg-agent-eval -#fi +if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then + $HOME/apps/scripts/gpg-agent-eval +fi # Remove lost found folder if empty if [ -d "$HOME/lost+found" ]; then diff --git a/modules/profile/xinitrc.dot.link b/modules/profile/xinitrc.dot.link index fdd35b1..2f0f702 100644 --- a/modules/profile/xinitrc.dot.link +++ b/modules/profile/xinitrc.dot.link @@ -7,6 +7,4 @@ source $HOME/.xprofile & # Run window manager -#enlightenment -#fluxbox -awesome +#awesome diff --git a/modules/profile/xprofile.dot.link b/modules/profile/xprofile.dot.link old mode 100755 new mode 100644 index 7de56ea..e69de29 --- a/modules/profile/xprofile.dot.link +++ b/modules/profile/xprofile.dot.link @@ -1,63 +0,0 @@ -#!/bin/bash -# -# .xprofile: set basic X11 environment -# - -# Background image -BACKGROUND="" - -# Session applications -PROGRAMS="" - -# OS Version -OSVERSION="`cut -d . -f 1 /etc/debian_version`" - -# Hostname -HOSTNAME="`cat /etc/hostname`" - -# Make sure to load the profile -. $HOME/.profile - -# Start xscreensaver -xscreensaver -no-splash & - -# Custom -if [ -e "$HOME/.custom/xprofile" ]; then - . $HOME/.custom/xprofile -fi - -# Set background -if [ ! -z "$BACKGROUND" ]; then - Esetroot -scale $HOME/.config/themes/backgrounds/$BACKGROUND -else - xsetroot -solid black -fi - -# Additional applications depending on the machine type -if laptop-detect; then - PROGRAMS="$PROGRAMS" -else - PROGRAMS="$PROGRAMS" -fi - -# Start session applications -for program in $PROGRAMS; do - $program & -done - -# Apply custom keyboard configuration -if [ -f "$HOME/.Xmodmaps/$HOSTNAME" ]; then - xmodmap $HOME/.Xmodmaps/$HOSTNAME -fi - -# Execute window manager -if [ "$OSVERSION" = "7" ]; then - # See https://bugzilla.redhat.com/show_bug.cgi?id=783568 - # https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/932177 - #unset GNOME_KEYRING_PID - #unset GNOME_KEYRING_CONTROL - #eval $(gnome-keyring-daemon --start) & - - # Start window manager - awesome -fi diff --git a/modules/profile/xsession.dot.link b/modules/profile/xsession.dot.link deleted file mode 120000 index d381138..0000000 --- a/modules/profile/xsession.dot.link +++ /dev/null @@ -1 +0,0 @@ -xprofile.dot.link \ No newline at end of file diff --git a/modules/profile/xsession.dot.link b/modules/profile/xsession.dot.link new file mode 100755 index 0000000..98b5225 --- /dev/null +++ b/modules/profile/xsession.dot.link @@ -0,0 +1,63 @@ +#!/bin/bash +# +# .xsession: set basic X11 environment +# + +# Background image +BACKGROUND="" + +# Session applications +PROGRAMS="" + +# OS Version +OSVERSION="`cut -d . -f 1 /etc/debian_version`" + +# Hostname +HOSTNAME="`cat /etc/hostname`" + +# Make sure to load the profile +. $HOME/.profile + +# Start xscreensaver +xscreensaver -no-splash & + +# Custom +if [ -e "$HOME/.custom/xsession" ]; then + . $HOME/.custom/xsession +fi + +# Set background +if [ ! -z "$BACKGROUND" ]; then + Esetroot -scale $HOME/.config/themes/backgrounds/$BACKGROUND +else + xsetroot -solid black +fi + +# Additional applications depending on the machine type +if laptop-detect; then + PROGRAMS="$PROGRAMS xwicd" +else + PROGRAMS="$PROGRAMS" +fi + +# Start session applications +for program in $PROGRAMS; do + $program & +done + +# Apply custom keyboard configuration +if [ -f "$HOME/.Xmodmaps/$HOSTNAME" ]; then + xmodmap $HOME/.Xmodmaps/$HOSTNAME +fi + +# Execute window manager +if [ "$OSVERSION" = "7" ]; then + # See https://bugzilla.redhat.com/show_bug.cgi?id=783568 + # https://bugs.launchpad.net/ubuntu/+source/gnome-keyring/+bug/932177 + unset GNOME_KEYRING_PID + unset GNOME_KEYRING_CONTROL + #eval $(gnome-keyring-daemon --start) & + + # Start window manager + awesome +fi -- cgit v1.2.3