diff options
| author | Craig Jennings <c@cjennings.net> | 2025-05-21 22:01:35 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-05-21 22:01:35 -0500 |
| commit | b4463015b97912658d630377fafbf630f7588d1e (patch) | |
| tree | d04b66d992fe2ce88391889c21c5d8dc97acd0ef /dotfiles/system/.local/bin/startdwm | |
| parent | 548154ea395356868e87980b149dfc0abdc84e17 (diff) | |
moving arch dotfiles into archsetup
Diffstat (limited to 'dotfiles/system/.local/bin/startdwm')
| -rwxr-xr-x | dotfiles/system/.local/bin/startdwm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dotfiles/system/.local/bin/startdwm b/dotfiles/system/.local/bin/startdwm new file mode 100755 index 0000000..2f2628d --- /dev/null +++ b/dotfiles/system/.local/bin/startdwm @@ -0,0 +1,47 @@ +#!/usr/bin/env bash +# Craig Jennings <c@cjennings.net> +# starts the dwm process for a login manager +# saves the logfile of any output to a logfile + +dbus-update-activation-environment & + +logdir="$HOME/.local/var/logs" +logfile="$logdir/$(date +%Y-%m-%d_%H.dwm.log)" + +if ! [ -d "$logdir" ]; then + mkdir -p "$logdir" +fi + +# allow sudo use of display +xhost si:localuser:root + +# merge local configuration for X client aplications +[ -f ~/.Xresources ] && xrdb -merge -I $HOME ~/.Xresources + +# merge xmodmap configuration +[[ -f ~/.Xmodmap ]] && xmodmap ~/.Xmodmap + +# start desktop environment applications +(conky | while read LINE; do xsetroot -name "$LINE"; done) & +xscreensaver --no-splash & +xautolock -time 5 -locker "xscreensaver-command -activate" & +picom & +sxhkd & +emacs --daemon & +nitrogen --restore & +nm-applet & +blueman-applet & +battery_monitor & +mpd & +caffeine & +protonmail-bridge --no-window & +dunst & +signal-desktop --start-in-tray & +sudo powertop --auto-tune & +flameshot & +# dropbox & +touchpad-app & + +# start dwm +echo "$(date): Starting dwm" >> "$logfile" 2>&1 +exec dwm > $logfile 2>&1 |
