{"id":20116281,"url":"https://github.com/tocic/scripts","last_synced_at":"2026-04-07T23:31:46.174Z","repository":{"id":83620828,"uuid":"541115397","full_name":"tocic/scripts","owner":"tocic","description":"Useful bash scripts for Linux","archived":false,"fork":false,"pushed_at":"2022-11-02T10:04:09.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T19:25:02.063Z","etag":null,"topics":["archlinux","bash","linux","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/tocic.png","metadata":{"files":{"readme":"README.adoc","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-25T09:14:50.000Z","updated_at":"2023-03-25T14:55:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2c1b859-64c2-404d-82a5-b010204dfbca","html_url":"https://github.com/tocic/scripts","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tocic/scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocic%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocic%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocic%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocic%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tocic","download_url":"https://codeload.github.com/tocic/scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocic%2Fscripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31533823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"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":["archlinux","bash","linux","shell"],"created_at":"2024-11-13T18:39:51.069Z","updated_at":"2026-04-07T23:31:46.157Z","avatar_url":"https://github.com/tocic.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"= scripts\n:source-highlighter: highlight.js\n:repo: https://github.com/tocic/scripts\n\nifdef::env-github[]\nimage:https://img.shields.io/github/v/release/tocic/scripts?display_name=release\u0026logo=semantic-release[GitHub release,\nlink={repo}/releases/latest]\nimage:https://img.shields.io/github/license/tocic/scripts?logo=opensourceinitiative[license,link=UNLICENSE.txt]\nendif::[]\n\nCollection of useful bash scripts for Linux.\n\n[source,bash]\n----\necho \"sleep 100\" \u003e test.sh \u0026\u0026 chmod +x test.sh\ndetach ./test.sh \u0026\u0026 display_process_info \"slee\"\ncreate_tarball \"test.tar.gz\" ./test.sh \u0026\u0026 extract_tarball \"test.tar.gz\" .\ntranslate_selection --help \u0026\u0026 update_aur -h\ncheck_laptop_mode\nbackup_home --version \u0026\u0026 backup_packages -V\nbrowse_processes_and_threads\n----\n\n== Installation\n\nEach script is versioned separately and is released into the public domain, so you can install only the ones you need.\nYou can just copy-paste a script or several scripts from the GitHub UI or use any of the following commands.\n\n* for the script `+common/create_tarball+`:\n+\n--\n\n** via `+wget+`:\n+\n[source,bash]\n----\nwget https://raw.githubusercontent.com/tocic/scripts/main/common/create_tarball\n----\n\n** via `+curl+`:\n+\n[source,bash]\n----\ncurl -O https://raw.githubusercontent.com/tocic/scripts/main/common/create_tarball\n----\n\n--\n\n* for all the scripts in the category/directory `+common+`:\n+\n--\n\n** via `+subversion+`:\n+\n[source,bash,subs=\"attributes+\"]\n----\ngit svn clone {repo}/trunk/common\n----\n\n** via third-party services:\n\n*** https://download-directory.github.io/?url={repo}/tree/main/common\n\n*** https://minhaskamal.github.io/DownGit/#/home?url={repo}/tree/main/common\n\n+\nNOTE: These services download files as a ZIP archive.\nUse any utility like `+unzip+` to extract the files.\n\n--\n\nAlternatively, you can download all the scripts at once on {repo}/releases[the Releases page].\n\nTIP: Since https://git-scm.com/docs/index-format#_index_entry[`+git+` allows storing regular files only with 755 or 644\npermissions], all the scripts are stored with 755 permissions, so you don't have to `+chmod +x+` manually.\nBut you might consider changing the script's permissions and/or UID/GID if, for example, you want to remove the ability\nto execute the script by all users of the system.\n\nAdditionally, all dependencies of the executable script must be installed.\nYou can find them in the script file directly or via the script `+common/list_script_dependencies+`.\n\n[source,bash]\n----\nlist_script_dependencies [--optional] SCRIPT_FILE_PATH\n----\n\nNOTE: Dependency package names are taken from the Arch Linux official repositories.\nYou can search for the names https://archlinux.org/packages[here] to find the equivalent for your package manager.\nMost likely, the files from `+coreutils+` and `+util-linux+` are already installed on your system.\n\nAlso, for ease of access, it's recommended to https://wiki.archlinux.org/title/Environment_variables#Defining_variables[\nadd the script's directory path to the PATH variable] or place the script itself into `+/usr/local/bin+`, for instance.\n\n== Usage\n\nEach script has a `+--help+` option that will show you a description of the script and its arguments.\nAlso, for convenience, descriptions of all the scripts are given below.\n\n.Click to see the descriptions\n[%collapsible]\n====\n\n[cols=\"\u003c2s,^1,\u003c3\"]\n|===\n^|Script ^|Category ^|Description\n\n|link:common/backup_home[backup_home]\n|link:common/[common]\n|Backup the home directory to the borg archive.\n\n|link:common/browse_processes_and_threads[browse_processes_and_threads]\n|link:common/[common]\n|Browse processes and threads.\n\n|link:common/change_keyboard_backlight[change_keyboard_backlight]\n|link:common/[common]\n|Increase/decrease keyboard backlight.\n\n|link:common/create_tarball[create_tarball]\n|link:common/[common]\n|Create an optionally compressed tar archive.\n\n|link:common/detach[detach]\n|link:common/[common]\n|Run the command detached from the terminal.\n\n|link:common/display_process_info[display_process_info]\n|link:common/[common]\n|Display info about the process.\n\n|link:common/extract_tarball[extract_tarball]\n|link:common/[common]\n|Extract files from an optionally compressed tar archive.\n\n|link:common/generate_ssh_keys[generate_ssh_keys]\n|link:common/[common]\n|Generate an SSH key pair.\n\n|link:common/list_script_dependencies[list_script_dependencies]\n|link:common/[common]\n|List dependencies of the script.\n\n|link:laptop/check_battery[check_battery]\n|link:laptop/[laptop]\n|Display the battery information.\n\n|link:laptop/check_laptop_mode[check_laptop_mode]\n|link:laptop/[laptop]\n|Check if the laptop is plugged into AC power.\n\n|link:laptop/toggle_touchpad[toggle_touchpad]\n|link:laptop/[laptop], link:X11/[X11]\n|Turn off/on the touchpad.\n\n|link:pacman/AUR/clean_aur[clean_aur]\n|link:pacman/AUR/[AUR], link:pacman/[pacman]\n|Clean git repositories of AUR packages.\n\n|link:pacman/AUR/rebuild_aur[rebuild_aur]\n|link:pacman/AUR/[AUR], link:pacman/[pacman]\n|Rebuild and reinstall AUR packages.\n\n|link:pacman/AUR/update_aur[update_aur]\n|link:pacman/AUR/[AUR], link:pacman/[pacman]\n|Update and install AUR packages.\n\n|link:pacman/backup_packages[backup_packages]\n|link:pacman/[pacman]\n|Backup the names of installed packages.\n\n|link:pacman/browse_packages[browse_packages]\n|link:pacman/[pacman]\n|Browse installed packages along with info about them.\n\n|link:pacman/list_modified_backup_files[list_modified_backup_files]\n|link:pacman/[pacman]\n|List backup files that were modified.\n\n|link:pacman/list_orphan_packages[list_orphan_packages]\n|link:pacman/[pacman]\n|List dependency packages that are no longer required by any installed package.\n\n|link:pacman/list_packages_by_date[list_packages_by_date]\n|link:pacman/[pacman]\n|List packages sorted by installation date.\n\n|link:pacman/list_packages_by_size[list_packages_by_size]\n|link:pacman/[pacman]\n|List packages sorted by installation size.\n\n|link:X11/translate_selection[translate_selection]\n|link:X11/[X11]\n|Translate the selected text into the specified language.\n\n|link:X11/turn_off_monitor[turn_off_monitor]\n|link:X11/[X11]\n|Turn off the monitor.\n|===\n\n====\n\n== Contribution\n\nFeel free to post bug reports, questions, and feature requests at {repo}/issues.\nPRs are also welcome, but try to stick to https://google.github.io/styleguide/shellguide.html[the Google-based code\nstyle] established in the existing scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftocic%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftocic%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftocic%2Fscripts/lists"}