{"action":"closed","number":216,"pull_request":{"url":"https://api.github.com/repos/copycat-killer/lain/pulls/216","id":78668466,"html_url":"https://github.com/copycat-killer/lain/pull/216","diff_url":"https://github.com/copycat-killer/lain/pull/216.diff","patch_url":"https://github.com/copycat-killer/lain/pull/216.patch","issue_url":"https://api.github.com/repos/copycat-killer/lain/issues/216","number":216,"state":"closed","locked":false,"title":"Add used memory percentage","user":{"login":"groundflyer","id":10357503,"avatar_url":"https://avatars.githubusercontent.com/u/10357503?v=3","gravatar_id":"","url":"https://api.github.com/users/groundflyer","html_url":"https://github.com/groundflyer","followers_url":"https://api.github.com/users/groundflyer/followers","following_url":"https://api.github.com/users/groundflyer/following{/other_user}","gists_url":"https://api.github.com/users/groundflyer/gists{/gist_id}","starred_url":"https://api.github.com/users/groundflyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groundflyer/subscriptions","organizations_url":"https://api.github.com/users/groundflyer/orgs","repos_url":"https://api.github.com/users/groundflyer/repos","events_url":"https://api.github.com/users/groundflyer/events{/privacy}","received_events_url":"https://api.github.com/users/groundflyer/received_events","type":"User","site_admin":false},"body":"It's very common way to indicate memory usage via percentage. I'm surprised that there is no such variable.\r\n\r\nNow memory widget can be initialized like this:\r\n```lua\r\nram_widget = lain.widgets.mem({\r\n\t\t\t\t settings = function()\r\n\t\t\t\t    widget:set_markup(\"RAM: \" .. mem_now.perc .. \"%\")\r\n\t\t\t\t    end\r\n\t\t\t      })\r\n```","created_at":"2016-07-25T11:53:09Z","updated_at":"2016-07-27T09:30:24Z","closed_at":"2016-07-27T09:30:24Z","merged_at":"2016-07-27T09:30:24Z","merge_commit_sha":"8dc0df106dc5a1c254a0371254770d7c869ab7fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/copycat-killer/lain/pulls/216/commits","review_comments_url":"https://api.github.com/repos/copycat-killer/lain/pulls/216/comments","review_comment_url":"https://api.github.com/repos/copycat-killer/lain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/copycat-killer/lain/issues/216/comments","statuses_url":"https://api.github.com/repos/copycat-killer/lain/statuses/ebd506d6932972388b4cb92ba7599667d52fc2a7","head":{"label":"groundflyer:memwidget","ref":"memwidget","sha":"ebd506d6932972388b4cb92ba7599667d52fc2a7","user":{"login":"groundflyer","id":10357503,"avatar_url":"https://avatars.githubusercontent.com/u/10357503?v=3","gravatar_id":"","url":"https://api.github.com/users/groundflyer","html_url":"https://github.com/groundflyer","followers_url":"https://api.github.com/users/groundflyer/followers","following_url":"https://api.github.com/users/groundflyer/following{/other_user}","gists_url":"https://api.github.com/users/groundflyer/gists{/gist_id}","starred_url":"https://api.github.com/users/groundflyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groundflyer/subscriptions","organizations_url":"https://api.github.com/users/groundflyer/orgs","repos_url":"https://api.github.com/users/groundflyer/repos","events_url":"https://api.github.com/users/groundflyer/events{/privacy}","received_events_url":"https://api.github.com/users/groundflyer/received_events","type":"User","site_admin":false},"repo":{"id":64127455,"name":"lain","full_name":"groundflyer/lain","owner":{"login":"groundflyer","id":10357503,"avatar_url":"https://avatars.githubusercontent.com/u/10357503?v=3","gravatar_id":"","url":"https://api.github.com/users/groundflyer","html_url":"https://github.com/groundflyer","followers_url":"https://api.github.com/users/groundflyer/followers","following_url":"https://api.github.com/users/groundflyer/following{/other_user}","gists_url":"https://api.github.com/users/groundflyer/gists{/gist_id}","starred_url":"https://api.github.com/users/groundflyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groundflyer/subscriptions","organizations_url":"https://api.github.com/users/groundflyer/orgs","repos_url":"https://api.github.com/users/groundflyer/repos","events_url":"https://api.github.com/users/groundflyer/events{/privacy}","received_events_url":"https://api.github.com/users/groundflyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/groundflyer/lain","description":"Awesome WM complements","fork":true,"url":"https://api.github.com/repos/groundflyer/lain","forks_url":"https://api.github.com/repos/groundflyer/lain/forks","keys_url":"https://api.github.com/repos/groundflyer/lain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groundflyer/lain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groundflyer/lain/teams","hooks_url":"https://api.github.com/repos/groundflyer/lain/hooks","issue_events_url":"https://api.github.com/repos/groundflyer/lain/issues/events{/number}","events_url":"https://api.github.com/repos/groundflyer/lain/events","assignees_url":"https://api.github.com/repos/groundflyer/lain/assignees{/user}","branches_url":"https://api.github.com/repos/groundflyer/lain/branches{/branch}","tags_url":"https://api.github.com/repos/groundflyer/lain/tags","blobs_url":"https://api.github.com/repos/groundflyer/lain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groundflyer/lain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groundflyer/lain/git/refs{/sha}","trees_url":"https://api.github.com/repos/groundflyer/lain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groundflyer/lain/statuses/{sha}","languages_url":"https://api.github.com/repos/groundflyer/lain/languages","stargazers_url":"https://api.github.com/repos/groundflyer/lain/stargazers","contributors_url":"https://api.github.com/repos/groundflyer/lain/contributors","subscribers_url":"https://api.github.com/repos/groundflyer/lain/subscribers","subscription_url":"https://api.github.com/repos/groundflyer/lain/subscription","commits_url":"https://api.github.com/repos/groundflyer/lain/commits{/sha}","git_commits_url":"https://api.github.com/repos/groundflyer/lain/git/commits{/sha}","comments_url":"https://api.github.com/repos/groundflyer/lain/comments{/number}","issue_comment_url":"https://api.github.com/repos/groundflyer/lain/issues/comments{/number}","contents_url":"https://api.github.com/repos/groundflyer/lain/contents/{+path}","compare_url":"https://api.github.com/repos/groundflyer/lain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groundflyer/lain/merges","archive_url":"https://api.github.com/repos/groundflyer/lain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groundflyer/lain/downloads","issues_url":"https://api.github.com/repos/groundflyer/lain/issues{/number}","pulls_url":"https://api.github.com/repos/groundflyer/lain/pulls{/number}","milestones_url":"https://api.github.com/repos/groundflyer/lain/milestones{/number}","notifications_url":"https://api.github.com/repos/groundflyer/lain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groundflyer/lain/labels{/name}","releases_url":"https://api.github.com/repos/groundflyer/lain/releases{/id}","deployments_url":"https://api.github.com/repos/groundflyer/lain/deployments","created_at":"2016-07-25T11:01:55Z","updated_at":"2016-07-25T11:01:56Z","pushed_at":"2016-07-25T11:29:32Z","git_url":"git://github.com/groundflyer/lain.git","ssh_url":"git@github.com:groundflyer/lain.git","clone_url":"https://github.com/groundflyer/lain.git","svn_url":"https://github.com/groundflyer/lain","homepage":"","size":1002,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"copycat-killer:master","ref":"master","sha":"1744c45790eefcd0ac572b42158becfd47175466","user":{"login":"copycat-killer","id":1777696,"avatar_url":"https://avatars.githubusercontent.com/u/1777696?v=3","gravatar_id":"","url":"https://api.github.com/users/copycat-killer","html_url":"https://github.com/copycat-killer","followers_url":"https://api.github.com/users/copycat-killer/followers","following_url":"https://api.github.com/users/copycat-killer/following{/other_user}","gists_url":"https://api.github.com/users/copycat-killer/gists{/gist_id}","starred_url":"https://api.github.com/users/copycat-killer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copycat-killer/subscriptions","organizations_url":"https://api.github.com/users/copycat-killer/orgs","repos_url":"https://api.github.com/users/copycat-killer/repos","events_url":"https://api.github.com/users/copycat-killer/events{/privacy}","received_events_url":"https://api.github.com/users/copycat-killer/received_events","type":"User","site_admin":false},"repo":{"id":12662746,"name":"lain","full_name":"copycat-killer/lain","owner":{"login":"copycat-killer","id":1777696,"avatar_url":"https://avatars.githubusercontent.com/u/1777696?v=3","gravatar_id":"","url":"https://api.github.com/users/copycat-killer","html_url":"https://github.com/copycat-killer","followers_url":"https://api.github.com/users/copycat-killer/followers","following_url":"https://api.github.com/users/copycat-killer/following{/other_user}","gists_url":"https://api.github.com/users/copycat-killer/gists{/gist_id}","starred_url":"https://api.github.com/users/copycat-killer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copycat-killer/subscriptions","organizations_url":"https://api.github.com/users/copycat-killer/orgs","repos_url":"https://api.github.com/users/copycat-killer/repos","events_url":"https://api.github.com/users/copycat-killer/events{/privacy}","received_events_url":"https://api.github.com/users/copycat-killer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/copycat-killer/lain","description":"Awesome WM complements","fork":false,"url":"https://api.github.com/repos/copycat-killer/lain","forks_url":"https://api.github.com/repos/copycat-killer/lain/forks","keys_url":"https://api.github.com/repos/copycat-killer/lain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/copycat-killer/lain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/copycat-killer/lain/teams","hooks_url":"https://api.github.com/repos/copycat-killer/lain/hooks","issue_events_url":"https://api.github.com/repos/copycat-killer/lain/issues/events{/number}","events_url":"https://api.github.com/repos/copycat-killer/lain/events","assignees_url":"https://api.github.com/repos/copycat-killer/lain/assignees{/user}","branches_url":"https://api.github.com/repos/copycat-killer/lain/branches{/branch}","tags_url":"https://api.github.com/repos/copycat-killer/lain/tags","blobs_url":"https://api.github.com/repos/copycat-killer/lain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/copycat-killer/lain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/copycat-killer/lain/git/refs{/sha}","trees_url":"https://api.github.com/repos/copycat-killer/lain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/copycat-killer/lain/statuses/{sha}","languages_url":"https://api.github.com/repos/copycat-killer/lain/languages","stargazers_url":"https://api.github.com/repos/copycat-killer/lain/stargazers","contributors_url":"https://api.github.com/repos/copycat-killer/lain/contributors","subscribers_url":"https://api.github.com/repos/copycat-killer/lain/subscribers","subscription_url":"https://api.github.com/repos/copycat-killer/lain/subscription","commits_url":"https://api.github.com/repos/copycat-killer/lain/commits{/sha}","git_commits_url":"https://api.github.com/repos/copycat-killer/lain/git/commits{/sha}","comments_url":"https://api.github.com/repos/copycat-killer/lain/comments{/number}","issue_comment_url":"https://api.github.com/repos/copycat-killer/lain/issues/comments{/number}","contents_url":"https://api.github.com/repos/copycat-killer/lain/contents/{+path}","compare_url":"https://api.github.com/repos/copycat-killer/lain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/copycat-killer/lain/merges","archive_url":"https://api.github.com/repos/copycat-killer/lain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/copycat-killer/lain/downloads","issues_url":"https://api.github.com/repos/copycat-killer/lain/issues{/number}","pulls_url":"https://api.github.com/repos/copycat-killer/lain/pulls{/number}","milestones_url":"https://api.github.com/repos/copycat-killer/lain/milestones{/number}","notifications_url":"https://api.github.com/repos/copycat-killer/lain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/copycat-killer/lain/labels{/name}","releases_url":"https://api.github.com/repos/copycat-killer/lain/releases{/id}","deployments_url":"https://api.github.com/repos/copycat-killer/lain/deployments","created_at":"2013-09-07T09:38:48Z","updated_at":"2016-07-22T01:18:40Z","pushed_at":"2016-07-27T09:30:24Z","git_url":"git://github.com/copycat-killer/lain.git","ssh_url":"git@github.com:copycat-killer/lain.git","clone_url":"https://github.com/copycat-killer/lain.git","svn_url":"https://github.com/copycat-killer/lain","homepage":"","size":1056,"stargazers_count":293,"watchers_count":293,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":1,"forks":100,"open_issues":1,"watchers":293,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/copycat-killer/lain/pulls/216"},"html":{"href":"https://github.com/copycat-killer/lain/pull/216"},"issue":{"href":"https://api.github.com/repos/copycat-killer/lain/issues/216"},"comments":{"href":"https://api.github.com/repos/copycat-killer/lain/issues/216/comments"},"review_comments":{"href":"https://api.github.com/repos/copycat-killer/lain/pulls/216/comments"},"review_comment":{"href":"https://api.github.com/repos/copycat-killer/lain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/copycat-killer/lain/pulls/216/commits"},"statuses":{"href":"https://api.github.com/repos/copycat-killer/lain/statuses/ebd506d6932972388b4cb92ba7599667d52fc2a7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"copycat-killer","id":1777696,"avatar_url":"https://avatars.githubusercontent.com/u/1777696?v=3","gravatar_id":"","url":"https://api.github.com/users/copycat-killer","html_url":"https://github.com/copycat-killer","followers_url":"https://api.github.com/users/copycat-killer/followers","following_url":"https://api.github.com/users/copycat-killer/following{/other_user}","gists_url":"https://api.github.com/users/copycat-killer/gists{/gist_id}","starred_url":"https://api.github.com/users/copycat-killer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copycat-killer/subscriptions","organizations_url":"https://api.github.com/users/copycat-killer/orgs","repos_url":"https://api.github.com/users/copycat-killer/repos","events_url":"https://api.github.com/users/copycat-killer/events{/privacy}","received_events_url":"https://api.github.com/users/copycat-killer/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"copycat-killer"}}