Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit c42d642

Browse files
authored
Configurable app Launcher layout (#221)
1 parent 1f6bd0d commit c42d642

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/widgets/app_launcher.md

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ local args = {
119119
app_icon_width = dpi(70) -- App icon wigth
120120
app_icon_height = dpi(70) -- App icon height
121121
app_show_name = true -- Should show app name?
122+
app_name_layout = wibox.layout.fixed.vertical -- App name layout
122123
app_name_generic_name_spacing = dpi(0) -- Generic name spacing (If show_generic_name)
123124
app_name_halign = "center" -- App name horizontal alignment
124125
app_name_font = "Comic Sans" -- App name font

widget/app_launcher/init.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ local function create_app_widget(self, entry)
171171
expand = "outside",
172172
nil,
173173
{
174-
layout = wibox.layout.fixed.vertical,
174+
layout = self.app_name_layout,
175175
spacing = self.app_content_spacing,
176176
icon,
177177
{
@@ -829,6 +829,7 @@ local function new(args)
829829
args.app_icon_width = args.app_icon_width or dpi(70)
830830
args.app_icon_height = args.app_icon_height or dpi(70)
831831
args.app_show_name = args.app_show_name == nil and true or args.app_show_name
832+
args.app_name_layout = args.app_name_layout or wibox.layout.fixed.vertical
832833
args.app_name_generic_name_spacing = args.app_name_generic_name_spacing or dpi(0)
833834
args.app_name_halign = args.app_name_halign or "center"
834835
args.app_name_font = args.app_name_font or beautiful.font

0 commit comments

Comments
 (0)