{"action":"created","issue":{"url":"https://api.github.com/repos/vivien/i3blocks/issues/200","repository_url":"https://api.github.com/repos/vivien/i3blocks","labels_url":"https://api.github.com/repos/vivien/i3blocks/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/vivien/i3blocks/issues/200/comments","events_url":"https://api.github.com/repos/vivien/i3blocks/issues/200/events","html_url":"https://github.com/vivien/i3blocks/issues/200","id":174375549,"number":200,"title":"What are/how to set first and second parameters?","user":{"login":"NikosAlexandris","id":7046639,"avatar_url":"https://avatars.githubusercontent.com/u/7046639?v=3","gravatar_id":"","url":"https://api.github.com/users/NikosAlexandris","html_url":"https://github.com/NikosAlexandris","followers_url":"https://api.github.com/users/NikosAlexandris/followers","following_url":"https://api.github.com/users/NikosAlexandris/following{/other_user}","gists_url":"https://api.github.com/users/NikosAlexandris/gists{/gist_id}","starred_url":"https://api.github.com/users/NikosAlexandris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikosAlexandris/subscriptions","organizations_url":"https://api.github.com/users/NikosAlexandris/orgs","repos_url":"https://api.github.com/users/NikosAlexandris/repos","events_url":"https://api.github.com/users/NikosAlexandris/events{/privacy}","received_events_url":"https://api.github.com/users/NikosAlexandris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T20:52:18Z","updated_at":"2016-09-01T02:30:21Z","closed_at":null,"body":"In https://github.com/vivien/i3blocks/blob/master/scripts/volume#L20, the second parameter is mentioned.\r\nIn https://github.com/vivien/i3blocks/blob/master/scripts/volume#L38, the first parameter is mentioned.\r\n\r\nWhat are these parameters? How are they set (I guess in `i3blocks.conf`)?"},"comment":{"url":"https://api.github.com/repos/vivien/i3blocks/issues/comments/243959027","html_url":"https://github.com/vivien/i3blocks/issues/200#issuecomment-243959027","issue_url":"https://api.github.com/repos/vivien/i3blocks/issues/200","id":243959027,"user":{"login":"vivien","id":285808,"avatar_url":"https://avatars.githubusercontent.com/u/285808?v=3","gravatar_id":"","url":"https://api.github.com/users/vivien","html_url":"https://github.com/vivien","followers_url":"https://api.github.com/users/vivien/followers","following_url":"https://api.github.com/users/vivien/following{/other_user}","gists_url":"https://api.github.com/users/vivien/gists{/gist_id}","starred_url":"https://api.github.com/users/vivien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vivien/subscriptions","organizations_url":"https://api.github.com/users/vivien/orgs","repos_url":"https://api.github.com/users/vivien/repos","events_url":"https://api.github.com/users/vivien/events{/privacy}","received_events_url":"https://api.github.com/users/vivien/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T02:30:21Z","updated_at":"2016-09-01T02:30:21Z","body":"Hi @NikosAlexandris, this script expects these parameters on the command line.\r\nIn the default configuration, the command defaults to something like `command=/usr/lib/i3blocks/$BLOCK_NAME` where `$BLOCK_NAME` is `volume`.\r\n\r\nYou can explicit the command with with its parameters like this:\r\n\r\n```` ini\r\n[volume]\r\ncommand=/usr/lib/i3blocks/volume 10% pulse\r\nlabel=♪\r\ninstance=Master\r\ninterval=once\r\nsignal=10\r\n````\r\n\r\nIn the first line you linked, `MIXER=\"${2:-$MIXER}\"` means in Bash \"assign the MIXER variable with the second parameter if it is present, otherwise default to the value of MIXER\"."}}
{"actor":{"display_login":"vivien"}}