Configuration_Files/user/homedir/xsession

73 lines
1.9 KiB
Plaintext
Raw Normal View History

#!/bin/es
. ~/.esrc
fn load_configs{
for (x=`{ls ~/.config/xresources/*})
{xrdb -merge $x}
}
fn setup_daemons{
if {~ $HOSTNAME speculatores}
{
}
{
2021-11-23 17:45:58 +00:00
# Start the compositor.
picom -cCzfGD3 --shadow-exclude bounding_shaped --vsync --no-use-damage --backend $backend&
}
# Manage clicks on the root window.
2021-11-23 17:45:58 +00:00
# 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.
2021-11-23 17:45:58 +00:00
xwallpaper --no-randr --tile $FXDE_DIR/fxde-assets/wallpaper/$PAPE
# Start the status bar. Doesn't work in some WMs. EWMH maybe..?
2021-11-23 17:45:58 +00:00
#$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.
2021-11-23 17:45:58 +00:00
respawn stalonetray --window-type desktop --icon-gravity N -v -t --grow-gravity S -i 24 --geometry 1x1+0-17 &
}
2021-11-23 17:45:58 +00:00
fn cleanup{
for(i=respawn xclock xload stalonetray){pkill $i}
}
################################################################################
## The actual config is below this. ##
################################################################################
# Where to look for assets.
FXDE_DIR=~/.config/fxde/
2021-11-23 17:45:58 +00:00
FVWM_DIR=~/.config/fxde/
# Paper to use.
2021-11-23 17:45:58 +00:00
PAPE=solardarktile_0.png
# What cursor?
2021-07-07 20:00:33 +00:00
CURSOR=Lambda
# What WM?
2021-11-23 17:45:58 +00:00
wm=emwm
2021-07-07 20:14:14 +00:00
for (phase=load_configs setup_daemons start_ui){$phase}
2021-11-23 17:45:58 +00:00
$wm
cleanup
exit