{"id":17656389,"url":"https://github.com/nwg-piotr/nwgocc","last_synced_at":"2025-05-07T11:44:13.795Z","repository":{"id":39762816,"uuid":"320720630","full_name":"nwg-piotr/nwgocc","owner":"nwg-piotr","description":"nwg Control Center - Go version","archived":false,"fork":false,"pushed_at":"2022-05-26T00:23:13.000Z","size":10546,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T09:41:15.683Z","etag":null,"topics":["go","golang","gtk3","preferences"],"latest_commit_sha":null,"homepage":"","language":"Go","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/nwg-piotr.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}},"created_at":"2020-12-12T01:11:40.000Z","updated_at":"2024-08-28T21:52:32.000Z","dependencies_parsed_at":"2022-08-28T06:20:15.524Z","dependency_job_id":null,"html_url":"https://github.com/nwg-piotr/nwgocc","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/nwg-piotr%2Fnwgocc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwg-piotr%2Fnwgocc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwg-piotr%2Fnwgocc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwg-piotr%2Fnwgocc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwg-piotr","download_url":"https://codeload.github.com/nwg-piotr/nwgocc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873907,"owners_count":21817708,"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":["go","golang","gtk3","preferences"],"created_at":"2024-10-23T14:31:36.657Z","updated_at":"2025-05-07T11:44:13.780Z","avatar_url":"https://github.com/nwg-piotr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nwg Control Center (Go version)\n\nnwg Control Center is a highly customisable, GTK-based GUI, intended for use with window managers. It may serve as an\nextension to bars / panels, providing built-in and user-defined controls. Default theme may be overridden with custom\ncss style sheets.\n\nMain window, Nordic-bluish-accent GTK theme, icons Custom light:\n\n![image](https://user-images.githubusercontent.com/20579136/168924121-2f4a8ff2-51d5-4ceb-a813-5bb4b7901214.png)\n\n[More screenshots](https://scrot.cloud/album/nwgocc.tDg)\n\nThis code was primarily written in python and published as [nwgcc](https://github.com/nwg-piotr/nwgcc). As I wanted it\nto work a bit faster, and also to learn something new, I translated it into Go, using the\n[gotk3](https://github.com/gotk3/gotk3) library. This is my very first more serious code in golang. I'm 100% sure it\nmay be improved in many ways.\n\n## Dependencies\n\n- go\n- gtk3\n\nThe above seems to be enough on Arch Linux. On other distributions you may also need `libgtk-3`, `libglib2` and\n`libgdk-pixbuf2`. Check the reference on https://github.com/gotk3/gotk3.\n\n### Components\n\nFor built-in components to work, you need external commands / dependencies as below. If you don't need one, you may\nskip installing related packages (e.g. on a desktop machine, you probably don't need the brightness slider).\n\n- `light`: for Brightness slider\n- `alsa`, `alsa-utils`: for Volume slider\n- `playerctl`: for mpris media player controller buttons\n- `wireless_tools`: for Wi-fi status\n- `bluez`, `bluez-utils`: for Bluetooth status\n\nSample user defined commands use `blueman` and `NetworkManager`.\n\n## Installation\n\n- Install dependencies and your selection of optional dependencies.\n- `git clone https://github.com/nwg-piotr/nwgocc.git`\n- `cd nwgocc`\n- `make get` (This may take a while; provided that no new libraries added, you may skip this step next time.)\n- `make build`\n- `sudo make install`\n\n## To uninstall\n\n`sudo make uninstall`\n\n## Usage\n\n```text\nUsage of nwgocc:\n  -c string\n    \tuser's templates: Config file name (default \"config.json\")\n  -d\tDo checks, print results\n  -p\tplace window at the mouse Pointer position (Xorg only)\n  -r\tRestore defaults (preferences, templates and icons)\n  -s string\n    \tcustom Styling: css file name (default \"style.css\")\n  -v\tdisplay Version information\n ```\n\n Click the Preferences button to adjust the window to your needs. For your own custom styling, either modify the\n `~/.config/nwgocc/style.css` file, or place your own `whatever.css` in the same folder, and use the `-s` flag.\n\n You may also make a copy of `~/.config/nwgocc/config.json` under another name, for further use with the `-c` flag.\n\n## Credits\n\n- GUI uses the [gotk3](https://github.com/gotk3/gotk3) package, Copyright (c) 2013-2014 Conformal Systems LLC,\nCopyright (c) 2015-2018 gotk3 contributors, released under the terms of the\n[ISC License](https://github.com/gotk3/gotk3/blob/master/LICENSE).\n\n- Volume control relies on the [volume-go](https://github.com/itchyny/volume-go) package, Copyright (c) 2017-2020 itchyny,\nreleased under the terms of the [MIT License](https://github.com/itchyny/volume-go/blob/master/LICENSE).\n\n- Handling multiple instances relies on the [go-singleinstance](https://github.com/allan-simon/go-singleinstance)\nlibrary, Copyright (c) 2015 Allan Simon, released under the terms of the\n[MIT License](https://github.com/allan-simon/go-singleinstance/blob/master/LICENSE).\n\n- Most of custom icons come from my favorite [Papirus icon theme](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme),\nreleased under the terms of the\n[GNU General Public License, version 3](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwg-piotr%2Fnwgocc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwg-piotr%2Fnwgocc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwg-piotr%2Fnwgocc/lists"}