Update .xsessionrc

Small refactor
This commit is contained in:
Przemek Grondek 2020-07-30 09:54:52 +02:00 committed by GitHub
parent 94bd574e6d
commit 3be013e7e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,30 @@
#!/usr/bin/env sh
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
wmname LG3D
if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
wmname LG3D
/usr/bin/nextcloud &
/home/pgrondek/bin/jetbrains-toolbox --minimize &
/home/pgrondek/bin/dwmstatus &
/usr/bin/feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
compton &
dwmstatus &
if test -f "$HOME/.screenlayout/main.sh"; then
"$HOME/.screenlayout/main.sh"
fi
/usr/bin/redshift &
/usr/bin/compton &
compton &
redshift &
feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
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