You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

#!/bin/sh
## Run some ssh-agent. Either gnome-keyring-daemon or ssh-agent
if [ -z "$SSH_AUTH_SOCK" ]; then
eval "$(gnome-keyring-daemon --start)"
export SSH_AUTH_SOCK
fi
## Setup environment
export XDG_CURRENT_DESKTOP=ekkie-de
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export SDL_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
confighome="${XDG_CONFIG_HOME:-$HOME/.config}/$XDG_CURRENT_DESKTOP"
getconfig() {
if [ -e "$confighome/$1" ]; then
echo "$confighome/$1"
else
echo "/etc/$XDG_CURRENT_DESKTOP/$1"
fi
}
screenlayout="$confighome/screenlayout.sh"
[ "$screenlayout" ] && "$screenlayout"
wallpaper="$confighome/wallpaper"
[ "$wallpaper" ] && [ -L "$wallpaper" ] && xwallpaper --daemon --zoom "$(readlink "$wallpaper")"
dunst -config "$(getconfig dunst)" &
picom --config "$(getconfig picom)" &
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
dex --autostart --environment "$XDG_CURRENT_DESKTOP" &
ibus-daemon -rx &
udiskie -At &
export i3statusconfig="$(getconfig i3status)"
exec i3 -c "$(getconfig i3)"