{"id":49583977,"url":"https://github.com/ishbguy/lock.sh","last_synced_at":"2026-05-03T21:37:30.436Z","repository":{"id":191653181,"uuid":"683780953","full_name":"ishbguy/lock.sh","owner":"ishbguy","description":"A shell lock screen tool, which can be integrated with tmux.","archived":false,"fork":false,"pushed_at":"2025-02-01T09:16:01.000Z","size":1591,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-03T21:37:16.782Z","etag":null,"topics":["ascii-art","bash","cli","lock","lockscreen","shell","terminal","tmux","tmux-plugins"],"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/ishbguy.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":"2023-08-27T17:14:25.000Z","updated_at":"2026-04-09T20:56:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c8afa8c-0e80-473c-9531-c859d19fb6f9","html_url":"https://github.com/ishbguy/lock.sh","commit_stats":null,"previous_names":["ishbguy/tmux-lock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ishbguy/lock.sh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishbguy%2Flock.sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishbguy%2Flock.sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishbguy%2Flock.sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishbguy%2Flock.sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ishbguy","download_url":"https://codeload.github.com/ishbguy/lock.sh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ishbguy%2Flock.sh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32586187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["ascii-art","bash","cli","lock","lockscreen","shell","terminal","tmux","tmux-plugins"],"created_at":"2026-05-03T21:37:29.785Z","updated_at":"2026-05-03T21:37:30.431Z","avatar_url":"https://github.com/ishbguy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [lock.sh](https://github.com/ishbguy/lock.sh)\n\nA shell lock screen tool, which can be integrated with tmux.\n\n![`lock.sh -e '$(date +%H:%M:%S | figlet)'`](screenshots/lock-date.png)\n\n## Prerequisites\n\n- `tput`\n- `dialog`\n- `shuf`\n- `find`\n\n## Features\n\n- Lock with a simple login box and unlock with the user password\n- Run with other cmd to lock the terminal\n- Customized ascii art\n- Slideshow mode\n- Dynamic shell expansion\n- Integrate with `tmux`\n\n## Installation\n\n### Basic\n\nClone the repo:\n\n```\ngit clone https://github.com/ishbguy/lock.sh /path/to/lock.sh\n```\n\n### Integration with `tmux`\n\nIf using [Tmux Plugin Manager](https://github.com/tmux-plugins/tpm), you need to add\nthe following to your list of TPM plugins in `.tmux.conf`:\n\n```\nset -g @plugin 'ishbguy/lock.sh'\n```\n\nThen hit \u003ckbd\u003eprefix\u003c/kbd\u003e+\u003ckbd\u003eI\u003c/kbd\u003e to fetch and source the plugin. You should now be able to use this plugin!\n\n## How to use\n\nSee `lock.sh -h`:\n\n```\nlock.sh v1.1.0\nlock.sh [-leAhvD] [-c cmd|-a name|-d dir|-t sec|-s sec|-S sec] [args...]\n    \n    [args..]        Show the args string on lock screen\n    -c \u003ccmd\u003e        Run the [cmd] as the lock screen command\n    -a \u003cname\u003e       Show the \u003cname\u003e ascii art on lock screen\n    -d \u003cdir\u003e        Specify the ascii art director, work with -a option\n    -e              Make shell expansion when lock screen\n    -l              Need to login to unlock the screen\n    -t \u003csec\u003e        Specify \u003csec\u003e seconds timer to invoke the login\n    -s \u003csec\u003e        Slideshow mode, slide every \u003csec\u003e seconds\n    -S \u003csec\u003e        Shuffle slideshow mode, slide every \u003csec\u003e seconds\n    -AS \u003csec\u003e       Shuffle slideshow with local ascii arts every \u003csec\u003e seconds\n    -h              Print this help message\n    -v              Print version number\n    -D              Turn on debug mode\n\nFor examples:\n\n    lock.sh                         # Run without opts and args will show a login screen\n    lock.sh \"Hello world!\"          # Show the 'Hello world!' string on lock screen\n    lock.sh -c cmatrix              # Run cmatrix as lock screen\n    lock.sh -l -c cmatrix           # Run cmatrix as lock screen and need to login to unlock\n    lock.sh -l -t 10 cmatrix        # Run cmatrix then will invoke login if run over 10 seconds\n    lock.sh -a zebra                # Show the 'zebra' ascii art on lock screen\n    lock.sh -d art -a zebra         # Find 'zebra' ascii art in 'art' directory and\n                                    # show it on the lock screen\n    lock.sh -s 5 one two            # Slide every 5 seconds\n    lock.sh -S 5                    # Shuffle every 5 seconds without args, it will try fortune\n                                    # by default, or will invoke login screen\n    lock.sh -S 5 one two three      # Shuffle every 5 seconds with args\n    lock.sh -AS 5                   # Shuffle every 5 seconds with local ascii arts\n    lock.sh -e '$(date +%H:%M)'     # Dynamic expansion the date output\n\nLock screen key bindings:\n\n    j/J     Next lock screen\n    k/K     Prev lock screen\n\nThis program is released under the terms of the MIT License.\n```\n\n## License\n\nReleased under the terms of [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishbguy%2Flock.sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fishbguy%2Flock.sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fishbguy%2Flock.sh/lists"}