{"id":16685335,"url":"https://github.com/wadaboa/bash-scripts","last_synced_at":"2026-04-29T12:36:06.887Z","repository":{"id":87170631,"uuid":"182784065","full_name":"Wadaboa/bash-scripts","owner":"Wadaboa","description":"Scripts used to automate some daily tasks on my macOS system","archived":false,"fork":false,"pushed_at":"2019-04-22T18:38:19.000Z","size":14966,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T10:23:11.870Z","etag":null,"topics":["automate","bash","bash-script","dock","macos"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wadaboa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-22T12:39:31.000Z","updated_at":"2019-04-22T18:42:41.000Z","dependencies_parsed_at":"2023-03-13T19:44:50.992Z","dependency_job_id":null,"html_url":"https://github.com/Wadaboa/bash-scripts","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/Wadaboa%2Fbash-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fbash-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fbash-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wadaboa%2Fbash-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wadaboa","download_url":"https://codeload.github.com/Wadaboa/bash-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428422,"owners_count":20289315,"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":["automate","bash","bash-script","dock","macos"],"created_at":"2024-10-12T14:47:00.145Z","updated_at":"2025-12-28T12:29:34.048Z","avatar_url":"https://github.com/Wadaboa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash scripts\n\n## Installation\n\nBelow is an example on how to install the `dockerize` script:\n\n1. Make a local clone of this repository in `~/scripts`\n2. Copy `com.jobs.dockerize.plist` inside `/Library/LaunchAgents`\n3. Open a terminal window and run `launchctl load /Library/LaunchAgents/com.jobs.dockerize.plist`\n4. Open `System Preferences → Security \u0026 Privacy` and navigate to the `Privacy` tab\n5. Click the “Lock” icon and enter your system password to unlock the panel settings\n6. Click on `Full Disk Access` and add the `dockerize` executable to the list\n7. Click on `Accessibility` and add the `dockerize` executable to the list\n\n**NOTE**: These scripts are written to work with personal settings (For example, I take for granted that my home folder is located in `/Users/Jobs`).\n\n## Scripts\n\n### dockerize\n\nScript used to automate some tasks relative to docking/undocking the system to/from home/work.\\\nThis script is a daemon, invoked when a specific USB device is connected/disconnected (In this case, this device is the external keyboard **Keyboard -- QuickFire XT**).\\\nSo, whenever the **plugging event** happens, the script does the followings:\n\n- If there's my external keyboard connected, changes keyboard layout from US to IT and enables bluetooth\n- If there's an active ethernet connection, shuts down wifi\n- If there are two connected external monitors, sets a dual wallpaper\n\nAnd whenever the **unplugging event** happens, the script does the followings:\n\n- If there isn't my external keyboard connected, changes keyboard layout from IT to US and disables bluetooth\n- If there isn't an active ethernet connection, turns on wifi\n- If there aren't two connected external monitors, sets a single wallpaper\n\nThe wallpapers are defined in the `assets` folder. The single monitor wallpaper is named `one.jpg`, while the dual monitor wallpapers are named `two_left.jpg` and `two_right.jpg`.\n\n#### Dependencies\n\nThe script depends on the following libs:\n\n- **xkbswitch** (https://github.com/myshov/xkbswitch-macosx)\n- **blueutil** (https://github.com/toy/blueutil)\n\n### internet\n\nScript used to check if there's an actual active internet connection. This script is a daemon, invoked every 2 seconds.\\\nSo, whenever the current internet connection goes down, a notification appears saying **Internet connection - Offline**.\\\nAt that point, when the internet connection comes back up, a notification appears saying **Internet connection - Online**.\\\nIt's as easy as that.\n\n**NOTE**: This script works by pinging **google.com**. So, if Google's servers are down, you might receive a wrong notification.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwadaboa%2Fbash-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwadaboa%2Fbash-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwadaboa%2Fbash-scripts/lists"}