2020-07-31 07:08:07 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-06-16 01:16:16 +00:00
|
|
|
|
2022-12-14 14:34:39 +00:00
|
|
|
if [[ "$DESKTOP_SESSION" = "dwm" || "$DESKTOP_SESSION" == "dwm-gnome" ]]; then
|
2020-07-30 07:54:52 +00:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export AWT_TOOLKIT=MToolkit
|
|
|
|
wmname LG3D
|
2020-06-16 01:16:16 +00:00
|
|
|
|
2022-09-03 13:16:50 +00:00
|
|
|
picom -b
|
2020-07-30 07:54:52 +00:00
|
|
|
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 &
|
2022-12-13 23:45:49 +00:00
|
|
|
nm-applet &
|
|
|
|
|
|
|
|
if command -v barrier &> /dev/null ; then
|
|
|
|
barrier &
|
|
|
|
fi
|
2020-06-16 01:16:16 +00:00
|
|
|
|
2021-10-20 20:21:36 +00:00
|
|
|
if command -v blueman-applet &> /dev/null ; then
|
|
|
|
blueman-applet &
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Audio
|
|
|
|
if command -v pasystray &> /dev/null ; then
|
|
|
|
pasystray &
|
|
|
|
fi
|
|
|
|
|
|
|
|
if command -v nextcloud &> /dev/null ; then
|
2021-11-22 19:02:19 +00:00
|
|
|
nextcloud --background &
|
2021-10-20 20:21:36 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if command -v signal-desktop &> /dev/null ; then
|
|
|
|
signal-desktop --start-in-tray &
|
|
|
|
fi
|
|
|
|
|
2021-11-22 19:01:21 +00:00
|
|
|
if command -v steam &> /dev/null ; then
|
|
|
|
steam -silent &
|
|
|
|
fi
|
|
|
|
|
2021-10-20 20:21:36 +00:00
|
|
|
if command -v jetbrains-toolbox &> /dev/null ; then
|
|
|
|
jetbrains-toolbox --minimize &
|
|
|
|
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
|
|
|
|
|
2022-04-02 11:24:30 +00:00
|
|
|
# Deja duplicty backup monitor
|
|
|
|
if test /usr/libexec/deja-dup/deja-dup-monitor ; then
|
|
|
|
/usr/libexec/deja-dup/deja-dup-monitor &
|
|
|
|
fi
|
|
|
|
|
2021-10-20 20:21:36 +00:00
|
|
|
# Set background
|
2022-07-31 21:49:03 +00:00
|
|
|
if test -f /usr/share/backgrounds/Mirror_by_Uday_Nakade.jpg; then
|
|
|
|
feh --bg-scale /usr/share/backgrounds/Mirror_by_Uday_Nakade.jpg &
|
|
|
|
elif test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then
|
|
|
|
feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg &
|
|
|
|
elif test -f /usr/share/backgrounds/gnome/Road.jpg ; then
|
|
|
|
feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
|
2020-07-30 09:42:50 +00:00
|
|
|
fi
|
2020-07-30 07:54:52 +00:00
|
|
|
fi
|
|
|
|
|
2022-12-14 14:34:39 +00:00
|
|
|
if test -f ${HOME}/.xsessionrc-local ; then
|
2022-07-31 21:49:03 +00:00
|
|
|
${HOME}/.xsessionrc-local
|
|
|
|
fi
|