2021-07-14 13:08:47 +00:00
|
|
|
#!/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.
|
|
|
|
|
2021-07-22 20:20:53 +00:00
|
|
|
# Set monitor order
|
2021-08-19 00:15:09 +00:00
|
|
|
xrandr --output HDMI-1 --auto --output eDP-1 --right-of HDMI-1 --auto &
|
2021-07-22 20:20:53 +00:00
|
|
|
|
2021-08-18 23:42:17 +00:00
|
|
|
# XSS lock with xsecurelock
|
2021-08-19 00:15:09 +00:00
|
|
|
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
|
2021-08-18 23:42:17 +00:00
|
|
|
|
2021-09-06 03:01:26 +00:00
|
|
|
# Set X11 lockscreen delays (DPMS)
|
|
|
|
xset s on &
|
|
|
|
xset s 600 10 & # 10 minutes, 5s for dimmer
|
|
|
|
|
2021-07-22 20:20:53 +00:00
|
|
|
# Set the background with a custom `setbg` script
|
|
|
|
setbg &
|
|
|
|
|
2021-07-24 11:54:42 +00:00
|
|
|
# Use xresources file in ~/.config/x11
|
|
|
|
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources
|
|
|
|
|
|
|
|
# Start compositor manager to allow transparency
|
2021-07-24 12:51:54 +00:00
|
|
|
picom -b --experimental-backends &
|
2021-07-22 20:20:53 +00:00
|
|
|
|
|
|
|
# Dunst for notifications
|
|
|
|
dunst &
|
|
|
|
|
|
|
|
# Run network manager applet to show connectivity
|
|
|
|
nm-applet &
|
|
|
|
|
|
|
|
# Run trayer-srg for systemtray bar
|
2021-08-16 15:57:13 +00:00
|
|
|
# if installed normally, command will be `trayer`, not `trayer-srg` command
|
2021-08-16 00:00:24 +00:00
|
|
|
trayer --monitor 0 --edge top --align right --widthtype request --padding 0 --transparent true --tint 0x282c34 --alpha 0 --height 23 &
|
2021-07-22 20:20:53 +00:00
|
|
|
|
2021-08-16 15:57:13 +00:00
|
|
|
# Start flameshot in background
|
|
|
|
flameshot &
|
|
|
|
|
2021-07-23 22:03:29 +00:00
|
|
|
# AppArmor notifications
|
|
|
|
aa-notify -p &
|
|
|
|
|
2021-08-16 00:00:24 +00:00
|
|
|
# Enable numlock with numlockx
|
|
|
|
numlockx &
|
|
|
|
|
2021-09-06 03:01:26 +00:00
|
|
|
# Udiskie for simple mounting and notifications, no automount for security reasons
|
|
|
|
udiskie -A -s
|
|
|
|
|
2021-07-23 22:03:29 +00:00
|
|
|
# Run emacs daemon
|
|
|
|
#emacs --daemon &
|
|
|
|
|
|
|
|
# Run urxvt daemon
|
|
|
|
#urxvtd -q -o -f &
|
|
|
|
|
2021-07-22 20:20:53 +00:00
|
|
|
# Enable running applications from chroot
|
|
|
|
xhost +local:
|
|
|
|
|