no more autostart

This commit is contained in:
Solomon Laing 2025-04-29 16:13:31 +09:30
parent 7538e8c6c5
commit ae25daf01c
3 changed files with 34 additions and 31 deletions

View File

@ -1,23 +1,43 @@
#!/bin/sh
# start universal things here like keyboard map, cursor, and default screenlayout
# keyboard layout
setxkbmap us -variant dvorak -option ctrl:nocaps &
# autostart="dunst nm-applet picom input-leap"
#
# for program in $autostart; do
# pidof -s "$program" || "$program" &
# done >/dev/null 2>&1
# cursor
xsetroot -cursor_name left_ptr
declare -a autostart
autostart=(
# start universal things here like keyboard map, cursor, and default screenlayout
# keyboard layout
"setxkbmap us -variant dvorak -option ctrl:nocaps"
# numlock
numlockx
# cursor
"xsetroot -cursor_name left_ptr"
# set default desktop window layout
"$HOME/.screenlayout/default.sh"
# numlock
"numlockx"
nitrogen --restore &
# set default desktop window layout
"$HOME/.screenlayout/default.sh"
# I don't use the following but I like it so I'll leave it for now.
autostart="dunst nm-applet picom"
"nitrogen --restore"
for program in $autostart; do
"dunst"
"nm-applet"
"picom"
"nextcloud --background"
"input-leap"
)
for program in "${autostart[@]}"; do
pidof -s "$program" || "$program" &
done >/dev/null 2>&1
# for program in $autostart; do
# pidof -s "$program" || "$program" &
# done >/dev/null 2>&1

View File

@ -1,17 +0,0 @@
#!/bin/sh
# Place things in here that I would usually start from within xmonad, things
# that aren't in .xprofile
###############################################################################
# System Applications
###############################################################################
# conflicted about using this and/or xprofile...
###############################################################################
# Startup Applications
###############################################################################
nextcloud &
element-desktop --hidden &

View File

@ -1,3 +1,3 @@
#!/bin/bash
sed -n '/static Key keys/,$p' $DWM_DIR/config.def.h | less
sed -n '/static const Keychord/,$p' $DWM_DIR/config.def.h | less