Update .xsessionrc

This commit is contained in:
Przemek Grondek 2021-10-20 22:21:36 +02:00
parent 89a4626521
commit f164579c2c

View File

@ -5,16 +5,40 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
export AWT_TOOLKIT=MToolkit export AWT_TOOLKIT=MToolkit
wmname LG3D wmname LG3D
if test -f "$HOME/.screenlayout/main.sh"; then
"$HOME/.screenlayout/main.sh"
fi
compton & compton &
redshift & redshift &
dwmstatus & dwmstatus &
dunst & dunst &
numlockx on & numlockx on &
if command -v blueman-applet &> /dev/null ; then
blueman-applet &
fi
# Audio
if command -v pasystray &> /dev/null ; then
pasystray &
fi
if command -v nextcloud &> /dev/null ; then
nextcloud &
fi
if command -v signal-desktop &> /dev/null ; then
signal-desktop --start-in-tray &
fi
# Bluetooth
if command -v jetbrains-toolbox &> /dev/null ; then
jetbrains-toolbox --minimize &
fi
# Authentication agent for running application as root
if test /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 ; then
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
fi
# Set background
if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then
feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg & feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg &
else else
@ -24,24 +48,4 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
fi fi
fi fi
if command -v nextcloud &> /dev/null ; then
nextcloud &
fi
if command -v jetbrains-toolbox &> /dev/null ; then
jetbrains-toolbox --minimize &
fi
if command -v slack &> /dev/null ; then
slack &
fi
# Authentication agent for running application as root
if test /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 ; then
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
fi
# Bluetooth
if command -v blueman-applet &> /dev/null ; then
blueman-applet &
fi