diff --git a/.config/x11/xprofile b/.config/x11/xprofile index 3e2430d..85be5be 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -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 diff --git a/.dwm/autostart.sh b/.dwm/autostart.sh deleted file mode 100755 index 6d17716..0000000 --- a/.dwm/autostart.sh +++ /dev/null @@ -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 & diff --git a/.local/bin/dwm-config b/.local/bin/dwm-config index 2d2713e..d8f1ceb 100755 --- a/.local/bin/dwm-config +++ b/.local/bin/dwm-config @@ -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