Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change/lower default font sizes #9

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ cyclefocus = {
-- Default callback, which will be applied for all offsets (first).
default = function (preset, args)
-- Default font and icon size (gets overwritten for current/0 index).
preset.font = 'sans 10'
preset.font = 'sans 8'
preset.icon_size = 36
preset.text = preset.text or cyclefocus.get_object_name(args.client)

Expand All @@ -249,7 +249,7 @@ cyclefocus = {

-- Preset for current entry.
["0"] = function (preset, args)
preset.font = 'sans 14'
preset.font = 'sans 12'
preset.icon_size = 48
-- Use get_object_name to handle .name=nil.
preset.text = cyclefocus.get_object_name(args.client)
Expand Down
5 changes: 2 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cyclefocus = {
-- Default callback, which will be applied for all offsets (first).
default = function (preset, args)
-- Default font and icon size (gets overwritten for current/0 index).
preset.font = 'sans 10'
preset.font = 'sans 8'
preset.icon_size = 36
preset.text = preset.text or cyclefocus.get_object_name(args.client)

Expand All @@ -63,7 +63,7 @@ cyclefocus = {

-- Preset for current entry.
["0"] = function (preset, args)
preset.font = 'sans 14'
preset.font = 'sans 12'
preset.icon_size = 48
-- Use get_object_name to handle .name=nil.
preset.text = cyclefocus.get_object_name(args.client)
Expand Down Expand Up @@ -166,7 +166,6 @@ cyclefocus.debug = function(msg, level)
-- text = tostring(msg)..' ['..tostring(level)..']',
text = tostring(msg),
timeout = 10,
font = "monospace 10",
})
end
print("cyclefocus: " .. msg)
Expand Down