dotfiles/home/.config/x11/xprofile
ItsDrike 58907fd8b9
Run all commands in xprofile detached
While the commands which weren't running in detached mode were
relatively fast, there's still no reason to have them block other
commands as they don't depend on each other. For that reason, it is
faster (even though just slightly) to run them detached.
2022-09-14 12:20:41 +02:00

45 lines
1.1 KiB
Bash

#!/bin/bash
# This file runs when a DM logs you into a graphical session
# if you use startx/xinit this file should also be soruced.
sxhkd &
# Start xsecurelock lockscreen with xss-lock
~/.local/bin/scripts/lockscreen start &
# Set the background with a custom `setbg` script
setbg &
# Use xresources file in ~/.config/x11
xrdb -merge ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources &
# Start compositor manager to allow transparency
picom -b --experimental-backends &
# Dunst for notifications
dunst &
# Run network manager applet to show connectivity
nm-applet &
# Start flameshot in background
flameshot &
# AppArmor notifications
aa-notify -p &
# Enable numlock with numlockx
numlockx &
# Udiskie for simple mounting and notifications, no automount for security reasons
udiskie -A -s &
# Enable running applications from chroot
xhost +local: &
# Change x shaped default cursor (fonts are located in /usr/include/X11/cursorfont.h)
xsetroot -cursor_name left_ptr &
# import DISPLAY environment variable for systemd user services
systemctl --user import-environment DISPLAY &