{"id":17546062,"url":"https://github.com/aletempiac/linux-config","last_synced_at":"2026-05-06T07:31:42.996Z","repository":{"id":177258200,"uuid":"174972639","full_name":"aletempiac/linux-config","owner":"aletempiac","description":"My personal configuration of Linux with vim and i3wm","archived":false,"fork":false,"pushed_at":"2020-09-16T20:19:22.000Z","size":47858,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T06:13:07.059Z","etag":null,"topics":["backlight","bashrc","configuration","driver","i3wm","i3wm-config","i3wm-confs","keyboard","linux","linux-configuration","vim","vim-configuration","vim-plugin","vim-plugins","vimrc"],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aletempiac.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":"2019-03-11T10:00:43.000Z","updated_at":"2023-03-24T23:15:45.000Z","dependencies_parsed_at":"2023-07-20T02:15:27.243Z","dependency_job_id":null,"html_url":"https://github.com/aletempiac/linux-config","commit_stats":null,"previous_names":["aletempiac/linux-config"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aletempiac/linux-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aletempiac%2Flinux-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aletempiac%2Flinux-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aletempiac%2Flinux-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aletempiac%2Flinux-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aletempiac","download_url":"https://codeload.github.com/aletempiac/linux-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aletempiac%2Flinux-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32683706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backlight","bashrc","configuration","driver","i3wm","i3wm-config","i3wm-confs","keyboard","linux","linux-configuration","vim","vim-configuration","vim-plugin","vim-plugins","vimrc"],"created_at":"2024-10-21T01:43:18.581Z","updated_at":"2026-05-06T07:31:42.980Z","avatar_url":"https://github.com/aletempiac.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Linux configuration\nThis repository contains my personal configuration of Linux used with i3 windows manager.\n\nIt contains:\n* .bashrc simple settings\n* vim configuration with plugins for c, python and vhdl\n* i3 configuration with i3blocks\n\n## Prerequisites\nVim plugins doesn't need any other program except for vim itself.\nFor i3 windows manager some application and fonts need to be installed.\nYou can follow the guide for basic i3 configuration settings here https://youtu.be/8-S0cWnLBKg and here ([setupi3]).  \nEverything I did, except few modification, are well explained there.\nInstall all the software and font in that guide.\n\n## Bashrc\nIt contains my shell layout, set vim as default editor, plus contains some alias of some application that I use.\nThis is how the terminal looks like:\n\n\u003cimg src=\"pictures/terminal.png\" alt=\"Terminal\" style=\"float: left; margin-right: 10px;\" /\u003e  \n\n## Vim\nCopy `.vimrc` and `.vim` folder inside your home directory, then extract the zip file `.vim/plugged/plugin.zip` inside that folder.  \nOther plugins can be installed writing inside `.vimrc`:\n\n```bash\n$ Plug *git-repository-name*\n```\nand then digit inside vim:\n\n```bash\n:PlugInstall\n```\nor putting the plugin folder directly inside `.vim/plugged/`.  \nThe installation process is explained in details inside [plug.vim].\n\nIn general it contains:\n* Color themes for coding\n* NerdTree that allows to see and move around the directory tree\n* C plugins for syntax check, compilation errors, c automatic code insertion\n* Python plugins for documentation, syntax check\n* VHDL plugin with automatic template\n* Vim shell and others\n\nYou can check the documentation of every plugin inside vim with:\n\n```bash\n:help *plugin-name*\n```\n\n## i3wm\nThe configurations can be found inside `.config` and `i3blocks` folders.\nThe `.config` folder content is situated inside your `.config` folder in your home directory. The `i3blocks` is situated in `/usr/share/`.\n\nPlease follow this guide ([setupi3]) for the complete configuration.  \nDuring the configuration in that guide I encountered some problems regarding the screen brightness keyboard buttons and the volume in the i3 bar.\n* for the brightness check here ([brightness unresponsive])\n* the volume bar has been solved changing the [volume] script.\n\nSome of the scripts inside [i3blocks] folder has been modified in order to be more aesthetic and in order to add functionalities. They use [FontAwesome] for icons images.\nIn particular the battery script has been modified to show the battery level also as an image that updates depending the battery level.  \nThe general look of the bar is this:\n\n\u003cimg src=\"pictures/i3bar.png\" alt=\"i3Bar\" style=\"float: left; margin-right: 10px;\" /\u003e\n\n### Keyboard backlight\nSince normal programs available online for keyboard backlight didn't work, I decided to write my own program [.runkeyboardlight.c]. The code depends on the computer in which is used. In general the two key factors to take into account are:\n- the path of the keyboard backlight device file\n- the range of possible configuration of the backlight\n\nIf you locate your device file, you can change the `fpath` variable in the code with the right path. In general it would be something like `/sys/class/leds/asus::kbd_backlight/brightness`. Try to act directly changing the content of the file driver, for example with a one, in order to see if the backlight works, it requires root privileges. Then you have to change the range of values for the brightness. In my laptop is 4 but in some it can be 2 or 3. Change line `44` in the code putting instead of 4 the right number.\n\nThen you have to compile and give to the executable the root ownership and the setuid for the user. To do that open a terminal in the file folder and digit:\n\n```bash\n$ gcc -o .runkeyboardlight .runkeyboardlight.c\n$ sudo chown root .runkeyboardlight\n$ sudo chmod u+s .runkeyboardlight\n```\nNow to increase or decrease the light type in a terminal:\n```bash\n$ .runkeyboardlight inc\n$ .runkeyboardlight dec\n```\n\nThen you can bind the program on the keyboard. Take a look inside [config] to see how it is done.\n\n\n[plug.vim]: .vim/autoload/plug.vim\n[setupi3]: https://github.com/bookercodes/setupi3\n[brightness unresponsive]: https://www.reddit.com/r/i3wm/comments/8aorse/solution_volumebrightness_keys_unresponsive/\n[volume]: i3blocks/volume\n[i3blocks]: i3blocks/\n[FontAwesome]: https://fontawesome.com/\n[.runkeyboardlight.c]: .config/i3/.runkeyboardlight.c\n[config]: .config/i3/config\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faletempiac%2Flinux-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faletempiac%2Flinux-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faletempiac%2Flinux-config/lists"}