From 9196481fd81261fd75935fc5604d82bb0072844e Mon Sep 17 00:00:00 2001 From: mut-ex Date: Mon, 31 Aug 2020 23:25:33 -0400 Subject: [PATCH] Commented out debug code --- README.md | 17 +++++++++++++++++ init.lua | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1b5506..b9a0f14 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,23 @@ nice = { +## Using + +nice will automatically detect and change the window decoration color to match the client. However... + +* If nice doesn't pick the right color or you want to specify it yourself, right-click the titlebar and select 'Manually Pick Color' +* If the client theme changes (for example if you change your terminal emulator colors), to update the window decoration colors, right-click on the titlebar and select 'Redo Window Decorations' +* Scroll-up with your mouse over the titlebar to "roll-up" the window shade. Scroll-down over the titlebar, or left-click to "roll-down" the window shade +* nice saves its color rules in the color_rules file within the module directory. If you wish you can manually edit it, or delete the file if you want to start again. + + + +## Issues + +If you face any bugs or issues (or have a feature request), please feel free to open an issue on here + + + ## License [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org) diff --git a/init.lua b/init.lua index 238493a..99459a5 100644 --- a/init.lua +++ b/init.lua @@ -164,8 +164,8 @@ end -- Determines the dominant color of the client's top region local function get_dominant_color(client) local color - gsurface(client.content):write_to_png( - "/home/mutex/nice/" .. client.class .. "_" .. client.instance .. ".png") + -- gsurface(client.content):write_to_png( + -- "/home/mutex/nice/" .. client.class .. "_" .. client.instance .. ".png") local pb local bytes local tally = {}