#!/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 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. xwallpaper --no-randr --tile $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. respawn stalonetray --window-type desktop --icon-gravity N -v -t --grow-gravity S -i 24 --geometry 1x1+0-17 & } fn cleanup{ for(prog in respawn xclock xload stalonetray){pkill $prog} } ################################################################################ ## 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. PAPE=solardarktile_0.png # What cursor? CURSOR=Lambda # What WM? WM=emwm for(phase in load_configs setup_daemons start_ui){$phase} $WM cleanup exit