speedwm-personal/autostart.h
speediegq 3e30a624ef Change: Remove #defines for winicon patches and use integers directly
instead. Also rename sizeicon and spacingicon to iconsize and
iconspacing respectively as it makes more sense and add Xresources
entry for iconspacing as it was not there before, oops.

Finally remove status define as it is not necessary because there is
already an integer
2022-09-16 20:33:43 +02:00

45 lines
1.5 KiB
C

/* Anything in here will automatically start before speedwm
* I use it to start my status bar and some other stuff, though.
*
* If you wish to run more commands, add a line below.
*
* Syntax: "shell, "-c", "<command>", NULL,"
*
* "shell" is automatically defined as your shell.
*
* If you need help, run speedwm-keybinds.
* Once you're done with your edits, run 'make clean install'.
*************************************************************/
static const char *const autostart[] = {
/* Autostart script, if it exists */
shell, "-c", "ls $HOME/.config/speedwm-de/autostart.sh && $HOME/.config/speedwm-de/autostart.sh", NULL,
/* Bind Right Super+hjkl to arrow keys */
shell, "-c", "xmodmap -e 'keycode 134 = Mode_switch'", NULL,
shell, "-c", "xmodmap -e 'keycode 43 = h H Left H'", NULL,
shell, "-c", "xmodmap -e 'keycode 44 = j J Down J'", NULL,
shell, "-c", "xmodmap -e 'keycode 45 = k K Up K", NULL,
shell, "-c", "xmodmap -e 'keycode 46 = l L Right L", NULL,
/* Caps Lock = Escape */
shell, "-c", "xmodmap -e 'clear Lock'", NULL,
shell, "-c", "xmodmap -e 'keycode 66 = Escape NoSymbol Escape'", NULL,
/* Run the defined clipboard manager */
shell, "-c", CLIPBOARD "&", NULL,
/* Run the defined compositor */
shell, "-c", COMPOSITOR "&", NULL,
/* Run the defined notification daemon */
shell, "-c", NOTIFICATION "&", NULL,
/* Run the status bar defined */
shell, "-c", status, NULL,
NULL
};