Configuration_Files/misc/.xsession

65 lines
1.8 KiB
Plaintext
Executable File

#!/bin/es
. ~/.esrc
fn load_configs{
for (x=`{ls ~/.config/xresources/*})
{xrdb -merge $x}
}
fn setup_daemons{
if {~ $HOSTNAME speculatores}
{
}
{
# Start the compositor.
picom -cCzfGD3 --shadow-exclude bounding_shaped --vsync --no-use-damage --backend $backend&
}
# Manage clicks on the root window.
# xclickroot -1 ~/.config/fxde/fxde-core/config/menu &
# Manage hotkeys.
sxhkd -c $FXDE_DIR/fxde-core/config/sxhkdrc &
# Start the screen locker on a timer.
xssstart slock &
}
fn start_ui{
# Welcome chime.
aplay $FXDE_DIR/fxde-assets/audio/Login.wav &
# Set cursor.
xsetroot -xcf $FXDE_DIR/fxde-assets/cursors/$CURSOR/cursors/left_ptr 12 &
# Set wallpaper.
xwallpaper --no-randr --stretch $FXDE_DIR/fxde-assets/wallpaper/$PAPE
# Start the status bar. Doesn't work in some WMs. EWMH maybe..?
#$FXDE_DIR/fxde-core/scripts/bar.es|lemonbar -b -F '#FFFFFF' -g265x16+0+0 -B '#00000000' -f 'xft:family=Iosevka:style=Mono:size=11:' |sh - &
# Start the system clock.
respawn xclock &
# Start the load monitor.
respawn xload &
# Spawn a tray.
stalonetray --window-type desktop --icon-gravity N -v -t --grow-gravity S -i 24 --geometry 1x1+0-17 &
}
################################################################################
## The actual config is below this. ##
################################################################################
# Where to look for assets.
FXDE_DIR=~/.config/fxde/
FVWM_DIR=~/.config/fxde/
# Paper to use.
PAPE=magic-tree.png
# What cursor?
CURSOR=Lambda
# What WM?
wm=emwm
for (phase=load_configs setup_daemons start_ui){$phase}
exec $wm