{"action":"created","issue":{"url":"https://api.github.com/repos/k3rni/foggy/issues/2","labels_url":"https://api.github.com/repos/k3rni/foggy/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/k3rni/foggy/issues/2/comments","events_url":"https://api.github.com/repos/k3rni/foggy/issues/2/events","html_url":"https://github.com/k3rni/foggy/issues/2","id":118266794,"number":2,"title":"Mode switching problems","user":{"login":"k3rni","id":200996,"avatar_url":"https://avatars.githubusercontent.com/u/200996?v=3","gravatar_id":"","url":"https://api.github.com/users/k3rni","html_url":"https://github.com/k3rni","followers_url":"https://api.github.com/users/k3rni/followers","following_url":"https://api.github.com/users/k3rni/following{/other_user}","gists_url":"https://api.github.com/users/k3rni/gists{/gist_id}","starred_url":"https://api.github.com/users/k3rni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k3rni/subscriptions","organizations_url":"https://api.github.com/users/k3rni/orgs","repos_url":"https://api.github.com/users/k3rni/repos","events_url":"https://api.github.com/users/k3rni/events{/privacy}","received_events_url":"https://api.github.com/users/k3rni/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-22T14:40:27Z","updated_at":"2015-11-28T18:51:20Z","closed_at":null,"body":"Reported by @vonpupp in #1 \r\n\r\nSteps to reproduce:\r\n1. Use mod-p, go to mode (my current mode is `1366x768@60`).\r\n2. Change the mode to `1024x768@60`. This works fine. Now repeat it again to go back to the prior mode\r\n3. Use mod-p again and go to mode, and select `1024x768@60` and an error pops up:\r\n\r\nHerewith the full trace:\r\n\r\n```\r\nW: awesome: luaA_dofunction:78: error while running function\r\nstack traceback:\r\n    [C]: in function 'string.format'\r\n    /home/av/.config/awesome/foggy/xrandr.lua:160: in field 'set_mode'\r\n    /home/av/.config/awesome/foggy/menu.lua:80: in local 'cmd'\r\n    /usr/share/awesome/lib/awful/menu.lua:260: in function 'awful.menu.exec'\r\n    /usr/share/awesome/lib/awful/menu.lua:403: in upvalue 'press'\r\n    /usr/share/awesome/lib/awful/button.lua:42: in function </usr/share/awesome/lib/awful/button.lua:42>\r\n    [C]: in method 'emit_signal'\r\n    /usr/share/awesome/lib/wibox/widget/base.lua:59: in function 'wibox.widget.base.handle_button'\r\n    (...tail calls...)\r\n    /usr/share/awesome/lib/gears/object.lua:68: in function 'gears.object.emit_signal'\r\n    /usr/share/awesome/lib/wibox/drawable.lua:279: in function </usr/share/awesome/lib/wibox/drawable.lua:273>\r\nerror: /home/av/.config/awesome/foggy/xrandr.lua:160: bad argument #5 to 'format' (number has no integer representation)\r\n```\r\n\r\nNote that if I go to mode - auto it works fine. Perhaps it is a similar issue with argument casting."},"comment":{"url":"https://api.github.com/repos/k3rni/foggy/issues/comments/160329061","html_url":"https://github.com/k3rni/foggy/issues/2#issuecomment-160329061","issue_url":"https://api.github.com/repos/k3rni/foggy/issues/2","id":160329061,"user":{"login":"vonpupp","id":1082073,"avatar_url":"https://avatars.githubusercontent.com/u/1082073?v=3","gravatar_id":"","url":"https://api.github.com/users/vonpupp","html_url":"https://github.com/vonpupp","followers_url":"https://api.github.com/users/vonpupp/followers","following_url":"https://api.github.com/users/vonpupp/following{/other_user}","gists_url":"https://api.github.com/users/vonpupp/gists{/gist_id}","starred_url":"https://api.github.com/users/vonpupp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vonpupp/subscriptions","organizations_url":"https://api.github.com/users/vonpupp/orgs","repos_url":"https://api.github.com/users/vonpupp/repos","events_url":"https://api.github.com/users/vonpupp/events{/privacy}","received_events_url":"https://api.github.com/users/vonpupp/received_events","type":"User","site_admin":false},"created_at":"2015-11-28T18:51:20Z","updated_at":"2015-11-28T18:51:20Z","body":"Hello @k3rni, I tried it and everything seems to work fine. Thank you very much!"}}