updated autostart stuff and added dwm autostart things
This commit is contained in:
parent
88bd423082
commit
e6172d13f4
@ -1,37 +1,31 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# start universal things here like keyboard map, cursor, and default screenlayout
|
||||||
# keyboard layout
|
# keyboard layout
|
||||||
setxkbmap -layout dvorak -options ctrl:nocaps &
|
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
|
# cursor
|
||||||
xsetroot -cursor_name left_ptr
|
xsetroot -cursor_name left_ptr
|
||||||
|
|
||||||
# start thunar daemon so it doesn't take years to load
|
# numlock
|
||||||
thunar --daemon &
|
numlockx
|
||||||
|
|
||||||
|
# set default desktop window layout
|
||||||
|
"$HOME/.screenlayout/default.sh"
|
||||||
|
|
||||||
|
|
||||||
# handle some nvidia stuff for archmetabox
|
# handle some nvidia stuff for archmetabox
|
||||||
HOST=$(cat /etc/hostname)
|
HOST=$(cat /etc/hostname)
|
||||||
if [ "$HOST" = "archmetabox" ] ; then
|
if [ "$HOST" = "archmetabox" ] ; then
|
||||||
# this is specifically for the laptop so check hostname
|
# this is specifically for the laptop so check hostname
|
||||||
xrandr --setprovideroutputsource modesetting NVIDIA-G0
|
xrandr --setprovideroutputsource modesetting NVIDIA-G0
|
||||||
xrandr --auto
|
xrandr --auto
|
||||||
fi
|
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=""
|
autostart=""
|
||||||
|
|
||||||
for program in $autostart; do
|
for program in $autostart; do
|
||||||
pidof -s "$program" || "$program" &
|
pidof -s "$program" || "$program" &
|
||||||
done >/dev/null 2>&1
|
done >/dev/null 2>&1
|
||||||
|
|||||||
24
.dwm/autostart.sh
Normal file
24
.dwm/autostart.sh
Normal 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 &
|
||||||
@ -577,21 +577,13 @@ myLogHook = fadeInactiveLogHook fadeAmount
|
|||||||
|
|
||||||
-- By default, do nothing.
|
-- By default, do nothing.
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
-- System apps also in .xprofile
|
-- System / Background apps
|
||||||
spawnOnce "setxkbmap us &"
|
spawnOnce "redshift-gtk -l 34.92866:138.59863 &"
|
||||||
spawnOnce "$HOME/.screenlayout/default.sh"
|
|
||||||
spawnOnce "picom --experimental-backend &"
|
spawnOnce "picom --experimental-backend &"
|
||||||
spawnOnce "numlockx"
|
spawnOnce "thunar --daemon &"
|
||||||
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"
|
|
||||||
|
|
||||||
-- Startup apps (tray) and settings
|
-- Startup apps (tray) and settings
|
||||||
spawnOnce "blueberry-tray &"
|
spawnOnce "blueberry-tray &"
|
||||||
spawnOnce "/usr/lib/kdeconnectd &"
|
|
||||||
spawnOnce "kdeconnect-indicator &"
|
|
||||||
spawnOnce "dunst &" -- notification daemon
|
spawnOnce "dunst &" -- notification daemon
|
||||||
spawnOnce "nm-applet"
|
spawnOnce "nm-applet"
|
||||||
spawnOnce "protonmail-bridge"
|
spawnOnce "protonmail-bridge"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user