updated autostart stuff and added dwm autostart things

This commit is contained in:
Solomon Laing 2022-11-08 08:43:11 +10:30
parent 88bd423082
commit e6172d13f4
3 changed files with 39 additions and 29 deletions

View File

@ -1,22 +1,18 @@
#!/bin/sh
# start universal things here like keyboard map, cursor, and default screenlayout
# keyboard layout
setxkbmap -layout dvorak -options ctrl:nocaps &
# wallpaper
nitrogen --restore &
# compositor
picom --experimental-backend &
# red light at night
redshift-gtk -l 34.92866:138.59863 &
# cursor
xsetroot -cursor_name left_ptr
# start thunar daemon so it doesn't take years to load
thunar --daemon &
# numlock
numlockx
# set default desktop window layout
"$HOME/.screenlayout/default.sh"
# handle some nvidia stuff for archmetabox
HOST=$(cat /etc/hostname)
@ -26,10 +22,8 @@ if [ "$HOST" = "archmetabox" ] ; then
xrandr --auto
fi
if [ "$HOST" = "archdesktop" ] ; then
"$HOME"/.screenlayout/normal_3_screen.sh
fi
# I don't use the following but I like it so I'll leave it for now.
autostart=""
for program in $autostart; do

24
.dwm/autostart.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/sh
# Place things in here that I would usually start from within xmonad, things
# that aren't in .xprofile
###############################################################################
# System Applications
###############################################################################
# Dunst - notifications
dunst &
# Network Manager Applet
nm-applet
# Compostitor with special stuff
picom --experimental-backend &
###############################################################################
# Startup Applications
###############################################################################
nextcloud &
element-desktop --hidden &

View File

@ -577,21 +577,13 @@ myLogHook = fadeInactiveLogHook fadeAmount
-- By default, do nothing.
myStartupHook = do
-- System apps also in .xprofile
spawnOnce "setxkbmap us &"
spawnOnce "$HOME/.screenlayout/default.sh"
-- System / Background apps
spawnOnce "redshift-gtk -l 34.92866:138.59863 &"
spawnOnce "picom --experimental-backend &"
spawnOnce "numlockx"
spawnOnce "xsetroot -cursor_name left_ptr"
spawnOnce "xmodmap -pke $HOME/.config/x11/.Xmodmap"
-- for the life of me I can't work out how to source .zprofile while using a login manager...
-- so source it here :D
spawnOnce "source $HOME/.config/shell/profile"
spawnOnce "thunar --daemon &"
-- Startup apps (tray) and settings
spawnOnce "blueberry-tray &"
spawnOnce "/usr/lib/kdeconnectd &"
spawnOnce "kdeconnect-indicator &"
spawnOnce "dunst &" -- notification daemon
spawnOnce "nm-applet"
spawnOnce "protonmail-bridge"