Configuration_Files/user/homedir/xsession

81 lines
2.0 KiB
Plaintext
Raw Normal View History

#!/bin/rc
. $HOME/.rcrc
fn load_configs {
for(x in `{ls $HOME/.config/xresources/*})
{xrdb -merge $x}
}
fn setup_daemons {
if (~ $HOSTNAME speculatores)
{
}
{
# Start the compositor
2021-11-23 17:45:58 +00:00
picom -cCzfGD3 --shadow-exclude bounding_shaped --vsync --no-use-damage --backend $backend&
}
# Manage clicks on the root window
# xclickroot -1 $HOME/.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 - &
2021-11-23 17:45:58 +00:00
# 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(prog in respawn xclock xload stalonetray){pkill $prog}
2021-11-23 17:45:58 +00:00
}
################################################################################
## The actual config is below this. ##
################################################################################
# Make sure our terminal knows to use 256 colors
TERM=xterm-256color
# Where to look for assets
FXDE_DIR=$HOME/.config/fxde/
FVWM_DIR=$HOME/.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?
WM=emwm
2021-07-07 20:14:14 +00:00
for(phase in load_configs setup_daemons start_ui){$phase}
$WM
2021-11-23 17:45:58 +00:00
cleanup
exit