{"id":15049447,"url":"https://github.com/wyatt8740/x11-window-hider","last_synced_at":"2025-08-24T15:17:50.283Z","repository":{"id":148846766,"uuid":"55877814","full_name":"wyatt8740/x11-window-hider","owner":"wyatt8740","description":"(Also on GitLab - https://gitlab.com/wyatt8740/x11-window-hider.git ) - Easily hide and show (unmap and map) X11 windows. libxcb ANSI (C89) compatible C and bash xdotool implementations.","archived":false,"fork":false,"pushed_at":"2019-10-22T01:51:02.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T19:39:59.456Z","etag":null,"topics":["ansi","ansi-c","bash","bash-script","c","c89","libxcb","map","posix","unmap","x11","xdotool"],"latest_commit_sha":null,"homepage":"","language":"C","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/wyatt8740.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":"2016-04-10T02:55:36.000Z","updated_at":"2024-03-01T17:31:27.000Z","dependencies_parsed_at":"2023-07-05T11:22:28.539Z","dependency_job_id":null,"html_url":"https://github.com/wyatt8740/x11-window-hider","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/wyatt8740%2Fx11-window-hider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyatt8740%2Fx11-window-hider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyatt8740%2Fx11-window-hider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wyatt8740%2Fx11-window-hider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wyatt8740","download_url":"https://codeload.github.com/wyatt8740/x11-window-hider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254455755,"owners_count":22074048,"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":["ansi","ansi-c","bash","bash-script","c","c89","libxcb","map","posix","unmap","x11","xdotool"],"created_at":"2024-09-24T21:20:31.949Z","updated_at":"2025-05-16T02:31:14.660Z","avatar_url":"https://github.com/wyatt8740.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x11-window-hider\nEasily hide and show (unmap and map) X11 windows.\n\nI wrote the shell scripts first, using xdotool as my interface with the\nX server. Later, because I was having a hard time finding C projects that\nhadn't been done yet, I 'ported' the shell scripts into K\u0026R C.\n\nI recommend binding these programs to keyboard shortcuts, as they operate on\nwhichever window currently has focus.\n\n## The Shell Scripts:\nThese are what you should use if you have `xdotool` and `bash` and GNU `sed`.\nThe hiding script doesn't require any of those but `xdotool`, but the unhiding\nscript requires `bash` and GNU `sed`. You can probably replace those with other\ntools or options in exotic linuxes/unixes, but I was targeting my personal\nDebian machine.\n\n\n## C programs:\nIf you want something that will work on basically any POSIX OS, try the C\nprograms. You only need libxcb's headers and library for them to work.\n\n(Update: 2017: for some reason, the C programs don't work on my 64 bitlaptop\nwith Intel graphics. I'm probably doing something wrong with the X11 protocol\nor making bad assumptions. It was an early C program I wrote, just to try to\ndo it, so I'm not too concerned with fixing it right now.\n\nThe shell scripts still work fine, so I recommend using those. I have no\nidea exactly why the C programs broke, and I don't have time to mess with them\nat the moment.)\n\nThe C Programs:\nI chose K\u0026R C because I happened to have a book written in 1989 on C\nhandy. The book is called \"Programming in C: Revised Edition\" By\nStephen Kochan. It covers K\u0026R C for most of the book, and then has\nan appendix of the then-recent ANSI C standard's differences. I\nbelieve I used only K\u0026R C in this program, but I wrote it months ago\nso I may have forgotten something. Anyway, K\u0026R is what I learned C\nin.\n\nIt should compile on basically any C compiler as long as you\nhave a POSIX system. By replacing the check for a file's existance\nwith `access()` and the code to find the path of the user's home directory\n(which uses `getpwuid()`), you can probably even make this code compile in\nWindows for use with XMing (a Win32 X11 server). I tried to avoid any\nexternal libraries where possible, so it is highly portable.\n\nTo compile, run `./compile.sh` from the root of the repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyatt8740%2Fx11-window-hider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwyatt8740%2Fx11-window-hider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwyatt8740%2Fx11-window-hider/lists"}