Skip to content

Instantly share code, notes, and snippets.

@Ram-Z
Created January 31, 2017 00:28
Show Gist options
  • Save Ram-Z/0652cde85b113ac799f12470e9fce474 to your computer and use it in GitHub Desktop.
Save Ram-Z/0652cde85b113ac799f12470e9fce474 to your computer and use it in GitHub Desktop.
awesome_declarative_awesome.lua
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
-- mylauncher,
s.mytaglist,
s.mypromptbox,
},
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
wibox.widget.systray(),
separator,
require("widgets/pomodoro"),
separator,
require("widgets/awesompd"),
require("widgets/volume_widget"),
utils.has_battery() and {
layout = wibox.layout.fixed.horizontal,
separator,
require("widgets/battery_widget"),
},
separator,
require("widgets/network_widget"),
separator,
require("widgets/calendar"),
s.mylayoutbox,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment