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