From f164579c2c58f9e18072cab3d4dd0e8944fbeabd Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 20 Oct 2021 22:21:36 +0200 Subject: [PATCH] Update .xsessionrc --- .xsessionrc | 52 ++++++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/.xsessionrc b/.xsessionrc index a765cf7..e0b25de 100755 --- a/.xsessionrc +++ b/.xsessionrc @@ -5,16 +5,40 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then export AWT_TOOLKIT=MToolkit wmname LG3D - if test -f "$HOME/.screenlayout/main.sh"; then - "$HOME/.screenlayout/main.sh" - fi - compton & redshift & dwmstatus & dunst & numlockx on & + 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 + nextcloud & + fi + + if command -v signal-desktop &> /dev/null ; then + signal-desktop --start-in-tray & + fi + + # Bluetooth + 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 + + # Set background if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg & else @@ -24,24 +48,4 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then 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 - -# 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 - -# Bluetooth -if command -v blueman-applet &> /dev/null ; then - blueman-applet & -fi