summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2022-09-13 14:25:21 +1200
committerBossCode45 <human.cyborg42@gmail.com>2022-09-13 14:25:21 +1200
commit598f8cc9e8d7acc2adb1671adc591c3ad7008712 (patch)
tree0992f98f9f2b9196bb8b0a9d1e13a78ec63ed96b
parent8cea9df3b45e16ee122e899c08dccfc58a60f17c (diff)
downloadYATwm-598f8cc9e8d7acc2adb1671adc591c3ad7008712.tar.gz
YATwm-598f8cc9e8d7acc2adb1671adc591c3ad7008712.zip
Log file variable
-rw-r--r--config.h1
-rw-r--r--main.cpp2
-rw-r--r--readme.org2
3 files changed, 3 insertions, 2 deletions
diff --git a/config.h b/config.h
index dcce4fd..72be653 100644
--- a/config.h
+++ b/config.h
@@ -10,6 +10,7 @@ std::string startup[] = {"picom -fD 3", "feh --bg-scale /usr/share/backgrounds/v
//Main config
int gaps = 3;
int outerGaps = 3;
+std::string logFile = "/tmp/yatlog";
//WS config
const int numWS = 10;
diff --git a/main.cpp b/main.cpp
index 3f9fae0..950b26d 100644
--- a/main.cpp
+++ b/main.cpp
@@ -609,7 +609,7 @@ int main(int argc, char** argv)
dpy = XOpenDisplay(nullptr);
root = Window(DefaultRootWindow(dpy));
- yatlog.open("/tmp/yatlog.txt", std::ios_base::app);
+ yatlog.open(logFile, std::ios_base::app);
auto timeUnformatted = std::chrono::system_clock::now();
std::time_t time = std::chrono::system_clock::to_time_t(timeUnformatted);
diff --git a/readme.org b/readme.org
index 1a9018d..2bed9ee 100644
--- a/readme.org
+++ b/readme.org
@@ -22,7 +22,7 @@ The current default config is just my config.
Add a bash command to the ~startup~ string array in config.h and it will execute on startup.
*** General
You can change either the inner gaps (padding around each window - so double it for space between windows), or the outer gaps (padding around the display - add to inner gaps to get space between window and screen edges).
-They can be changed with the integers ~gaps~ and ~outerGaps~ in the config.h file.
+They can be changed with the integers ~gaps~ and ~outerGaps~ in the config.h file. YATwm also keeps a log file, the location of this file can be changed with the string ~logFile~.
You can change the number of workspaces by editing ~numWS~ in the config.h file, and the names by editing ~workspaceNames~. You can think of workspaces as virtual desktops.
*** Keybinds