2020-07-31 07:08:07 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-06-16 01:16:16 +00:00
|
|
|
|
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 &
|
2020-07-30 09:47:56 +00:00
|
|
|
dwmstatus &
|
2020-08-04 08:47:37 +00:00
|
|
|
dunst &
|
2021-07-05 08:21:45 +00:00
|
|
|
numlockx on &
|
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 &
|
2020-07-31 07:08:07 +00:00
|
|
|
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 09:42:50 +00:00
|
|
|
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
|
2020-07-30 09:47:56 +00:00
|
|
|
|
|
|
|
# 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
|
2020-09-28 14:48:48 +00:00
|
|
|
|
|
|
|
# Bluetooth
|
|
|
|
if command -v blueman-applet &> /dev/null ; then
|
|
|
|
blueman-applet &
|
|
|
|
fi
|