From fcb21e17ab58182af8154d04b57a79233be43824 Mon Sep 17 00:00:00 2001 From: speedie Date: Fri, 18 Nov 2022 18:13:09 +0100 Subject: [PATCH] small changes --- options.h | 2 +- scripts/speedwm_run | 6 ++---- scripts/speedwm_status | 9 ++++++++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/options.h b/options.h index 29d1335..7d16c65 100644 --- a/options.h +++ b/options.h @@ -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. */ diff --git a/scripts/speedwm_run b/scripts/speedwm_run index 07fa060..1cf9729 100755 --- a/scripts/speedwm_run +++ b/scripts/speedwm_run @@ -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 ;; diff --git a/scripts/speedwm_status b/scripts/speedwm_status index 6b6fc1d..39a6bee 100755 --- a/scripts/speedwm_status +++ b/scripts/speedwm_status @@ -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 }