dotfiles/.xsessionrc

39 lines
1012 B
Plaintext
Raw Normal View History

2020-06-16 01:16:16 +00:00
#!/usr/bin/env sh
2020-07-30 07:54:52 +00:00
if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
wmname LG3D
2020-06-16 01:16:16 +00:00
2020-07-30 07:54:52 +00:00
if test -f "$HOME/.screenlayout/main.sh"; then
"$HOME/.screenlayout/main.sh"
fi
compton &
redshift &
dwmstatus &
2020-06-16 01:16:16 +00:00
2020-07-30 09:42:50 +00:00
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
2020-07-30 07:54:52 +00:00
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