dotfiles/.xsessionrc

35 lines
820 B
Bash
Executable File

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