Updated xsession.

This commit is contained in:
Mid Favila 2021-11-23 13:45:58 -04:00
parent 35fbbdfb2d
commit 416c427539

View File

@ -8,17 +8,15 @@ fn load_configs{
fn setup_daemons{ fn setup_daemons{
if {~ $HOSTNAME speculatores} if {~ $HOSTNAME speculatores}
{ {
backend=xrender
} }
{ {
backend=glx # Start the compositor.
picom -cCzfGD3 --shadow-exclude bounding_shaped --vsync --no-use-damage --backend $backend&
} }
# Start the compositor.
picom -cCzfGD3 -i.85 --shadow-exclude bounding_shaped --vsync --no-use-damage --backend $backend&
# Manage clicks on the root window. # Manage clicks on the root window.
# xclickroot -1 xmenu & # xclickroot -1 ~/.config/fxde/fxde-core/config/menu &
# Manage hotkeys. # Manage hotkeys.
sxhkd -c $FXDE_DIR/fxde-core/config/sxhkdrc & sxhkd -c $FXDE_DIR/fxde-core/config/sxhkdrc &
@ -33,29 +31,42 @@ fn start_ui{
# Set cursor. # Set cursor.
xsetroot -xcf $FXDE_DIR/fxde-assets/cursors/$CURSOR/cursors/left_ptr 12 & xsetroot -xcf $FXDE_DIR/fxde-assets/cursors/$CURSOR/cursors/left_ptr 12 &
# Set wallpaper. # Set wallpaper.
xwallpaper --no-randr --stretch $FXDE_DIR/fxde-assets/wallpaper/$PAPE xwallpaper --no-randr --tile $FXDE_DIR/fxde-assets/wallpaper/$PAPE
# Start the status bar. Doesn't work in some WMs. EWMH maybe..? # Start the status bar. Doesn't work in some WMs. EWMH maybe..?
# $FXDE_DIR/fxde-core/scripts/bar.es|lemonbar -b -F '#000000' -g265x16+0+0 -B '#00000000' -f 'xft:family=Iosevka:style=Mono:size=9:' |sh - & #$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 task bar in environments where the status bar doesn't work. # Start the system clock.
aepanel & respawn xclock &
# Start the load monitor.
respawn xload &
# Spawn a tray. # Spawn a tray.
stalonetray --window-type desktop --icon-gravity N -v -t --grow-gravity S -i 24 --geometry 1x1+0-17 & respawn stalonetray --window-type desktop --icon-gravity N -v -t --grow-gravity S -i 24 --geometry 1x1+0-17 &
} }
fn cleanup{
for(i=respawn xclock xload stalonetray){pkill $i}
}
################################################################################ ################################################################################
## The actual config is below this. ## ## The actual config is below this. ##
################################################################################ ################################################################################
# Where to look for assets. # Where to look for assets.
FXDE_DIR=~/.config/fxde/ FXDE_DIR=~/.config/fxde/
FVWM_DIR=~/.config/fxde/
# Paper to use. # Paper to use.
PAPE=lain-ascii.jpg PAPE=solardarktile_0.png
# What cursor? # What cursor?
CURSOR=Lambda CURSOR=Lambda
# What WM? # What WM?
wm=aewm-wrap wm=emwm
for (phase=load_configs setup_daemons start_ui){$phase} for (phase=load_configs setup_daemons start_ui){$phase}
exec $wm $wm
cleanup
exit