From 78562cdd6ce857270370fef4dd4cd8e95f914f61 Mon Sep 17 00:00:00 2001 From: krypek <115574014+krypciak@users.noreply.github.com> Date: Thu, 27 Oct 2022 20:24:15 +0200 Subject: [PATCH] Created restartdwl (markdown) --- restartdwl.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 restartdwl.md diff --git a/restartdwl.md b/restartdwl.md new file mode 100644 index 0000000..a9fd1b3 --- /dev/null +++ b/restartdwl.md @@ -0,0 +1,23 @@ +### Description +This patch allows you to restart dwl with a keybinding. +**NOTE:** that all of your applications are gonna get killed on dwl restart. + +The function creates a file at **/tmp/restart_dwl** and exits dwl. +You have to modify your dwl launch script in order for this patch to work. +Example dwl launch script: +```sh +do=true +while $do || [ -f /tmp/restart_dwl ]; do + do=false + rm -rf /tmp/restart_dwl > /dev/null 2>&1 + dwl +done +``` +It's a do-while that checks if **/tmp/restart_dwl** exists after the first run of dwl. +If this file exists delete it and start dwl again. + +### Download +- [2022-10-27](https://github.com/djpohly/dwl/compare/main...krypciak:patch-restartdwl.patch) + +### Authors +- [krypciak](https://github.com/krypciak) \ No newline at end of file