{"id":16974405,"url":"https://github.com/deficient/keyboard-layout-indicator","last_synced_at":"2026-02-20T08:30:17.532Z","repository":{"id":6158477,"uuid":"7388014","full_name":"deficient/keyboard-layout-indicator","owner":"deficient","description":"Keyboard layout indicator/switcher widget for awesome-wm","archived":true,"fork":false,"pushed_at":"2024-08-18T20:10:56.000Z","size":23,"stargazers_count":30,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-14T01:06:23.494Z","etag":null,"topics":["awesome-wm","keyboard-layout","switcher-widget"],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deficient.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-12-31T15:00:37.000Z","updated_at":"2024-08-18T20:13:56.000Z","dependencies_parsed_at":"2024-08-19T11:18:17.933Z","dependency_job_id":null,"html_url":"https://github.com/deficient/keyboard-layout-indicator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deficient%2Fkeyboard-layout-indicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deficient%2Fkeyboard-layout-indicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deficient%2Fkeyboard-layout-indicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deficient%2Fkeyboard-layout-indicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deficient","download_url":"https://codeload.github.com/deficient/keyboard-layout-indicator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239845197,"owners_count":19706568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awesome-wm","keyboard-layout","switcher-widget"],"created_at":"2024-10-14T01:06:17.720Z","updated_at":"2026-02-20T08:30:17.490Z","avatar_url":"https://github.com/deficient.png","language":"Lua","funding_links":[],"categories":["Keyboard Related"],"sub_categories":["Optical Health"],"readme":"**This repository has been assimilated into** https://github.com/deficient/deficient\n\n## awesome.keyboard-layout-indicator\n\n### Description\n\nKeyboard layout indicator+switcher widget for awesome window manager.\n\n### Installation\n\nDrop the script into your awesome config folder. Suggestion:\n\n```bash\ncd ~/.config/awesome\ngit clone https://github.com/deficient/keyboard-layout-indicator.git\n```\n\n\n### Usage\n\nIn your `rc.lua`:\n\n```lua\n-- load the widget code\nlocal layout_indicator = require(\"keyboard-layout-indicator\")\n\n-- define your layouts\nkbdcfg = layout_indicator({\n    layouts = {\n        {name=\"dv\",  layout=\"de\",  variant=\"dvorak\"},\n        {name=\"de\",  layout=\"de\",  variant=nil},\n        {name=\"us\",  layout=\"us\",  variant=nil}\n    },\n    -- optionally, specify commands to be executed after changing layout:\n    post_set_hooks = {\n        \"xmodmap ~/.Xmodmap\",\n        \"setxkbmap -option caps:escape\"\n    }\n})\n\n-- add the widget to your wibox\n    ...\n    right_layout:add(kbdcfg.widget)\n    ...\n\n\n-- Add bindings\nlocal globalkeys = awful.util.table.join(\n    ...\n    awful.key({ \"Shift\"         }, \"Shift_R\", function() kbdcfg:next() end ),\n    awful.key({ \"Mod4\", \"Shift\" }, \"Shift_R\", function() kbdcfg:prev() end ),\n    ...\n)\n```\n\nNOTE: middle click on the widget executes a prompt which lets you set a custom\nkeyboard layout. However, this will work only if you assign `s.mypromptbox` as\nin the awesome 4.0 default `rc.lua`. Otherwise, you have to rebind the\nbehaviour manually, see the source code.\n\n\n### Requirements\n\n* [awesome 4.0](http://awesome.naquadah.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeficient%2Fkeyboard-layout-indicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeficient%2Fkeyboard-layout-indicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeficient%2Fkeyboard-layout-indicator/lists"}