small changes
This commit is contained in:
parent
d50409965a
commit
fcb21e17ab
|
@ -134,7 +134,7 @@ static int automove = 0; /* Allow clients to automatic
|
|||
static int autoresize = 0; /* Allow resizing clients automatically when they request it. */
|
||||
|
||||
/* Font options */
|
||||
static char font[] = "NotoSans Regular 8";
|
||||
static char font[] = "Noto Sans Mono 8";
|
||||
|
||||
/* Status options */
|
||||
static char status[] = "speedwm_status &"; /* Status bar to run on startup. Set this to nothing to run nothing and run your own status bar. */
|
||||
|
|
|
@ -113,9 +113,8 @@ START_SPEEDWM() {
|
|||
|
||||
# List of arguments
|
||||
HELP() {
|
||||
printf "speedwm\nNo arguments | Start speedwm using default options\n\
|
||||
-s | Start speedwm using either sx or startx. This does not require you to use a .xinitrc file. Simply install xinit/sx and run speedwm -s\n\
|
||||
-f | Start speedwm bypassing all checks (such as whether or not a window manager is running)\n\
|
||||
printf "speedwm_run\nNo arguments | Start speedwm using default options.\n\
|
||||
-s | Start speedwm using either sx or startx. This does not require you to use a .xinitrc file. Simply install xinit/sx and run speedwm_run -s\n\
|
||||
-noxrdb | Start speedwm without loading colors.\n\
|
||||
-nomkconfig | Start speedwm without creating a config file (or loading it)\n\
|
||||
-h | View this list of arguments\n\
|
||||
|
@ -153,7 +152,6 @@ case "$ARGS" in
|
|||
"-rnoloadcolors") LOADCONFIG ; LOADCOLS ; echo "Restarted speedwm." ; exit 0 ;;
|
||||
"-rnoload") RESET ; echo "Restarted speedwm." ; exit 0 ;;
|
||||
"-h") HELP ; exit 0 ;;
|
||||
"-f") CARG="force" ; XRESOURCES ; AUTOSTART ; LOADSWAL ; LOADCONFIG ; RESET ; START_SPEEDWM ; exit 0 ;;
|
||||
"-loadconfig") LOADCONFIG ; exit 0 ;;
|
||||
"-unloadconfig") UNLOADCONFIG ; RESET ; exit 0 ;;
|
||||
"-deleteconfig") DELETECONFIG ; RESET ; exit 0 ;;
|
||||
|
|
|
@ -18,7 +18,8 @@ case "$1" in
|
|||
echo "See speedwm-help for more information."
|
||||
exit 0
|
||||
;;
|
||||
"-r") pkill "$STATUSBAR" ; sleep 2 ; statusfunc
|
||||
"-r")
|
||||
pkill "$STATUSBAR" ; sleep 2 ; statusfunc
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -40,6 +41,12 @@ statusfunc() {
|
|||
rstatus
|
||||
fi
|
||||
|
||||
# workaround for status crash when REFRESHDELAY is too low.
|
||||
# this is fine since the status will be restarted anyway, but we don't need a core dump in $HOME.
|
||||
if [ -e "$HOME/core" ]; then
|
||||
rm -f "$HOME/core"
|
||||
fi
|
||||
|
||||
statusfunc
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue