[
  {
    "path": ".github/README.md",
    "content": "<div align=\"center\">\n\n[![banner](./readme/banner.png)](https://github.com/dharmx/vile)\n\n[![issues](https://img.shields.io/github/issues/dharmx/vile?color=%23f87070&style=for-the-badge)](https://github.com/dharmx/vile/issues)\n[![size](https://img.shields.io/github/repo-size/dharmx/vile?color=70c0ba&style=for-the-badge)](github.com/dharmx/vile)\n[![stars](https://img.shields.io/github/stars/dharmx/vile?color=c397d8&style=for-the-badge)](https://github.com/dharmx/vile/stargazers)\n[![commits](https://img.shields.io/github/commit-activity/m/dharmx/vile?color=%2379dcaa&style=for-the-badge)](https://github.com/dharmx/vile/commits)\n\n</div>\n\n# 👋 Introduction\n\nGreetings, visitors. This is a repository of various useless GUI\n[widgets](https://www.merriam-webster.com/dictionary/widget) that may or, may\nnot enchance the look of your current desktop interface.\nI will walk you through each and every step of the installation process so,\nmake sure to hit that lik- follow everything in a step-by-step fashion.\n\nAnd if you are here to borrow code then you may skip this README <samp>Obviously</samp>.\n\n## 🚒 Procedure\n\nA brief explanation of explanation (explanception!). This section is optional\nbut it wouldn't hurt to gloss over it.\n\n- [Introduction, brief description and greetings.](https://github.com/dharmx/vile#-introduction)\n- [Procedure, explanception.](https://github.com/dharmx/vile#-procedure)\n- [Showcase. Brief showcase, two screenshots of the project in action.](https://github.com/dharmx/vile#-showcase)\n- [Assumptions. Conditions and constraints.](https://github.com/dharmx/vile#-assumptions)\n- [Structure. Project structure and design decisions.](https://github.com/dharmx/vile#-structure)\n- <samp>MAKE IT STOP!</samp>\n- [Dependencies. Modules, packages, scripts and resources that are required.](https://github.com/dharmx/vile#-dependencies)\n- [Configuration. Setting things up.](https://github.com/dharmx/vile#configuration)\n- [Hacking. Advanced configuration.](https://github.com/dharmx/vile#hacking)\n- [Gallery.](https://github.com/dharmx/vile#gallery)\n- [Samples.](https://github.com/dharmx/vile#samples)\n- End Goals.\n- Not Goals.\n- Tips. Useless shit.\n- FAQ.\n- Credits. Acknowledgements.\n- TODOs.\n- License.\n\n## 🖼 Showcase\n\n![demo](./readme/demo.png)\n\n## 🤔 Assumptions\n\nList of conditions and constraints that are needed to be fulfilled.\nThis section solely to reduce some headaches.\nThis is done because I do not want to spend an extensive amount of time writing\ninstructions for several Linux distributions.\n\nI will choose Archlinux as a reference frame as I have only used Archlinux,\nManjaro and EndeavourOS in the past.\nSo, following are roughly some assumptions that I will follow:\n\n- You are using either Archlinux or, an Arch-based distro like Manjaro.\n- You already have an editor, a browser and necessary utilities installed like\n`sudo, git, etc`.\n- You have `python` installed.\n- You are using an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers).\n- You are using `bspwm` as your [window manager](https://wiki.archlinux.org/title/Window_manager).\n- You are using `sxhkd` as your [keyboard daemon](https://wiki.archlinux.org/title/Keyboard_shortcuts).\n- You use pulseaudio.\n\n## 🌿 Structure\n\nThis is an important section for those who want to borrow some piece of\nfunctionality for use in their projects.\nThis section will paint a general idea of how stuff is being linked to one\nanother so, you can have a general idea\nfor handling or, understanding a bug if one appears (which it will at some point).\n\n### 🌿 General structure\n\n```txt\n├── assets\n├── src\n│   ├── scss\n│   ├── shell\n│   └── yuck\n└── themes\n```\n\n- `assets` contains images, graphics and svgs for use in the project.\n- `src.scss` contains all theming files. Theming is done using\n[SCSS](https://sass-lang.com/). So, all of the files in this directory will also\nbe SCSS.\n- `src.yuck` contains markup files, all of which are of YUCK filetype.\n- `src.shell` contains various scripts.\n- `themes` this will also contain only SCSS files.\n<samp>Why not have them in src.scss then?</samp> Because organization. That's it.\n\n### 🌿 `src` substructure\n\nThis structure will seem familiar to webdevs.\n\n```txt\nsrc\n├── scss\n│   ├── bolt\n│   ├── lumin\n│   └── vertigo\n└── yuck\n    ├── bolt\n    ├── lumin\n    └── vertigo\n```\n\nAs you might have guessed.\nThe **modules** in the `scss` directory, style the classes that are defined in\nthe yuck directory.\nFor instance, the module `lumin` will have `scss.lumin` which will contain\nstyling specific to widgets defined in `yuck.lumin` only.\n\n### 📚 Style Overrides\n\nThere is a `_override.scss` file which supplied for the purpose of overriding\nand testing your own stylings.\nI have made this in order to contain different designs for the same widget.\n\n### Layouts\n\nThere is a `_layout.yuck` in every widget module\n(eg: `src/yuck/lumin/_layout.yuck`) which acts like a mini-configuration.\nTweak the values if you wish to do so 😉.\n\n![transparent](./readme/trans.png)\n\nThe above is the transparent version of the bar which is different to that\nshown in the showcase.\n\n## 🔽 Dependencies\n\nThis section is divided into 2 parts:\n\n- Main Dependencies\n- Python Dependencies\n\n### 🔽 Main Dependencies\n\nExecute this in your terminal <samp>(if you dare.)</samp>.\n\n```sh\nyay --sync base-devel rustup python python-pip eww-git  \\\n  dunst bspwm sxkhd gobject-introspection imagemagick   \\\n  mpd mpc playerctl pamixer rofi redshift zsh jq todo-bin --needed\n# NOTE: use paru or, a AUR helper of your choice or, do the dirty work yourself.\n```\n\n- [rustup](https://rustup.rs/) is needed for compiling eww.\n- For [pipewire](https://wiki.archlinux.org/title/PipeWire) users you need to\nreplace all of the matches of [`pamixer`](https://github.com/cdemoulins/pamixer)\nin\n  this repository with appropriate commands. You may use [`nvim-telescope's live-grep`](https://github.com/nvim-telescope/telescope.nvim)\n  feature to get the matches conveniently and elegantly.\n- For [dunst](dunst-project.org) you need to have have a specific configuration,\nwhich you can grab from the [**Samples**](https://github.com/dharmx/vile#samples)\nsection.\n- And it should be a given that [`bspwm`](https://wiki.archlinux.org/title/Bspwm)\nand [`sxkhd`](https://wiki.archlinux.org/title/Sxhkd) are already configured.\n\n### 🔽 Python Dependencies\n\nInspect the packages that you are about to install from [`requirements.txt`](https://github.com/dharmx/vile/blob/main/requirements.txt).\nThen run the following command in your terminal while in `vile's` root.\n\nBut, before that we need to create a `.venv` as the [PEP 0668](https://peps.python.org/pep-0668) is clinically insane.\n\n```sh\ncd ~/.config/eww\npython -m venv .venv\nsource ./.venv/bin/activate\npip install --requirement=requirements.txt\n```\n\n## Configuration\n\nStart by placing vile into `~/.config` and rename `vile` to `eww`. Or, you can use symlinks as shown below.\n\n```sh\ngit clone --depth 1 https://github.com/dharmx/vile.git ~/Downloads\nln -s ~/Downloads/vile ~/.config/eww\n## do not remove ~/Downloads/vile\n```\n\nNow, right after doing that you need to make the scripts executable.\n\n```sh\nchmod +x ~/Downloads/vile/src/shell/*\n```\n\nYou need to install the fonts that are being used in this repo. Which can\nbe found [here](https://github.com/dharmx/dots.sh/tree/main/local/share/fonts).\nLastly, do not forget to update the font caches after you do install them\n`fc-cache -frv`.\n\n```txt\nCaviar Dreams\nSagetarius\nPhosphor\nDosis\nPoiret One\nmonoMMM_5\nIosevka\nModum\nKoulen\nFeather\nLato\n```\n\nThis is a very very very important section. As the previous one, this section\nis also divided into various parts.\n\n- Environment Variables.\n- API Setups\n- JSON / Script Configurations\n- Layout Configurations\n- Dependency Configurations\n- Headless Testing / Trial Run.\n\n### Environment Variables\n\nStart by reading the [xdg-utils](https://wiki.archlinux.org/title/Xdg-utils)\nand [xdg-vars](https://wiki.archlinux.org/title/XDG_user_directories) articles\nfrom the [ArchWiki](https://wiki.archlinux.org/).\nThen you need to setup those variables by adding some lines in your\n[shellrc](https://www.tecmint.com/understanding-shell-initialization-files-and-user-profiles-linux/).\nAnyways, I will be using [ZSH](https://zsh.sourceforge.io/)\nfor this so, we will add those environment variables by editing the `~/.zshenv`\nfile first (create it if it doesn't exist).\n\nThen just append these lines to the file.\n\n```zsh\nexport XDG_CONFIG_HOME=\"$HOME/.config\"\nexport XDG_CACHE_HOME=\"$HOME/.cache\"\nexport XDG_MUSIC_DIR=\"$HOME/Music\"\nexport XDG_PICTURES_DIR=\"$HOME/Pictures\"\n```\n\nOn top of that you would need to add these as well.\n\n```zsh\n# NOTE: Add defaults of your choice as these may not be your taste.\nexport TERMINAL=st ## kitty for example\nexport BROWSER=firefox ## brave for example\nexport VISUAL=neovide ## nano for example\nexport EDITOR=nvim ## vim for example\n```\n\nSee more info on what these variables do [here](https://wiki.archlinux.org/title/Environment_variables).\n\n### API Setups\n\nStarting with the easiest. Firstly you need to go to the\n[OpenWeather](https://home.openweathermap.org/users/sign_in)\nwebsite and grab your [API key](https://rapidapi.com/blog/api-glossary/api-key/).\nDo this by creating an account and logging into the site. Then go to\nthe [`api_keys`](https://home.openweathermap.org/api_keys) tab and press the\ngenerate button after typing a name in the textfield.\nAnd if you already have a default key then use that instead.\n\nAnyways, take a note of that key value as we will need it later.\n\n### JSON and Script Configurations\n\nCopy the `ewwrc` from the [**Samples**](https://github.com/dharmx/vile#samples)\nsection and remove all of the comments. Then the first thing you'd need to do is\nadd the tokens that you noted from the\n[previous](https://github.com/dharmx/vile#-dependencies) section.\nFor example the `tokens.openweather` field.\n\n> Note: You may skip this if you do not plan to use `clime and chrono` see\nthe Galley section.\n\nTake a look at the `location` key and see what method of fetching the location\nyou want to select. If you have selected manual method then you'd need to fill\nout either `latitude` and `longitude` or, `city` and `country_code` and `lang` fields.\nLearn more about these [here](https://openweathermap.org/history-bulk#parameter).\nAs for automatic, you do not need to do anything in the location field.\n\nThen customize, change and tweak the values to your liking.\n\nNow, open `src/shell/combine.bash` then edit and match the `CACHE_PATH`,\n`QUOTE_PATH`, `INTERVAL` and `DEFAULT_QUOTE` with the fields\n`notify.cache_path`, `notify.quote_path`,\n`notify.default_quote` and `notify.interval` from `ewwrc`.\n\n> Note: `combine.bash` is created to be an alternative for some `logger.py\nfunctions since it is quite slow.\n\n### Layout Configurations\n\nMoving on. Copy the sample `eww.yuck` from the\n[**Samples**](https://github.com/dharmx/vile#samples) section. Create the\n`eww.yuck` file and uncomment the widgets you need. You may take a look at the\n[**Gallery**](https://github.com/dharmx/vile#gallery) section.\n\nAs explained in the [**Structure**](https://github.com/dharmx/vile#-structure)\nsection open the layout files of the modules that you enabled. For example\nif you have uncommented the vertigo module then, you would\nneed to open `src/yuck/vertigo/_layout.yuck` file and _customize_ the values\nlike icons glyphs, labels, etc.\n\nFor example in the `bolt` widget if you change the `:volume_icon`\nfield i.e. `` to a smiley face `:)` then\n\n```lisp\n;; NOTE: can be found in src/yuck/bolt/_layout.yuck\n(_boltpctl :cover {pctl_sub[\"mpris:artUrl\"]}\n           :label {pctl_sub[\"status\"]}\n           :title {pctl_sub[\"xesam:title\"]}\n           :artist {pctl_sub[\"xesam:artist\"]}\n           :volume volume_level\n           :volume_icon \"\" ;; to :volume_icon \":)\"\n           :status_cmd \"playerctl play-pause\"\n           :status_icon {pctl_sub[\"status\"] == \"Playing\" ? \"\" : \"\"})\n```\n\n![smile](./readme/smile.png)\n\n### Dependency Configurations\n\n- Make sure you have playerctl running at all times. Execute `playerctld daemon`\nin your terminal to start playerctl.\n- MPD needs to be running all times as well. Execute `mpd` in your terminal.\n- Same goes for dunst. Only caveat is that you'd need a specific configuration\nfor making it work with the `disclose` module.\n\n#### Disclose: Notification Manager\n\nThere are some very specific things that you would need to do for setting this up.\nFirstly, grab or, inspect the sample `dunstrc` from the\n[**Samples**](https://github.com/dharmx/vile#samples) section.\nTake a good look at the rulesets:\n\n```ini\n[volume]\nappname = \"volume\"\nsummary = \"*\"\nset_stack_tag = \"volume\"\nformat = \"<b>%s</b>\\n%b\"\n\n[firefox]\nappname = firefox\nnew_icon = firefox-default\n```\n\nThe above is an example of said ruleset. When a notification is sent by a certain\napplication like for example firefox, they will send\nsome specific metadata on top of the usual message summary and message body.\nWhich then we can use to tell apart the notifications sent from\nfirefox and other applications. This is done using the `appname` value.\n\nWe take that value and match it to these ruleset's `appname` field. And if you\nhave looked at the above snippet carefully, you will notice that there is a\nrule called `[firefox]` and within it there is a field called `appname` whose\nvalue is `firefox`.\nNow, whenever Firefox browser sends us a notification it will be redirected to\nthat ruleset.\n\nSecondly, there is another field called `new_icon` which signifies that when\nFirefox sends a notification, the notification icon will be replaced with an icon\nfrom your icon theme named `firefox-default.svg` (Yes, the extension will be truncated).\n\n![firefox card](./readme/firefox.png)\n\n### Testing\n\nThis section will describe how you would know if the script actually works.\nSince, if the scripts work then most probably the widgets will work as well.\nThese (might) be automated later in the near future with unit testing.\n\nBefore we begin I would urge you to recheck and verify if all the XDG variables\nhave been set or not. Source the `~/.zshenv` again if you are not confident.\n\nNow, go to the root of the vile repo. Then change the directory to where all of\nthe scripts are located at `cd src/shell`.\n\n- <samp>logger.py</samp>: Run this using `./logger.py init` which will\n   initialize the[dbus](https://www.freedesktop.org/wiki/Software/dbus) eavesdropper.\n   Now, open another terminal and run `./logger.py subscribe` then open another\n   terminal and type `notfy-send hello`. Now, if something appears in the second\n   terminal then the script is working.\n\n   ```lisp\n   (box :spacing 20 :orientation 'vertical' :space-evenly false\n   (_cardimage :class 'Spotify-rectangle' :identity ':::###::::\n   XXXWWW1660034424===::' :close_action './src/shell/combine.bash\n   rmid 1660034424' :limit_body '110' :limit_summary '30' :summary\n   'Forbidden Silence' :body 'Raimu - Forbidden Silence' :close '繁'\n   :class 'Spotify-rectangle' :identity ':::###::::XXXWWW1660034279===::'\n   ...\n   ```\n\n- <samp>combine.bash</samp>: Run this using `./logger.py init` which will\ninitialize the [dbus](https://www.freedesktop.org/wiki/Software/dbus) eavesdropper.\n   Now, open another terminal and run `./combine.bash sub` then open another\n   terminal and type `notfy-send hello`. Now, if something appears in the\n   second terminal then the script is working. Sample should be the same as `logger.py`.\n- <samp>covidstate.py</samp>: This is currently not in use but you can test it regardless.\nTry running it `./covidstate.py` and see if there is any\n[JSON](https://www.json.org/json-en.html) output.\n   You may need to wait for a few seconds by the way. Following is a sample.\n\n   ```json\n   {\n     \"country\": {\n     <redacted>: {\n       \"id\": \"81\",\n       \"country\": <redacted>,\n       \"confirmed\": 44174650,\n       \"active\": null,\n       \"deaths\": 526772,\n       \"recovered\": null,\n   ...\n   ```\n\n- <samp>github.sh</samp>: This too is not being used but wouldn't hurt to test it.\nTry running it by `./github.sh repos` see if there is any JSON output. And do the\nsame for `./github.sh users` as well.\n   Following is a sample.\n\n   ```json\n   [\n     {\n       \"id\": <some_number>,\n       \"node_id\": <some_number>,\n       \"name\": \"dharmx\",\n       \"full_name\": \"dharmx/dharmx\",\n       \"private\": false,\n       \"owner\": {\n         \"login\": \"dharmx\",\n   ...\n   ```\n\n- <samp>pollution.py</samp>: Do the same as `github.sh`.  Following is a sample.\n\n   ```json\n   {\n     \"coord\": {\n     \"lon\": <redacted>,\n     \"lat\": <redacted>\n   },\n   \"list\": [\n     {\n       \"main\": {\n       \"aqi\": 3\n     },\n     \"components\": {\n       \"co\": 487.33,\n       \"no\": 0.13,\n       \"no2\": 21.08,\n       \"o3\": 39.34,\n       \"so2\": 31.47,\n       \"pm2_5\": 20.35,\n       \"pm10\": 24.43,\n       \"nh3\": 4.75\n   ...\n   ```\n\n- <samp>weather.py</samp>: Do the same as `github.sh` only difference is\nthat you need to supply a flag i.e. `fetch`.\n   Following is a sample.\n\n   ```json\n   {\n     \"coord\": {\n     \"lon\": <redacted>,\n     \"lat\": <redacted>\n   },\n   \"weather\": [\n     {\n       \"id\": 721,\n       \"main\": \"Haze\",\n       \"description\": \"haze\",\n       \"icon\": \"50d\",\n   ...\n   ```\n\n- <samp>workspaces.zsh</samp>: This is [BSPWM](https://github.com/baskerville/bspwm) specific.\nTry running this by `./workspaces.zsh subscribe_desktop` then try going to any\nother workspace then return to the current one.\n   Now, see if there are any JSON values. Following is a sample.\n\n   ```json\n   [\n     {\n       \"class\": \"vertigo-button vertigo-workspace vertigo-workspace-occupied\",\n       \"tooltip\": \"workspace:  state: occupied\",\n       \"onclick\": \"bspc desktop --focus 1\",\n       \"label\": \"\"\n     },\n     {\n       \"class\": \"vertigo-button vertigo-workspace vertigo-workspace-local\",\n       \"tooltip\": \"workspace:  state: local\",\n       \"onclick\": \"bspc desktop --focus 2\",\n       \"label\": \"\"\n     },\n     {\n       \"class\": \"vertigo-button vertigo-workspace vertigo-workspace-focused\",\n       \"tooltip\": \"workspace: 北 state: focused\",\n       \"onclick\": \"bspc desktop --focus 3\",\n       \"label\": \"北\"\n     }\n   ]\n   ```\n\n- <samp>mpdaemon.py</samp>: Same as `github.sh`. Also, you might need to\n   traverse through your current MPD music playlist and play some songs to be\n   completely sure.\n   While you are at it see if JSON output changes or, not as well. Sample as follows.\n\n   ```json\n   {\n     \"file\": \"/home/maker/.cache/eww/mpd/3PM Coding Session.png\",\n     \"artist\": \"Lofi Ghostie\",\n     \"albumartist\": \"Unknown\",\n     \"title\": \"3PM Coding Session\",\n     \"album\": \"Unknown\",\n     \"last-modified\": \"2021-11-14T19:55:40Z\",\n     \"format\": \"44100:24:2\",\n     \"time\": \"4948\",\n     \"duration\": \"4947.748\",\n     \"pos\": \"0\",\n     \"id\": \"1\",\n     \"status\": \"pause\",\n     \"bright\": \"#4959A5\",\n     \"dark\": \"#CC96E0\"\n   }\n   ```\n\n- <samp>playerctl.py</samp>: Similar to `mpdaemon.py`. Sample as follows.\n\n   ```json\n   {\n     \"mpris:artUrl\": \"/home/maker/.cache/eww/pctl/spotify/7468726565706F6F6C/4120506C6163652042656E65617468.png\",\n     \"xesam:artist\": \"threepool\",\n     \"xesam:title\": \"A Place Beneath\",\n     \"xesam:album\": \"A Place Beneath\",\n     \"status\": \"Playing\",\n     \"mpris:trackid\": \"/com/spotify/track/4m1Kg8I715SQUSOjFrvxR7\",\n     \"mpris:length\": 132679000,\n   ...\n   ```\n\n- <samp>uptime.awk</samp>: Run this by `uptime --pretty | ./uptime.awk`.\n   Output should be `2d, 4h` for uptime of `up 2 days, 4 hours, 35 minutes`.\n\n### Note\n\n- If any of these do not work then consult the Troubleshooting, FAQ and Tips sections.\n- The notification manager (disclose) depends on my custom made icon theme that\ncan be found [here](https://github.com/dharmx/dots.sh/tree/main/home/.icons/custom.bak).\n- With dunst you may need to remove its dbus service file\n`/usr/share/dbus-1/services/org.knopwob.dunst.service`. Then kill all dunst\ninstances and start again with a new instance.\n- There may be some difficulties with the `mpdaemon.py` script if your default\nmpd Music storage is not as same as `XDG_MUSIC_DIR` i.e. `~/Music`.\n\n## Hacking\n\nComing Soon...\n\n## Gallery\n\n|  Avatar  |\n|---------|\n| ![avatar](./screenie/avatar.png)  |\n| **Description**: Adaptive and dynamic music player daemon and playerctl frontends. |\n| Note that this is still incomplete. |\n\n|   Bolt   |\n|---------|\n| ![bolt](./screenie/bolt.png)  |\n| **Description**: Beautiful integrated bar mini-dashboard. |\n\n|   Disclose   |\n|---------|\n| ![disclose](./screenie/disclose.png)  |\n| **Description**: Feature-Rich and Hacky notification manager. |\n\n|   Vertigo   |\n|---------|\n| ![vertigo](./screenie/vertigo.png)  |\n| **Description**: BSPWM Specific bar. See the [**Hacking**](https://github.com/dharmx/vile#hacking) section to add support for your WM. |\n\n|  Chrono One  |  Chrono Two  |\n|---------|---------|\n| ![chrono one](./screenie/chrono-one.png)  | ![chrono two](./screenie/chrono-two.png)  |\n| **Description**: Calendar, Cool radial clock and a beautiful weather card. | **Description**: Extensive weather information and Air pollution information. |\n\n|   Lumin   |\n|---------|\n| ![lumin](./screenie/lumin.png)  |\n| **Description**: Shows time and searches stuff on [duckduckgo](duckduckgo.com). |\n\n|   Clime   |\n|---------|\n| ![clime](./screenie/clime.png)  |\n| **Description**: Minimal weather info. |\n\n|   Origin   |\n|---------|\n| ![origin](./screenie/origin.png)  |\n| **Description**: Shows current logged username and hostname. |\n\n|   Melody   |\n|---------|\n| ![melody](./screenie/melody.png)  |\n| **Description**: Shows current playing audio track with essential application icons. |\n\n|   Ocular   |\n|---------|\n| ![ocular](./screenie/ocular.png)  |\n| **Description**: A moving seconds clock with added Ram, CPU, Temperatue and Battery monitor. |\n\n## Samples\n\n<details>\n<summary>A sample <code>dunstrc</code> configuration.</summary>\n\n```ini\n[global]\nbackground = \"#11161b\"\nforeground = \"#d4d4d5\"\nmonitor = 0\nfollow = mouse\nwidth = 480\nheight = 380\nprogress_bar = true\nprogress_bar_height = 25\nprogress_bar_frame_width = 3\nprogress_bar_min_width = 460\nprogress_bar_max_width = 480\nhighlight = \"#79dcaa\"\ndmenu = /usr/bin/dmenu\nindicate_hidden = true\nshrink = true\ntransparency = 5\nseparator_height = 5\npadding = 10\nhorizontal_padding = 10\nframe_width = 3\nframe_color = \"#151a1f\"\nsort = true\nidle_threshold = 0\nfont = Dosis,Iosevka Nerd Font 14\nline_height = 2\nmarkup = full\norigin = \"top-right\"\noffset = \"50x50\"\nformat = \"<b>%s</b>\\n%b\"\nalignment = left\nshow_age_threshold = 60\nword_wrap = false\nignore_newline = true\nstack_duplicates = true\nhide_duplicate_count = true\nshow_indicators = true\nicon_position = left\nmax_icon_size = 128\nmin_icon_size = 104\nicon_theme = \"custom,Reversal-green-dark,McMuse-green,Zafiro,McMuse,Papirus\"\nenable_recursive_icon_lookup = true\nsticky_history = true\nhistory_length = 50\nbrowser = firefox\nalways_run_script = true\ntitle = Dunst\nclass = Dunst\ncorner_radius = 0\nnotification_limit = 5\nmouse_left_click = do_action\nmouse_middle_click = close_current\nmouse_right_click = context_all\nignore_dbusclose = true\nellipsize = end\n\n[urgency_low]\ntimeout = 4\nbackground = \"#11161b\"\nframe_color = \"#1f2429\"\nforeground = \"#79dcaa\"\n\n[urgency_normal]\ntimeout = 8\nbackground = \"#11161b\"\nframe_color = \"#1f2429\"\nforeground = \"#7ab0df\"\n\n[urgency_critical]\ntimeout = 30\nbackground = \"#11161b\"\nframe_color = \"#1f2429\"\nforeground = \"#f87070\"\n\n[fullscreen_show_critical]\nmsg_urgency = critical\nfullscreen = pushback\n\n[volume]\nappname = \"volume\"\nsummary = \"*\"\nset_stack_tag = \"volume\"\nformat = \"<b>%s</b>\\n%b\"\n\n[microphone]\nappname = \"microphone\"\nsummary = \"*\"\nset_stack_tag = \"microphone\"\nformat = \"<b>%s</b>\\n%b\"\n\n[audiojack]\nappname = \"audiojack\"\nsummary = \"*\"\nset_stack_tag = \"audiojack\"\nformat = \"<b>%s</b>\\n%b\"\n\n[brightness]\nappname = \"brightness\"\nsummary = \"*\"\nset_stack_tag = \"brightness\"\nformat = \"<b>%s</b>\\n%b\"\n\n[shot]\nappname = \"shot\"\nsummary = \"*\"\nset_stack_tag = \"shot\"\nformat = \"<b>%s</b>\\n%b\"\n\n[shot_icon]\nappname = \"shot_icon\"\nsummary = \"*\"\nset_stack_tag = \"shot_icon\"\nformat = \"<b>%s</b>\\n%b\"\n\n[bar]\nappname = \"bar\"\nsummary = \"*\"\nset_stack_tag = \"bar\"\nformat = \"<b>%s</b>\\n%b\"\n\n[nightmode]\nappname = \"nightmode\"\nsummary = \"*\"\nset_stack_tag = \"nightmode\"\nformat = \"<b>%s</b>\\n%b\"\n\n[sxhkd]\nappname = \"sxhkd\"\nsummary = \"*\"\nset_stack_tag = \"sxhkd\"\nformat = \"<b>%s</b>\\n%b\"\n\n[layouts]\nappname = \"layouts\"\nsummary = \"*\"\nset_stack_tag = \"layouts\"\nformat = \"<b>%s</b>\\n%b\"\n\n[bspwm]\nappname = \"bspwm\"\nsummary = \"*\"\nset_stack_tag = \"bspwm\"\nformat = \"<b>%s</b>\\n%b\"\n\n[todo]\nappname = \"todo\"\nsummary = \"*\"\nset_stack_tag = \"todo\"\nformat = \"<b>%s</b>\\n%b\"\nnew_icon = custom-to-do\nbackground = \"#161b20\"\nforeground = \"#c397d8\"\n\n[picom]\nappname = \"picom\"\nsummary = \"*\"\nset_stack_tag = \"picom\"\nformat = \"<b>%s</b>\\n%b\"\n\n[spotify]\nappname = \"spotify\"\nsummary = \"*\"\nset_stack_tag = \"spotify\"\nformat = \"<span size='x-large' font_desc='Cooper Hewitt 12' weight='bold' foreground='#79dcaa'>%s</span>\\n%b\"\n\n[mpd]\nappname = \"mpd\"\nsummary = \"*\"\nset_stack_tag = \"mpd\"\nformat = \"<span size='x-large' font_desc='Cooper Hewitt 12' weight='bold' foreground='#c397d8'>%s</span>\\n%b\"\n\n[firefox]\nappname = firefox\nnew_icon = firefox-default\n\n[network]\nappname = network\nnew_icon = network\nsummary = \"*\"\nformat = \"<span size='x-large' weight='bold'>%s</span>\\n<span font_desc='Cooper Hewitt,Iosevka Nerd Font 12'>%b</span>\"\n\n# vim:filetype=dosini\n```\n\n</details>\n\n<details>\n<summary>A sample <code>eww.yuck</code> configuration.</summary>\n\n```lisp\n(include \"./src/yuck/_env.yuck\")\n(include \"./src/yuck/_lib.yuck\")\n\n;; (include \"./src/yuck/vertigo/_init.yuck\")\n;; (include \"./src/yuck/disclose/_init.yuck\")\n;; (include \"./src/yuck/avatar/_init.yuck\")\n;; (include \"./src/yuck/melody/_init.yuck\")\n;; (include \"./src/yuck/lumin/_init.yuck\")\n;; (include \"./src/yuck/origin/_init.yuck\")\n;; (include \"./src/yuck/ocular/_init.yuck\")\n;; (include \"./src/yuck/clime/_init.yuck\")\n;; (include \"./src/yuck/power/_init.yuck\")\n;; (include \"./src/yuck/chrono/_init.yuck\")\n;; (include \"./src/yuck/bolt/_init.yuck\")\n\n; vim:filetype=yuck\n```\n\n</details>\n\n<details>\n<summary>A sample <code>ewwrc</code> configuration.</summary>\n\n```json\n{\n  \"player\": {\n    \"mpd_cache\": \"$XDG_CACHE_HOME/eww/mpd\",\n    \"pctl_cache\": \"$XDG_CACHE_HOME/eww/pctl\",\n    \"default_art\": \"$XDG_CONFIG_HOME/eww/assets/cover.png\"\n  },\n  \"desktops\": {\n    \"states\": {\n      \"focused\": \"北\",\n      \"occupied\": \"\",\n      \"urgent\": \"梅\",\n      \"empty\": \"\"\n    },\n    \"tags\": {\n      \"hidden\": \"\",\n      \"sticky\": \"\",\n      \"private\": \"\",\n      \"locked\": \"\",\n      \"marked\": \"\",\n      \"empty\": \"\"\n    },\n    \"layouts\": {\n      \"monocle\": \"\",\n      \"tiled\": \"\",\n      \"fullscreen\": \"\",\n      \"pseudo_tiled\": \"\",\n      \"floating\": \"\",\n      \"empty\": \"\"\n    }\n  },\n  \"network\": {\n    \"interface\": \"CURRENTLY_NOT_IN_USE\"\n  },\n  \"notify\": {\n    \"limit\": 50,\n    \"interval\": 0.5,\n    \"cache_path\": \"$XDG_CACHE_HOME/eww/dunst/notifications.txt\",\n    \"quote_path\": \"$XDG_CACHE_HOME/eww/dunst/quotes.txt\",\n    \"default_quote\": \"To fake it is to stand guard over emptiness. ── Arthur Herzog\",\n    \"timestamp\": \"%H:%M\",\n    \"excluded_appnames\": null\n  },\n  \"location\": {\n    \"method\": \"automatic\",\n    \"cache_dir\": \"$XDG_CACHE_HOME/eww/location\",\n    \"latitude\": null,\n    \"longitude\": null,\n    \"city\": null,\n    \"country_code\": null,\n    \"lang\": null,\n    \"zip\": null\n  },\n  \"tokens\": {\n    \"openweather\": \"641f54ef8b6cc337c7ea7e6d3881730d\",\n    \"gmail\": \"CURRENTLY_NOT_IN_USE\"\n  },\n  \"weather\": {\n    \"units\": \"metric\",\n    \"cache_dir\": \"$XDG_CACHE_HOME/eww/weather\",\n    \"icons\": {\n      \"01d\": \"\",\n      \"02d\": \"\",\n      \"03d\": \"\",\n      \"04d\": \"\",\n      \"09d\": \"\",\n      \"10d\": \"\",\n      \"11d\": \"\",\n      \"13d\": \"\",\n      \"50d\": \"\",\n      \"01n\": \"\",\n      \"02n\": \"\",\n      \"03n\": \"\",\n      \"04n\": \"\",\n      \"09n\": \"\",\n      \"10n\": \"\",\n      \"11n\": \"\",\n      \"13n\": \"\",\n      \"50n\": \"\",\n      \"default\": \"\"\n    },\n    \"images\": {\n      \"01d\": \"$XDG_CONFIG_HOME/eww/assets/01.jpg\",\n      \"02d\": \"$XDG_CONFIG_HOME/eww/assets/02.jpg\",\n      \"03d\": \"$XDG_CONFIG_HOME/eww/assets/03.jpg\",\n      \"04d\": \"$XDG_CONFIG_HOME/eww/assets/04.jpg\",\n      \"09d\": \"$XDG_CONFIG_HOME/eww/assets/09.jpg\",\n      \"10d\": \"$XDG_CONFIG_HOME/eww/assets/10.jpg\",\n      \"11d\": \"$XDG_CONFIG_HOME/eww/assets/11.jpg\",\n      \"13d\": \"$XDG_CONFIG_HOME/eww/assets/13.jpg\",\n      \"50d\": \"$XDG_CONFIG_HOME/eww/assets/50.jpg\",\n      \"01n\": \"$XDG_CONFIG_HOME/eww/assets/01.jpg\",\n      \"02n\": \"$XDG_CONFIG_HOME/eww/assets/02.jpg\",\n      \"03n\": \"$XDG_CONFIG_HOME/eww/assets/03.jpg\",\n      \"04n\": \"$XDG_CONFIG_HOME/eww/assets/04.jpg\",\n      \"09n\": \"$XDG_CONFIG_HOME/eww/assets/09.jpg\",\n      \"10n\": \"$XDG_CONFIG_HOME/eww/assets/10.jpg\",\n      \"11n\": \"$XDG_CONFIG_HOME/eww/assets/11.jpg\",\n      \"13n\": \"$XDG_CONFIG_HOME/eww/assets/13.jpg\",\n      \"50n\": \"$XDG_CONFIG_HOME/eww/assets/50.jpg\",\n      \"default\": \"$XDG_CONFIG_HOME/eww/assets/01.jpg\"\n    }\n  },\n  \"covid\": {\n    \"cache_dir\": \"$XDG_CACHE_HOME/eww/covid\",\n    \"icons\": {\n      \"country\": \"\",\n      \"confirmed\": \"\",\n      \"deaths\": \"\"\n    }\n  },\n  \"pollution\": {\n    \"cache_dir\": \"$XDG_CACHE_HOME/eww/pollution\",\n    \"icons\": {\n      \"good\": \"\",\n      \"fair\": \"\",\n      \"moderate\": \"\",\n      \"poor\": \"\",\n      \"very_poor\": \"\"\n    }\n  },\n  \"github\": {\n    \"cache_dir\": \"$XDG_CACHE_HOME/eww/github\",\n    \"username\": \"dharmx\"\n  },\n  \"layouts\": [\n    {\n      \"label\": \"tiled\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"monocle\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"even\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"grid\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"rgrid\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"rtall\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"rwide\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"tall\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    },\n    {\n      \"label\": \"wide\",\n      \"icon\": \"\",\n      \"command\": \"\"\n    }\n  ]\n}\n```\n\n</details>\n\n<details>\n<summary>A sample <code>_override.scss</code> configuration.</summary>\n\n```scss\n// exclude eww-vertigo in picom shadows exclude section\n// this is an example to override the default vertigo style\n// and make the bar transparent. Enjoy.\n\n// .vertigo-layout-box {\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-node-button-tiled { color: $base14; }\n// .vertigo-node-button-monocle { color: $base11; }\n// .vertigo-node-button-float { color: $base13; }\n// .vertigo-node-button-pseudo { color: $base15; }\n// .vertigo-node-button-full { color: $base09; }\n// .vertigo-node-button-other { color: $base08; }\n// .vertigo-node-button:hover { opacity: 0.8; }\n\n// .vertigo-node-button-tiled,\n// .vertigo-node-button-monocle,\n// .vertigo-node-button-float,\n// .vertigo-node-button-pseudo,\n// .vertigo-node-button-full,\n// .vertigo-node-button-other {\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-battery-button {\n//   background-color: rgb(0, 0, 0, 0.0);\n//   color: $base11;\n// }\n\n// .vertigo-time-button {\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-volume-on { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-volume-off { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-volume-on:hover { background-color: $base13; }\n// .vertigo-volume-off:hover { background-color: $base11; }\n\n// .vertigo-nightmode-on { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-nightmode-off { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-nightmode-on:hover { background-color: $base09; color: $shade01; }\n// .vertigo-nightmode-off:hover { background-color: $base13; color: $shade01; }\n\n// .vertigo-notify-on { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-notify-off { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-notify-on:hover { background-color: $base15; color: $base02; }\n// .vertigo-notify-off:hover { background-color: $base11; color: $base02; }\n\n// .vertigo-todo-button { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-todo-button:hover { background-color: $base07; color: $base01; }\n// .vertigo-workspace-plus-button { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-plus-button:hover { background-color: $base11; color: $base02; }\n\n// .vertigo-time-button:hover { background-color: rgb(0, 0, 0, 0.0); }\n\n// .vertigo-separator {\n//   opacity: 0.0;\n// }\n\n// .vertigo-search-button {\n//   color: $base09;\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-search-button:hover { background-color: rgb(0, 0, 0, 0.0); color: $base07; }\n// .vertigo-workspace { background-color: rgb(0, 0, 0, 0.0); }\n\n// .vertigo-workspace:hover { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-focused {\n//   background-color: rgb(0, 0, 0, 0.0);\n//   border-right-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-workspace-occupied:hover { border-left-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-urgent:hover { border-left-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-local:hover { border-left-color: rgb(0, 0, 0, 0.0); }\n\n// vim:ft=scss\n```\n\n![transparent vertigo](./screenie/trans-vertigo.png)\n</details>\n\n<div align=\"center\">\n\n# ⚠  UNDER CONSTRUCTION ⚠\n\n<div>\n"
  },
  {
    "path": ".github/workflows/stale.yml",
    "content": "# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.\n#\n# You can adjust the behavior by modifying this file.\n# For more information, see:\n# https://github.com/actions/stale\nname: Mark stale issues and pull requests\n\non:\n  schedule:\n  - cron: '44 19 * * *'\n\njobs:\n  stale:\n\n    runs-on: ubuntu-latest\n    permissions:\n      issues: write\n      pull-requests: write\n\n    steps:\n    - uses: actions/stale@v5\n      with:\n        repo-token: ${{ secrets.GITHUB_TOKEN }}\n        stale-issue-message: 'Stale issue message'\n        stale-pr-message: 'Stale pull request message'\n        stale-issue-label: 'no-issue-activity'\n        stale-pr-label: 'no-pr-activity'\n        days-before-stale: 14\n"
  },
  {
    "path": ".gitignore",
    "content": "**/.*-env\nsrc/shell/__pycache__/\n.venv/\n.config.json\nconfig.json\newwrc\n.ewwrc\nthemes/auto.scss\neww.yuck\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "eww.scss",
    "content": "@import \"themes/radium\";\n@import \"src/scss/base\";\n\n@import \"src/scss/avatar/init\";\n@import \"src/scss/disclose/init\";\n@import \"src/scss/vertigo/init\";\n@import \"src/scss/ocular/init\";\n@import \"src/scss/lumin/init\";\n@import \"src/scss/melody/init\";\n@import \"src/scss/origin/init\";\n@import \"src/scss/horizon/init\";\n@import \"src/scss/clime/init\";\n@import \"src/scss/power/init\";\n@import \"src/scss/chrono/init\";\n@import \"src/scss/bolt/init\";\n\n@import \"src/scss/override\";\n"
  },
  {
    "path": "requirements.txt",
    "content": "dbus-python==1.2.18\nPyGObject==3.42.2\npython-mpd2==3.0.5\nrequests==2.32.4\nWand==0.6.8\n"
  },
  {
    "path": "src/scss/_base.scss",
    "content": "* {\n  all: unset;\n  transition: 200ms ease-out;\n}\n\ntooltip {\n  font-family: Phosphor, Dosis;\n  background-color: $base15;\n  color: $base01;\n  font-size: 14px;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/avatar/_init.scss",
    "content": ".avatar-layout-box {\n  font-family: Phosphor, Dosis, \"Iosevka Nerd Font\", sans-serif;\n  background-color: $shade10;\n  padding: 0.5em;\n}\n\n.avatar-headers-label {\n  color: $base05;\n}\n\n.avatar-headers-close {\n  color: $base11;\n}\n\n.avatar-headers-close:hover {\n  color: $base09;\n}\n\n.avatar-headers {\n  padding: 1.2em 1.5em 0.8em 1.5em;\n  font-size: 25;\n  font-family: Phosphor, \"Caviar Dreams\";\n}\n\n.avatar-box-inner:last-child {\n  margin-bottom: 0.6em;\n}\n\n@import \"mpd\";\n@import \"pctl\";\n@import \"userinfo\";\n@import \"quick\";\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/avatar/_mpd.scss",
    "content": ".avatar-mpd-box {\n  font-family: Phosphor, Dosis, \"Iosevka Nerd Font\", sans-serif;\n  border-radius: 1em;\n  background-repeat: no-repeat;\n  background-size: contain;\n  background-position: right;\n  padding: 1.5em;\n}\n\n.avatar-mpd-icon {\n  font-size: 30;\n  margin-right: 0.6em;\n}\n\n.avatar-mpd-icon,\n.avatar-mpd-name { font-weight: 500; }\n\n.avatar-mpd-separator {\n  font-size: 15;\n  padding: 0 0.5em 0 0.5em; \n}\n\n.avatar-mpd-artist,\n.avatar-mpd-title { font-size: 20; }\n.avatar-mpd-title { font-weight: bold; }\n.avatar-mpd-controls { font-size: 25; }\n\n.avatar-mpd-button-playback:hover { color: $base10; }\n.avatar-mpd-button-prev:hover { color: $base09; }\n.avatar-mpd-button-next:hover { color: $base09; }\n\n.avatar-mpd-button-like {\n  padding-left: 0.5em;\n  font-size: 30;\n}\n\n.avatar-mpd-button-like:hover { color: $base11; }\n.avatar-mpd-minimal { font-size: 20; }\n.avatar-mpd-footer { font-size: 17; }\n\n.avatar-mpd-progress {\n  trough {\n    background-color: darken($base05, 25%);\n    min-height: 0.3em;\n    border-radius: 0.2em;\n\n    highlight {\n      background-color: lighten($base05, 15%);\n      border-radius: 0.2em;\n    }\n\n    slider {\n      background: lighten($base05, 25%);\n      border-radius: 100%;\n      margin: -8px;\n    }\n  }\n}\n\n.avatar-mpd-button-playback {\n  font-size: 50;\n}\n\n.ava-mpdx-box {\n  background-color: $shade09;\n  font-family: Phosphor, Dosis, sans-serif;\n  border-radius: 0.5em;\n  font-size: 30;\n  padding: 1em;\n}\n\n.ava-mpdx-btn {\n  background-color: $shade05;\n  color: $base04;\n  border-radius: 2em;\n  padding: 1.3em;\n\n  &:hover {\n    background-color: $shade03;\n  }\n}\n\n.ava-mpdx-btn:active {\n  background-color: $shade00;\n}\n\n.ava-mpdx-random-on:hover,\n.ava-mpdx-consume-on:hover,\n.ava-mpdx-single-on:hover,\n.ava-mpdx-xfade-on:hover,\n.ava-mpdx-repeat-on:hover {\n  background-color: $shade05;\n  color: $base04;\n}\n\n.ava-mpdx-xfade-off,\n.ava-mpdx-repeat-off,\n.ava-mpdx-random-off,\n.ava-mpdx-single-off,\n.ava-mpdx-consume-off {\n  background-color: $shade05;\n}\n\n.ava-mpdx-xfade-off {\n  color: $base15;\n}\n\n.ava-mpdx-repeat-off {\n  color: $base13;\n}\n\n.ava-mpdx-random-off {\n  color: $base11;\n}\n\n.ava-mpdx-single-off {\n  color: $base14;\n}\n\n.ava-mpdx-consume-off {\n  color: $base08;\n}\n\n.ava-mpdx-btn-shuffle {\n  color: $base07;\n}\n\n.ava-mpdx-random-on {\n  background-color: $base11;\n  color: $base02;\n}\n\n.ava-mpdx-consume-on {\n  background-color: $base08;\n  color: $base02;\n}\n\n.ava-mpdx-single-on {\n  background-color: $base14;\n  color: $base02;\n}\n\n.ava-mpdx-xfade-on {\n  background-color: $base15;\n  color: $base02;\n}\n\n.ava-mpdx-repeat-on {\n  background-color: $base13;\n  color: $base02;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/avatar/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/avatar/_pctl.scss",
    "content": ".avatar-pctl-box {\n  font-family: Phosphor, Dosis, \"Iosevka Nerd Font\", sans-serif;\n  border-radius: 1em;\n  background-repeat: no-repeat;\n  background-size: contain;\n  background-position: right;\n  padding: 1.5em;\n  color: $base05;\n}\n\n.avatar-pctl-icon {\n  font-size: 30;\n  margin-right: 0.6em;\n}\n\n.avatar-pctl-icon,\n.avatar-pctl-name { font-weight: 500; }\n\n.avatar-pctl-separator {\n  font-size: 15;\n  padding: 0 0.5em 0 0.5em;\n}\n\n.avatar-pctl-artist,\n.avatar-pctl-title { font-size: 20; }\n.avatar-pctl-title { font-weight: bold; }\n.avatar-pctl-controls { font-size: 30; }\n\n.avatar-pctl-button-playback {\n  font-size: 50;\n}\n\n.avatar-pctl-button-playback:hover { color: $base10; }\n.avatar-pctl-button-prev:hover { color: $base09; }\n.avatar-pctl-button-next:hover { color: $base09; }\n.avatar-pctl-minimal { font-size: 20; }\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/avatar/_quick.scss",
    "content": ".ava-quick-box {\n  font-family: Phosphor, monoMMM_5;\n  background-color: $shade09;\n  font-size: 15;\n  border-radius: 1em;\n  padding: 1.5em;\n}\n\n.ava-main-label {\n  color: $base15;\n}\n\n.ava-quick-vol {\n  trough {\n    background-color: $base02;\n    min-height: 0.3em;\n    border-radius: 3em;\n\n    highlight {\n      padding: 2.5em;\n      background-color: $base11;\n      border-radius: 3em;\n    }\n  }\n}\n\n.ava-quick-mic {\n  trough {\n    background-color: $base02;\n    min-height: 0.3em;\n    border-radius: 3em;\n\n    highlight {\n      padding: 2.5em;\n      background-color: $base09;\n      border-radius: 3em;\n    }\n  }\n}\n\n.ava-btn-mi,\n.ava-btn-all,\n.ava-btn-au {\n  background-color: $shade03;\n  border-radius: 2em;\n  padding: 4em;\n  label {\n    font-size: 50;\n  }\n}\n\n.ava-mpd-ebox {\n  background-color: $shade03;\n  border-radius: 2em;\n  padding: 4em;\n  label {\n    font-size: 50;\n  }\n}\n\n.ava-btn-mi {\n  label {\n    color: $base11;\n  }\n}\n\n.ava-btn-au {\n  label {\n    color: $base14;\n  }\n}\n\n.ava-btn-all {\n  label {\n    color: $base15;\n  }\n}\n\n.ava-btn-au:hover,\n.ava-btn-all:hover,\n.ava-btn-mi:hover,\n.ava-mpd-ebox:hover {\n  background-color: $shade02;\n}\n\n.ava-mpd-radial {\n  margin: 1.2em;\n  color: $base09;\n  background-color: $shade02;\n  label {\n    color: $base09;\n    background-color: $shade01;\n    padding: 0.8em;\n  }\n}\n\n.ava-au-btn-box,\n.ava-mi-btn-box,\n.ava-all-btn-box,\n.ava-mp-btn-box {\n  background-color: $shade07;\n  border-radius: 2em;\n  padding-bottom: 1.2em;\n}\n\n.ava-au-head,\n.ava-all-head,\n.ava-mi-head,\n.ava-mp-head {\n  padding: 1em 0 1em 1.5em;\n  color: $base04;\n}\n\n.ava-mi-scale-lbl,\n.ava-au-scale-lbl {\n  font-size: 20;\n  font-weight: bold;\n  border-radius: 4em;\n  font-family: Dosis;\n  padding: 0 1.4em 0 1.4em;\n}\n\n.ava-mi-scale-lbl {\n  color: $base02;\n  background-color: $base09;\n}\n\n.ava-au-scale-lbl {\n  color: $base02;\n  background-color: $base11;\n}\n\n.ava-sep {\n  font-size: 5;\n  border-radius: 1em;\n  background-color: $base03;\n}\n\n// vim:filetype=scss\n"
  },
  {
    "path": "src/scss/avatar/_userinfo.scss",
    "content": ".avatar-profile-user-box {\n  background: linear-gradient(45deg, rgba(16, 19, 23, 1.0) 20%, $base01 100%);\n  padding: 2em 2.5em 0 2.5em;\n  margin: 2em;\n  border-radius: 0.5em;\n  box-shadow: 1px 1px 3px 2px $shade09;\n}\n\n.avatar-profile-username {\n  color: $base09;\n  font-size: 25;\n  font-weight: bold;\n  padding-top: 0.5em;\n}\n\n.avatar-profile-hostname {\n  color: $base11;\n  padding-top: 0.2em;\n}\n\n.avatar-icon { padding-right: 0.7em; }\n.avatar-quick-settings {\n  padding: 1em;\n  margin-top: 3em;\n  color: $base04;\n}\n\n.avatar-profile-bluetooth-on .avatar-icon { color: $base14; }\n.avatar-profile-bluetooth-off .avatar-icon { color: $base11; }\n\n.avatar-icon-connected { color: $base14; }\n.avatar-icon-disconnected { color: $base11; }\n.avatar-icon-connecting { color: $base13; }\n.avatar-icon-unavailable { color: $base03; }\n.avatar-icon-unmanaged { color: $base09; }\n.avatar-icon-deactivating { color: $base10; }\n.avatar-icon-using { color: $base12; }\n\n.avatar-updates-has .avatar-icon { color: $base13; }\n.avatar-updates-none .avatar-icon { color: $base14; }\n\n.avatar-box-inner { padding: 1em; }\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/bolt/_init.scss",
    "content": ".bolt-layout-box {\n  font-family: Phosphor, Dosis;\n  background-color: $shade08;\n  color: $base05;\n  padding: 2em;\n  border-radius: 0.5em;\n  color: $base05;\n}\n\n.bolt-date-box {\n  padding: 1.5em 2em 1.6em 1.5em;\n  background-image: linear-gradient(100deg, $shade05, $shade06);\n  border-radius: 0.5em;\n}\n\n.bolt-date-pretty {\n  font-size: 16;\n  color: $base04;\n}\n\n.bolt-date-day {\n  font-size: 23;\n}\n\n.bolt-bat-overlay {\n  color: $base03;\n}\n\n.bolt-bat-prog {\n  border-radius: 0.5em;\n  trough {\n    padding: 3em 0 3em 0;\n    background-color: $low;\n    border-radius: 0.5em;\n\n    progress {\n      padding: 3em 1em 3em 1em;\n      background-color: rgba(darken($base14, 10%), 0.8);\n      border-radius: 0.5em;\n    }\n  }\n}\n\n.bolt-bat-label {\n  font-size: 16;\n  padding-left: 1em;\n}\n\n.bolt-bat-status-label {\n  font-size: 20;\n  font-weight: bold;\n  padding-left: 0.8em;\n}\n\n.bolt-bat-icon {\n  padding-right: 1em;\n  font-size: 30;\n}\n\n.bolt-bat-full {\n  trough {\n    background-color: $low;\n    progress {\n      background-color: rgba(darken($base14, 10%), 0.8);\n    }\n  }\n}\n\n.bolt-bat-norm {\n  trough {\n    background-color: $normal;\n    progress {\n      background-color: rgba(darken($base09, 10%), 0.8);\n    }\n  }\n}\n\n.bolt-bat-warn {\n  trough {\n    background-color: $other;\n    progress {\n      background-color: rgba(darken($base13, 10%), 0.8);\n    }\n  }\n}\n\n.bolt-bat-crit {\n  trough {\n    background-color: $critical;\n    progress {\n      background-color: rgba(darken($base11, 10%), 0.8);\n    }\n  }\n}\n\n.bolt-pctl-box {\n  background-repeat: no-repeat;\n  background-size: contain;\n  background-position: right;\n  padding: 1em;\n  border-radius: 0.5em;\n}\n\n.bolt-pctl-label {\n  font-size: 16;\n  color: $base04;\n}\n\n.bolt-pctl-title {\n  font-size: 20;\n  font-weight: bold;\n  color: $base05;\n}\n\n.bolt-pctl-artist {\n  font-size: 16;\n  color: $base04;\n}\n\n.bolt-pctl-volume-icon {\n  font-size: 25;\n}\n\n.bolt-pctl-volume-label {\n  font-size: 18;\n  padding-top: 0.25em;\n}\n\n.bolt-pctl-status {\n  font-size: 30;\n}\n\n.bolt-pctl-status:hover {\n  color: $base15;\n}\n\n.bolt-uptime-box {\n  background-color: $shade05;\n  padding: 1.2em;\n  border-radius: 0.5em;\n}\n\n.bolt-uptime-label {\n  color: $base04;\n  font-size: 16;\n}\n\n.bolt-uptime-value {\n  font-size: 18;\n  color: $base05;\n}\n\n.bolt-uptime-hl {\n  background-color: $base09;\n  font-size: 1;\n  padding: 2em;\n  margin-top: 4em;\n  margin-bottom: 4em;\n  border-radius: 0.1rem;\n}\n\n.bolt-wifi-box {\n  background-color: $shade05;\n  padding: 1.2em;\n  border-radius: 0.5em;\n}\n\n.bolt-wifi-label {\n  font-size: 16;\n  color: $base04;\n}\n\n.bolt-wifi-ssid {\n  font-size: 18;\n  color: $base05;\n}\n\n.bolt-wifi-icon {\n  font-size: 25;\n  background-color: $shade08;\n  padding: 0.8em;\n  border-radius: 0.2em;\n  color: $base09;\n}\n\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/bolt/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/chrono/_init.scss",
    "content": ".chrono-layout-box {\n  font-family: Phosphor, \"Caviar Dreams\";\n  background-color: $shade10;\n  padding-top: 0.7em;\n  font-size: 16;\n}\n\n.chrono-layout-box:last-child {\n  padding-bottom: 1em;\n}\n\n.chrono-weather-box {\n  padding: 0 2.8em 0 2.8em;\n  background-size: 120%;\n  background-repeat: no-repeat;\n  border-radius: 0.5em;\n  background-blend-mode: exclusion;\n}\n\n.chrono-weather-glyph {\n  font-size: 120;\n  padding-top: 0.2em;\n}\n\n.chrono-weather-main {\n  font-size: 35;\n  font-weight: bold;\n  font-family: \"Caviar Dreams\";\n}\n\n.chrono-sundial-prefix,\n.chrono-sundial-label {\n  padding: 0;\n  margin: 0;\n  font-size: 15;\n  font-family: Phosphor, \"Caviar Dreams\";\n  font-weight: 500;\n}\n\n.chrono-weather-info-box {\n  border-radius: 0.5em;\n  opacity: 0.8;\n  font-size: 15;\n}\n\n.chrono-sundial-prefix,\n.chrono-weather-min-icon,\n.chrono-weather-pressure-icon,\n.chrono-weather-location-icon,\n.chrono-weather-max-icon,\n.chrono-weather-humid-icon {\n  padding-bottom: 0.1em;\n  font-size: 20;\n}\n\n.chrono-weather-temp-feels {\n  padding-top: 1em;\n}\n\n.chrono-weather-feels {\n  font-size: 17;\n}\n\n.chrono-sundial-prefix {\n  color: darken($base15, 30%);\n}\n\n.chrono-weather-max-icon {\n  color: $base11;\n}\n\n.chrono-weather-min-icon {\n  color: darken($base09, 20%);\n}\n\n.chrono-weather-location-icon {\n  color: darken($base07, 20%);\n}\n\n.chrono-weather-pressure-icon {\n  color: lighten($base13, 10%);\n}\n\n.chrono-sundial-label,\n.chrono-weather-min-label,\n.chrono-weather-location-label,\n.chrono-weather-pressure-label,\n.chrono-weather-max-label {\n  font-weight: bold;\n}\n\n.chrono-weather-temp {\n  font-size: 100;\n  font-weight: bold;\n}\n\n.chrono-calen-box {\n  font-size: 16;\n  background-image: linear-gradient(100deg, $shade02, $shade06);\n  color: $base05;\n  padding: 3em 0 0 0;\n  border-radius: 0.5em;\n}\n\n.chrono-calen-label {\n  font-weight: bold;\n  font-family: \"Caviar Dreams\";\n}\n\n.chrono-calen {\n  font-family: Dosis;\n  font-weight: bold;\n  padding: 1.3em 0.5em 0;\n\n  &:selected {\n    color: $base15;\n    font-weight: bolder;\n    border-radius: 50%;\n  }\n\n  &:indeterminate {\n    color: rgba($shade03, 0.3);\n  }\n}\n\n.chrono-calen.button {\n  color: $shade00;\n}\n\n.chrono-calen.highlight {\n  color: $base09;\n  font-weight: bold;\n}\n\n.chrono-time-box {\n  background-image: linear-gradient(100deg, $shade02, $shade06);\n  border-radius: 0.5em;\n  padding: 2.5em 1.5em 2.5em 1.5em;\n  color: $base05;\n}\n\n.chrono-time-label {\n  font-size: 70;\n  font-weight: bolder;\n  color: $base09;\n  font-family: Modum;\n}\n\n.chrono-prog {\n  background-color: $shade00;\n  color: darken($base09, 5%);\n}\n\n.chrono-prog label {\n  padding: 1em;\n  background-color: $shade02;\n  color: $base05;\n  font-weight: bold;\n  font-size: 25;\n  font-family: Iosevka;\n}\n\n.chrono-prog-minute label {\n  padding: 1.55em;\n}\n\n.chrono-prog-minute {\n  background-color: $shade04;\n  color: $base09;\n}\n\n.chrono-sep {\n  background-color: $shade00;\n  padding-left: 0.25em;\n  border-radius: 0.5em;\n}\n\n.chrono-uptime-label {\n  font-size: 18;\n  font-family: Modum;\n}\n\n.chrono-weather-extra {\n  font-family: Phosphor, Dosis;\n  background-image: linear-gradient(100deg, $shade02, $shade06);\n  border-radius: 0.5em;\n  padding: 2em 0 2em 0;\n  font-size: 16;\n  color: $base05\n}\n\n.chrono-weather-extra-header {\n  color: $base15;\n  font-size: 20;\n  font-weight: bold;\n}\n\n.chrono-weather-extra-description {\n  font-size: 12;\n}\n\n.chrono-weather-humid-text,\n.chrono-weather-visible-text,\n.chrono-weather-wind-text,\n.chrono-weather-cloud-text {\n  color: $base09;\n  font-weight: bold;\n}\n\n.chrono-weather-humid-label,\n.chrono-weather-visible-label,\n.chrono-weather-wind-label,\n.chrono-weather-cloud-label {\n  color: $base04;\n}\n\n.chrono-weather-humid-icon,\n.chrono-weather-visible-icon,\n.chrono-weather-wind-icon,\n.chrono-weather-cloud-icon {\n  font-size: 20;\n}\n\n.chrono-headers-label {\n  color: $base05;\n}\n\n.chrono-headers-close {\n  color: $base11;\n}\n\n.chrono-headers-close:hover {\n  color: $base09;\n}\n\n.chrono-headers {\n  padding: 1em 1.5em 0.5em 1.5em;\n  font-size: 25;\n}\n\n.chrono-air-box {\n  background-image: linear-gradient(100deg, $shade02, $shade06);\n  border-radius: 0.5em;\n  font-family: Phosphor, Dosis;\n  padding: 1.5em;\n  padding-bottom: 2em;\n}\n\n.chrono-aqi-box {\n  padding: 1em;\n}\n\n.chrono-aqi-radial label {\n  padding: 1em;\n  font-size: 40;\n  background-color: $shade05;\n}\n\n.chrono-aqi-radial {\n  background-color: $shade01;\n}\n\n.chrono-air-radial-1 {\n  color: $base14;\n}\n\n.chrono-air-radial-2 {\n  color: $base09;\n}\n\n.chrono-air-radial-3 {\n  color: $base13;\n}\n\n.chrono-air-radial-4 {\n  color: lighten($base11, 0.5);\n}\n\n.chrono-air-radial-5 {\n  color: $base11;\n}\n\n.chrono-aqi-inner {\n  font-size: 20;\n  border-radius: 0.3em;\n  padding: 2em;\n}\n\n.chrono-aqi-inner-1 {\n  background-image: linear-gradient(100deg, $shade01, rgba($base14, 0.5));\n}\n\n.chrono-aqi-inner-2 {\n  background-image: linear-gradient(100deg, $shade01, rgba($base09, 0.5));\n}\n\n.chrono-aqi-inner-3 {\n  background-image: linear-gradient(100deg, $shade01, rgba($base13, 0.5));\n}\n\n.chrono-aqi-inner-4 {\n  background-image: linear-gradient(100deg, $shade01, rgba(lighten($base11, 10%), 0.5));\n}\n\n.chrono-aqi-inner-5 {\n  background-image: linear-gradient(100deg, $shade01, rgba($base11, 0.5));\n}\n\n.chrono-air-aqi-label {\n  color: $base15;\n  font-weight: bold;\n}\n\n.chrono-air-aqi-quality {\n  font-size: 16;\n  color: $base05;\n}\n\n.chrono-air-separator {\n  background-color: $shade00;\n  padding-left: 0.18em;\n  font-size: 5;\n  border-radius: 0.5em;\n}\n\n.chrono-info-label {\n  color: $base15;\n  font-weight: bold;\n  font-size: 20;\n}\n\n.chrono-air-co-box,\n.chrono-air-o3-box,\n.chrono-air-no-box,\n.chrono-air-no2-box,\n.chrono-air-so2-box,\n.chrono-air-pm2_5-box,\n.chrono-air-pm10-box,\n.chrono-air-nh3-box {\n  font-size: 16;\n}\n\n.chrono-air-co-label,\n.chrono-air-o3-label,\n.chrono-air-no-label,\n.chrono-air-no2-label,\n.chrono-air-so2-label,\n.chrono-air-pm2_5-label,\n.chrono-air-pm10-label,\n.chrono-air-nh3-label {\n  color: $base09;\n  font-weight: bold;\n}\n\n.chrono-air-co-value,\n.chrono-air-o3-value,\n.chrono-air-no-value,\n.chrono-air-no2-value,\n.chrono-air-so2-value,\n.chrono-air-pm2_5-value,\n.chrono-air-pm10-value,\n.chrono-air-nh3-value {\n  color: $base04;\n}\n\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/chrono/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/clime/_init.scss",
    "content": ".clime-layout-box {\n  font-family: \"Caviar Dreams\", Phosphor;\n  font-size: 17;\n  opacity: 0.8;\n}\n\n.clime-img {\n  font-size: 80;\n  padding-left: 0.2em;\n  color: $base04;\n}\n\n.clime-temp {\n  font-size: 60;\n  font-family: Sagetarius;\n  font-weight: bold;\n}\n\n.clime-city {\n  margin-bottom: 0.5em;\n}\n\n.clime-category,\n.clime-max, \n.clime-min {\n  font-weight: bold;\n}\n\n@import \"override\";\n\n// vim:filetype=scss\n"
  },
  {
    "path": "src/scss/clime/_override.scss",
    "content": ""
  },
  {
    "path": "src/scss/disclose/_cardimage.scss",
    "content": ".disclose-cardimage-eventbox {\n  background: linear-gradient(45deg, $base02 20%, $base01 100%);\n  border-radius: 0.5em;\n}\n\n.disclose-cardimage-eventbox:hover {\n  background: linear-gradient(170deg, $base01 20%, $shade01 100%);\n}\n\n.disclose-cardimage-icon {\n  margin: 0 0 0 -0.21em;\n  background-size: cover;\n  background-repeat: no-repeat;\n  border-radius: 50%;\n}\n\n.disclose-cardimage-image-box {\n  padding: 0 1em 0 1em;\n}\n\n.disclose-cardimage-image {\n  background-size: cover;\n  background-repeat: no-repeat;\n  box-shadow: -0.4px -0.3px 4px 4px $shade08;\n  border-radius: 50%;\n  border: 0.25em solid $base09;\n}\n\n.disclose-cardimage-separator {\n  background-color: $shade02;\n  font-size: 1;\n  padding: 3.4em 0 0 0;\n  margin: 0 10em 0 10em;\n}\n\n.disclose-cardimage-body-box {\n  font-size: 15;\n  padding: 1em 0 1em 0;\n}\n\n.disclose-cardimage-summary-box {\n  padding: 0.5em 0 0.5em 0.9em;\n  background-color: darken($base09, 10%);\n  border-radius: 0.3em 0.3em 0 0;\n  color: $base02;\n}\n\n.disclose-cardimage-appname-label {\n  font-size: 16;\n  font-weight: bold;\n}\n\n.disclose-cardimage-close-button {\n  margin: 0.6em 1em 0.6em 0;\n  padding: 0.2em;\n  background-color: $base11;\n  color: $base01;\n  border-radius: 50%;\n  box-shadow: -0.4px -0.3px 4px -1.8px $shade09;\n}\n\n.disclose-cardimage-close-button:hover {\n  background-color: $base01;\n  color: $base11;\n}\n\n.disclose-cardimage-body-outer {\n  padding: 0 1em 0 0;\n}\n\n.disclose-cardimage-summary-label {\n  font-size: 20;\n  font-weight: bold;\n  color: $base05;\n}\n\n.disclose-cardimage-body-label {\n  font-size: 16;\n  color: $base05;\n}\n\n.disclose-cardimage-timestamp {\n  color: $base10;\n  font-weight: bold;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_cardprog.scss",
    "content": ".disclose-cardprog-eventbox {\n  background: linear-gradient(45deg, $base02 20%, $base01 100%);\n  border-radius: 0.5em;\n}\n\n.disclose-cardprog-eventbox:hover {\n  background: linear-gradient(170deg, $base01 20%, $shade01 100%);\n}\n\n.disclose-cardprog-icon {\n  margin: 0 0 0 -0.21em;\n  background-size: cover;\n  background-repeat: no-repeat;\n}\n\n.disclose-cardprog-image-box {\n  padding: 0 1em 0 1em;\n}\n\n.disclose-cardprog-image {\n  background-size: cover;\n  background-repeat: no-repeat;\n  box-shadow: -0.4px -0.3px 4px 4px $shade08;\n  border-radius: 50%;\n  border: 0.25em solid $base09;\n}\n\n.disclose-cardprog-separator {\n  background-color: $shade02;\n  font-size: 1;\n  padding: 3.4em 0 0 0;\n  margin: 0 10em 0 10em;\n}\n\n.disclose-cardprog-body-box {\n  font-size: 15;\n  padding: 1em 0 1em 0;\n}\n\n.disclose-cardprog-summary-box {\n  padding: 0.5em 0 0.5em 0.9em;\n  background-color: darken($base09, 10%);\n  border-radius: 0.3em 0.3em 0 0;\n  color: $base02;\n}\n\n.disclose-cardprog-appname-label {\n  font-size: 16;\n  font-weight: bold;\n}\n\n.disclose-cardprog-close-button {\n  margin: 0.6em 1em 0.6em 0;\n  padding: 0.2em;\n  background-color: $base11;\n  color: $base01;\n  border-radius: 50%;\n  box-shadow: -0.4px -0.3px 4px -1.8px $shade09;\n}\n\n.disclose-cardprog-close-button:hover {\n  background-color: $base01;\n  color: $base11;\n}\n\n.disclose-cardprog-body-outer {\n  padding: 0 1em 0 0;\n}\n\n.disclose-cardprog-summary-label {\n  font-size: 20;\n  font-weight: bold;\n  color: $base05;\n}\n\n.disclose-cardprog-body-label {\n  font-size: 16;\n  color: $base05;\n}\n\n.disclose-cardprog-timestamp {\n  color: $base10;\n  font-weight: bold;\n}\n\n.disclose-cardprog-scale {\n  background-color: $shade01;\n  border-radius: 0.2em;\n  margin: 0.5em 0 0.5em;\n\n  contents {\n    trough {\n      border-radius: 0.2em;\n\n      // Uncomment to enable slider pointer\n      // slider {\n      //   margin: -8px;\n      //   background-color: $base15;\n      //   box-shadow: -0.4px -0.3px 4px -1.8px $shade09;\n      //   border-radius: 20%;\n      // }\n\n      highlight {\n        background-color: $base09;\n        padding: 0.7em;\n        border-radius: 0.2em;\n      }\n    }\n  }\n}\n\n.disclose-cardprog-value-label {\n  padding: 0 0.5em 0 0.5em;\n  margin: 0.2em 0 0.2em 0;\n  color: $base02;\n  font-weight: 700;\n  background-color: $base10;\n  border-radius: 10%;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_cardradial.scss",
    "content": ".disclose-cardradial-eventbox {\n  background: linear-gradient(45deg, $base02 20%, $base01 100%);\n  border-radius: 0.5em;\n}\n\n.disclose-cardradial-eventbox:hover {\n  background: linear-gradient(170deg, $base01 20%, $shade01 100%);\n}\n\n.disclose-cardradial-separator {\n  background-color: $shade02;\n  font-size: 1;\n  padding: 3.4em 0 0 0;\n  margin: 0 10em 0 10em;\n}\n\n.disclose-cardradial-body-box {\n  font-size: 15;\n  padding: 1em 0 1em 0;\n}\n\n.disclose-cardradial-summary-box {\n  padding: 0.5em 0 0.5em 0.9em;\n  background-color: darken($base09, 10%);\n  border-radius: 0.3em 0.3em 0 0;\n  color: $base02;\n}\n\n.disclose-cardradial-appname-label {\n  font-size: 16;\n  font-weight: bold;\n}\n\n.disclose-cardradial-close-button {\n  margin: 0.6em 1em 0.6em 0;\n  padding: 0.2em;\n  background-color: $base11;\n  color: $base01;\n  border-radius: 50%;\n  box-shadow: -0.4px -0.3px 4px -1.8px $shade09;\n}\n\n.disclose-cardradial-close-button:hover {\n  background-color: $base01;\n  color: $base11;\n}\n\n.disclose-cardradial-body-outer {\n  padding: 0 1em 0 0;\n}\n\n.disclose-cardradial-summary-label {\n  font-size: 20;\n  font-weight: bold;\n  color: $base05;\n}\n\n.disclose-cardradial-body-label {\n  font-size: 16;\n  color: $base05;\n}\n\n.disclose-cardradial-timestamp {\n  color: $base10;\n  font-weight: bold;\n}\n\n.disclose-cardradial-circle-box {\n  padding: 0 1em 0 1em;\n}\n\n.disclose-cardradial-circle {\n  font-size: 25;\n  color: $base09;\n  background-color: $shade01;\n}\n\n.disclose-cardradial-tasks {\n  padding: 1.4em;\n  font-weight: bolder;\n  color: $base10;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_cardscr.scss",
    "content": ".disclose-cardscr-eventbox {\n  background: linear-gradient(45deg, $base02 20%, $base01 100%);\n  border-radius: 0.5em;\n}\n\n.disclose-cardscr-eventbox:hover {\n  background: linear-gradient(170deg, $shade01 20%, $base01 100%);\n}\n\n.disclose-cardscr-summary-box {\n  padding: 0.5em 0 0 1em;\n  border-radius: 0.3em 0.3em 0 0;\n  color: $base02;\n}\n\n.disclose-cardscr-close-button {\n  margin: 0.6em 1em 0.6em 0;\n  padding: 0.2em;\n  background-color: $base11;\n  color: $base01;\n  border-radius: 50%;\n  box-shadow: -0.4px -0.3px 4px -1.8px $shade09;\n}\n\n.disclose-cardscr-close-button:hover {\n  background-color: $base01;\n  color: $base11;\n}\n\n.disclose-cardscr-summary-label {\n  font-size: 20;\n  font-weight: bold;\n  color: $base05;\n}\n\n.disclose-cardscr-body-label {\n  font-size: 16;\n  color: $base05;\n}\n\n.disclose-cardscr-timestamp {\n  color: $base10;\n  font-weight: bold;\n}\n\n.disclose-cardscr-image {\n  margin: 1em;\n  border-radius: 0.5em;\n  background-size: cover;\n  background-repeat: no-repeat;\n}\n\n.disclose-cardscr-timestamp {\n  padding-right: 1em;\n}\n\n.disclose-cardscr-open-button,\n.disclose-cardscr-delete-button {\n  font-size: 20;\n  font-weight: bold;\n  padding: 0.6em 3.72em 0.6em 3.72em;\n  margin-bottom: 0.7em;\n  border-radius: 0.2em;\n  color: $base02;\n}\n\n.disclose-cardscr-open-button {\n  background-color: darken($base09, 10%);\n}\n\n.disclose-cardscr-open-button:hover {\n  color: $base09;\n  background-color: $shade02;\n}\n\n.disclose-cardscr-delete-button {\n  background-color: $shade02;\n  color: $base11;\n}\n\n.disclose-cardscr-delete-button:hover {\n  background-color: $base11;\n  color: $shade02;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_dnd.scss",
    "content": ".disclose-dnd-box {\n  background-image: linear-gradient(to bottom left, rgba(0, 0, 0, 1.0), rgba(30, 33, 40, 0.5)), url(\"./assets/speaker.jpg\");\n  background-size: cover;\n  background-repeat: no-repeat;\n  margin-right: 1em;\n  border-radius: 1.5em;\n}\n\n.disclose-dnd-header {\n  font-size: 20;\n  font-weight: bold;\n  color: $base05;\n}\n\n.disclose-dnd-footer {\n  font-size: 15;\n  color: lighten($base04, 8%);\n}\n\n.disclose-dnd-labels {\n  padding: 1.5em;\n}\n\n.disclose-dnd-toggle {\n  padding: 0.3em 0.8em 0.3em 0.8em;\n  border-radius: 0.3em;\n  font-weight: bold;\n  color: $base02;\n  opacity: 0.6;\n}\n\n.disclose-dnd-box-inner {\n  padding-top: 0.8em;\n  opacity: 0.4;\n}\n\n.disclose-dnd-total {\n  font-size: 40;\n  font-weight: bold;\n  color: $base13;\n}\n\n.disclose-dnd-total-label {\n  color: $base13;\n}\n\n.disclose-dnd-toggle:hover {\n  opacity: 1.0;\n  border-radius: 1em;\n}\n\n.disclose-dnd-toggle-ON {\n  background-color: $base14;\n}\n\n.disclose-dnd-toggle-OFF {\n  background-color: $base11;\n}\n\n.disclose-dnd-waiting-icon-label {\n  background-color: $base03;\n  border-radius: 2em;\n  opacity: 0.5;\n}\n\n.disclose-dnd-waiting-padding {\n  padding: 0 0.8em 0 0;\n}\n\n.disclose-dnd-waiting-margin {\n  margin: 0.3em;\n}\n\n.disclose-dnd-waiting-icon {\n  background-color: $base13;\n  margin: 0.3em;\n  padding: 0.2em;\n  border-radius: 1em;\n  font-size: 20;\n  color: $base04;\n}\n\n.disclose-dnd-waiting-label {\n  font-weight: 600;\n}\n\n// vim:filetype=scss\n"
  },
  {
    "path": "src/scss/disclose/_empty.scss",
    "content": ".disclose-empty-banner {\n  padding-top: 8em;\n}\n\n.disclose-empty-box {\n  padding: 1em 1em 10em 0;\n}\n\n.disclose-empty-label {\n  padding-top: 3em;\n  color: $shade00;\n  font-size: 16;\n}\n\n.disclose-separator {\n  font-size: 0.5;\n  background-color: $shade06;\n  margin: 35em 25em 35em 25em;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_init.scss",
    "content": ".disclose-layout-box {\n  background-color: $shade10;\n  font-family: Dosis, Phosphor, \"Iosevka Nerd Font\", sans-serif;\n  padding-bottom: 1em;\n}\n\n.disclose-headers {\n  padding: 1em 2em 0 2em;\n  margin-bottom: 1.5em;\n  color: $base05;\n}\n\n.disclose-headers-label {\n  font-size: 20;\n  font-family: \"Caviar Dreams\";\n  color: $base05;\n  opacity: 0.8;\n}\n\n.disclose-headers-clear {\n  font-size: 25;\n  color: $base09;\n}\n\n.disclose-headers-close {\n  font-size: 25;\n  color: $base11;\n}\n\n.disclose-headers-clear:hover {\n  color: $base14;\n}\n\n.disclose-headers-close:hover {\n  color: $base09;\n}\n\n.disclose-scroll {\n  margin: 0 1.5em 0 1.5em;\n}\n\n@import \"empty\";\n\n@import \"cardprog\";\n@import \"cardscr\";\n@import \"cardimage\";\n@import \"cardradial\";\n\n@import \"urgency\";\n@import \"stats\";\n@import \"dnd\";\n@import \"modifiers\";\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_modifiers.scss",
    "content": ".shot-image-bord-dashed {\n  border-style: dashed;\n}\n\n.Spotify-rectangle {\n  margin: 0.3em;\n  border-radius: 0.2em;\n  border-width: 0\n}\n\n.Qbittorrent-rectangle {\n  border-radius: 0;\n  border-width: 0;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_override.scss",
    "content": ".disclose-cardprog-separator,\n.disclose-cardradial-separator,\n.disclose-cardimage-separator {\n  opacity: 0.0;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/disclose/_stats.scss",
    "content": ".disclose-stats-crit-box,\n.disclose-stats-norm-box,\n.disclose-stats-low-box {\n  background-color: $shade06;\n  border-radius: 3em;\n  margin: 0 1em 0 1em;\n  padding: 0.8em;\n}\n\n.disclose-stats-crit,\n.disclose-stats-norm,\n.disclose-stats-low {\n  background-color: $shade03;\n}\n\n.disclose-stats-crit {\n  color: $base11;\n}\n\n.disclose-stats-low {\n  color: $base14;\n}\n\n.disclose-stats-norm {\n  color: $base09;\n}\n\n.disclose-stats-crit-label,\n.disclose-stats-norm-label,\n.disclose-stats-low-label {\n  padding: 0.9em 0.9em 0.9em 0.83em;\n  font-size: 23;\n  font-weight: bold;\n  background-color: $shade07;\n}\n\n.disclose-stats-crit-info-value {\n  font-size: 20;\n  font-weight: bold;\n  color: $base11;\n}\n\n.disclose-stats-norm-info-value {\n  font-size: 20;\n  font-weight: bold;\n  color: $base09;\n}\n\n.disclose-stats-norm-info-box,\n.disclose-stats-norm-info-box,\n.disclose-stats-norm-info-box {\n  padding: 0 0.8em 0 1em;\n}\n\n.disclose-stats-low-info-value {\n  font-size: 20;\n  font-weight: bold;\n  color: $base14;\n}\n\n.disclose-stats-low-info-label,\n.disclose-stats-norm-info-label,\n.disclose-stats-crit-info-label {\n  color: $base15;\n}\n\n.disclose-stats-separator {\n  font-size: 1;\n  background-color: $shade02;\n  padding: 1em;\n  margin-left: 15em;\n}\n\n// vim:filetype=scss\n"
  },
  {
    "path": "src/scss/disclose/_urgency.scss",
    "content": ".disclose-cardimage-summary-box-CRITICAL {\n  background-color: darken($base11, 10%);\n}\n\n.disclose-cardimage-summary-box-LOW {\n  background-color: darken($base15, 10%);\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/horizon/_init.scss",
    "content": ".horizon-layout-box {\n  font-family: Phosphor, Dosis;\n  background-color: rgba(#000, 0.0);\n  color: rgba($base05, 0.75);\n}\n\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/horizon/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/lumin/_init.scss",
    "content": ".lumin-layout-box {\n  font-family: Phosphor, Dosis;\n  background-color: rgba(#000, 0.0);\n  color: rgba($base05, 0.75);\n}\n\n.lumin-apps-box {\n  font-size: 30;\n}\n\n.lumin-app-btn-one,\n.lumin-app-btn-two,\n.lumin-app-btn-three,\n.lumin-app-btn-four,\n.lumin-app-btn-five,\n.lumin-app-btn-six {\n  border-radius: 1em;\n  padding: 0.2em;\n  color: rgba($base01, 0.6);\n}\n\n.lumin-app-btn-one,\n.lumin-app-btn-two,\n.lumin-app-btn-three,\n.lumin-app-btn-four,\n.lumin-app-btn-five,\n.lumin-app-btn-six {\n  background-color: rgba($base08, 0.6);\n}\n\n.lumin-app-btn-one:hover,\n.lumin-app-btn-two:hover,\n.lumin-app-btn-three:hover,\n.lumin-app-btn-four:hover,\n.lumin-app-btn-five:hover,\n.lumin-app-btn-six:hover { background-color: $base08; }\n\n.lumin-day-label {\n  font-family: Modum;\n  font-size: 150;\n  font-weight: bold;\n}\n\n.lumin-date-label {\n  font-size: 20;\n  font-family: Koulen;\n}\n\n.lumin-quote-box {\n  font-size: 18;\n}\n\n.lumin-quote-icon {\n  font-size: 48;\n  margin-left: -0.08em;\n  color: rgba($base14, 0.7);\n}\n\n.lumin-quote-auth {\n  font-weight: bold;\n  font-size: 15;\n}\n\n.lumin-battery-box {\n  font-size: 20;\n  color: rgb($base12, 0.8);\n}\n\n.lumin-network-box {\n  font-size: 24;\n  color: rgb($base12, 0.8);\n}\n\n.lumin-separator {\n  font-size: 1;\n  background-color: rgb($base05, 0.6);\n  margin-top: 7em;\n  margin-bottom: 8em;\n}\n\n.lumin-sundial-label {\n  margin-top: 0.3em;\n  margin-left: 0.4em;\n  background-color: rgba($base09, 0.7);\n  padding: 0.3em 0.8em 0.3em 0.8em;\n  color: $base02;\n  border-radius: 0.2em;\n  font-family: \"Poiret One\";\n  font-weight: bold;\n}\n\n.lumin-search {\n  background-color: rgba($base04, 0.3);\n  font-size: 18;\n  font-family: Dosis;\n  font-weight: bold;\n  padding: 0.5em 0 0.5em 1.5em;\n  border-radius: 2em 0 0 2em;\n}\n\n.lumin-search-button {\n  background-color: rgba($base11, 0.3);\n  border-radius: 0 2em 2em 0;\n  padding: 0.5em 0.7em 0.5em 0.5em;\n  font-size: 25;\n}\n\n.lumin-search-button:hover {\n  background-color: rgba($base04, 0.3);\n  color: $base11;\n}\n\n@import \"./_override.scss\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/lumin/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/melody/_init.scss",
    "content": ".melody-layout-box {\n  font-family: Phosphor, Dosis;\n  background-color: rgba(#000, 0.0);\n  color: rgba($base05, 0.75);\n}\n\n.melody-cover-box { opacity: 0.5; }\n\n.melody-cover {\n  padding: 3em;\n  background-size: cover;\n  background-repeat: no-repeat;\n}\n\n.melody-cover-label {\n  font-family: \"Poiret One\";\n  font-weight: bold;\n}\n\n.melody-apps-box-one,\n.melody-apps-box-two,\n.melody-apps-box-three,\n.melody-apps-box-four,\n.melody-apps-box-five,\n.melody-apps-box-six {\n  color: rgba($base05, 0.6);\n  font-size: 25;\n}\n\n.melody-apps-box-one:hover,\n.melody-apps-box-two:hover,\n.melody-apps-box-three:hover,\n.melody-apps-box-four:hover,\n.melody-apps-box-five:hover,\n.melody-apps-box-six:hover {\n  color: $base05;\n}\n\n.melody-artist {\n  font-size: 20;\n  font-family: \"Poiret One\";\n  font-weight: bold;\n}\n\n.melody-title {\n  font-size: 15;\n}\n\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/melody/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/ocular/_init.scss",
    "content": ".ocular-layout-box {\n  font-family: Phosphor, \"Poiret One\";\n  background-color: rgba(#000, 0.0);\n  color: $base12;\n}\n\n.ocular-battery-icon {\n  font-size: 35;\n  color: $base12;\n}\n\n.ocular-battery-label {\n  font-size: 18;\n}\n\n.ocular-network-icon {\n  font-size: 35;\n  color: $base14;\n}\n\n.ocular-network-label {\n  font-size: 18;\n}\n\n.ocular-generic-icon {\n  font-size: 35;\n  color: $base11;\n}\n\n.ocular-generic-label {\n  font-size: 18;\n}\n\n.ocular-time-radial label {\n  padding: 2em;\n  font-size: 40;\n  font-weight: bold;\n}\n\n.ocular-date-label {\n  font-size: 20;\n}\n\n.ocular-temp-icon {\n  font-size: 30;\n  color: $base13;\n}\n\n.ocular-temp-label {\n  font-size: 20;\n}\n\n.ocular-sundial-label {\n  background-color: $base09;\n  padding: 0.2em 0.5em 0.2em 0.5em;\n  color: $base02;\n  border-radius: 0.2em;\n  font-weight: bold;\n}\n\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/ocular/_override.scss",
    "content": "// exclude eww-ocular in picom shadows exclude section\n// this is an example to override the default ocular style\n// and make the widget text labels all white. Enjoy.\n\n// .ocular-layout-box {\n//   font-family: Phosphor, \"Poiret One\";\n//   background-color: rgba(#000, 0.0);\n//   color: $base06;\n// }\n\n// .ocular-battery-icon,\n// .ocular-battery-label,\n// .ocular-network-icon,\n// .ocular-generic-icon,\n// .ocular-temp-icon {\n//   color: $base06;\n// }\n\n// .ocular-sundial-label {\n//   background-color: $base09;\n//   color: $base02;\n// }\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/origin/_init.scss",
    "content": ".origin-layout-box {\n  font-family: Phosphor;\n  background-color: rgba(#000, 0.0);\n  color: rgba($base05, 0.7);\n}\n\n.origin-greet {\n  font-family: \"Poiret One\";\n  font-weight: bold;\n  font-size: 20;\n}\n\n.origin-hostname {\n  font-family: monoMMM_5;\n  color: rgba($base09, 0.7);\n}\n\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/origin/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/power/_init.scss",
    "content": ".power-layout-box {\n  font-family: Phosphor;\n  background-repeat: no-repeat;\n  background-size: contain;\n  padding: 5em;\n}\n\n.power-label,\n.power-label-icon {\n  font-family: Phosphor, Koulen;\n  font-size: 25;\n  background-color: rgba(#000, 0.0);\n  color: rgba($base04, 0.8);\n}\n\n.power-label-time {\n  font-size: 25;\n}\n\n.power-label-icon {\n  font-size: 30;\n  padding-bottom: 0.06em;\n  color: rgba($base04, 0.8);\n}\n\n.power-close-button {\n  font-size: 30;\n  color: rgba($base04, 0.8);\n}\n\n.power-close-button:hover {\n  color: $base11;\n}\n\n.power-box {\n  font-size: 35;\n}\n\n.power-box button:hover {\n  border-radius: 0.1em; \n  transition: 200ms linear background-color, border-radius;\n  background-color: rgba($shade00, 0.6);\n}\n\n.power-box button {\n  padding: 0.4em;\n  background-color: rgba($base03, 0.3);\n  color: rgba($base04, 0.5);\n  // box-shadow: 1px 1px 4px 4px $shade01;\n}\n\n.power-shutdown-button label {\n  color: rgba($base11, 0.8);\n}\n\n.power-info-net {\n  font-size: 25;\n  color: rgba($base04, 0.8);\n}\n\n.power-info-bat {\n  font-size: 30;\n  color: rgba($base04, 0.8);\n}\n\n.power-info-bat label {\n  font-size: 30;\n  color: rgba($base04, 0.6);\n}\n\n.power-separator {\n  color: rgba($base04, 0.6);\n  font-size: 15;\n  padding-top: 0.15em;\n  padding-left: 0.2em;\n  padding-right: 0.2em;\n  font-family: \"Iosevka Nerd Font\";\n  font-weight: 200;\n}\n\n.power-sundial-label {\n  font-size: 20;\n  font-weight: bold;\n  border-radius: 0.2em;\n  padding: 0.4em;\n  padding-bottom: 0.5em;\n  font-family: \"Poiret One\";\n  color: rgba($base04, 0.8);\n}\n\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/power/_override.scss",
    "content": "\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/vertigo/_info.scss",
    "content": ".vertigo-battery-button {\n  background-color: $base11;\n  border-radius: 50% 0 0 0;\n  font-size: 25;\n  padding: 0.57em 0 0.5em 0;\n  color: $base01;\n}\n\n.vertigo-battery-button:hover { opacity: 0.85; }\n\n.vertigo-time-button {\n  font-size: 26;\n  background-color: $base01;\n  padding: 0.4em 0 0.4em 0;\n  font-family: \"Iosevka Nerd Font\", sans-serif;\n}\n\n.vertigo-time-format-first { font-weight: bold; color: $base15; }\n.vertigo-time-format-second { color: $base14; }\n.vertigo-time-format-third { color: $base13; }\n.vertigo-reveal-box button { padding: 0.57em 0 0.57em 0; font-size: 26; }\n\n.vertigo-volume-on { background-color: $shade01; color: $base13; }\n.vertigo-volume-off { background-color: $shade01; color: $base11; }\n.vertigo-volume-on:hover { background-color: $base13; color: $shade01; }\n.vertigo-volume-off:hover { background-color: $base11; color: $shade01; }\n\n.vertigo-nightmode-on { background-color: $shade01; color: $base09; }\n.vertigo-nightmode-off { background-color: $shade01; color: $base13; }\n.vertigo-nightmode-on:hover { background-color: $base09; color: $shade01; }\n.vertigo-nightmode-off:hover { background-color: $base13; color: $shade01; }\n\n.vertigo-notify-on { background-color: $base02; color: $base15; }\n.vertigo-notify-off { background-color: $base02; color: $base11; }\n.vertigo-notify-on:hover { background-color: $base15; color: $base02; }\n.vertigo-notify-off:hover { background-color: $base11; color: $base02; }\n\n.vertigo-todo-button { background-color: $base01; color: $base07; }\n.vertigo-todo-button:hover { background-color: $base07; color: $base01; }\n.vertigo-workspace-plus-button { color: $base11; background-color: $base02; }\n.vertigo-workspace-plus-button:hover { background-color: $base11; color: $base02; }\n\n.vertigo-time-button:hover { background-color: $base03; color: $base01; }\n.vertigo-profile-button { margin: 0 0 1em 0; }\n\n.vertigo-tall,\n.vertigo-wide,\n.vertigo-rtall,\n.vertigo-rwide,\n.vertigo-grid,\n.vertigo-rgrid,\n.vertigo-even,\n.vertigo-tiled,\n.vertigo-monocle {\n  background-color: $shade06;\n}\n\n.vertigo-tall {\n  color: $base11;\n}\n\n.vertigo-wide {\n  color: $base12;\n}\n\n.vertigo-rtall {\n  color: $base13;\n}\n\n.vertigo-rwide {\n  color: $base14;\n}\n\n.vertigo-grid {\n  color: $base15;\n}\n\n.vertigo-rgrid {\n  color: $base10;\n}\n\n.vertigo-even {\n  color: $base09;\n}\n\n.vertigo-tiled {\n  color: $base08;\n}\n\n.vertigo-monocle {\n  color: $base07;\n}\n\n// .vertigo-tall:hover {\n//   background-color: $base11;\n//   color: $base02;\n// }\n\n// .vertigo-wide:hover {\n//   background-color: $base12;\n//   color: $base02;\n// }\n\n// .vertigo-rtall:hover {\n//   background-color: $base13;\n//   color: $base02;\n// }\n\n// .vertigo-rwide:hover {\n//   background-color: $base14;\n//   color: $base02;\n// }\n\n// .vertigo-grid:hover {\n//   background-color: $base15;\n//   color: $base02;\n// }\n\n// .vertigo-rgrid:hover {\n//   background-color: $base10;\n//   color: $base02;\n// }\n\n// .vertigo-even:hover {\n//   background-color: $base09;\n//   color: $base02;\n// }\n\n// .vertigo-tiled:hover {\n//   background-color: $base08;\n//   color: $base02;\n// }\n\n// .vertigo-monocle:hover {\n//   background-color: $base07;\n//   color: $base02;\n// }\n\n.vertigo-tall:hover,\n.vertigo-wide:hover,\n.vertigo-rtall:hover,\n.vertigo-rwide:hover,\n.vertigo-grid:hover,\n.vertigo-rgrid:hover,\n.vertigo-even:hover,\n.vertigo-tiled:hover,\n.vertigo-monocle:hover {\n  background-color: $shade04;\n}\n\n.vertigo-separator { \n  background-color: $base03; \n  margin-top: 5em;\n  margin-bottom: 5em;\n  font-size: 2;\n}\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/vertigo/_init.scss",
    "content": ".vertigo-layout-box {\n  // background-color: $base00;\n  background-color: $shade10;\n  font-family: Phosphor, Dosis, sans-serif;\n  padding: 0.8em 0.8em 0 0.8em;\n}\n\n@import \"state\";\n@import \"info\";\n@import \"node\";\n@import \"override\";\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/vertigo/_node.scss",
    "content": ".vertigo-node-button {\n  padding: 0.57em 0 0.58em 0;\n  font-size: 25;\n  color: $base02;\n}\n\n.vertigo-node-button-tiled { background-color: $base14; }\n.vertigo-node-button-monocle { background-color: $base11; }\n.vertigo-node-button-float { background-color: $base13; }\n.vertigo-node-button-pseudo { background-color: $base15; }\n.vertigo-node-button-full { background-color: $base09; }\n.vertigo-node-button-other { background-color: $base08; }\n.vertigo-node-button:hover { opacity: 0.8; }\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/vertigo/_override.scss",
    "content": "// exclude eww-vertigo in picom shadows exclude section\n// this is an example to override the default vertigo style\n// and make the bar transparent. Enjoy.\n\n// .vertigo-layout-box {\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-node-button-tiled { color: $base14; }\n// .vertigo-node-button-monocle { color: $base11; }\n// .vertigo-node-button-float { color: $base13; }\n// .vertigo-node-button-pseudo { color: $base15; }\n// .vertigo-node-button-full { color: $base09; }\n// .vertigo-node-button-other { color: $base08; }\n// .vertigo-node-button:hover { opacity: 0.8; }\n\n// .vertigo-node-button-tiled,\n// .vertigo-node-button-monocle,\n// .vertigo-node-button-float,\n// .vertigo-node-button-pseudo,\n// .vertigo-node-button-full,\n// .vertigo-node-button-other {\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-battery-button {\n//   background-color: rgb(0, 0, 0, 0.0);\n//   color: $base11;\n// }\n\n// .vertigo-time-button {\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-volume-on { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-volume-off { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-volume-on:hover { background-color: $base13; }\n// .vertigo-volume-off:hover { background-color: $base11; }\n\n// .vertigo-nightmode-on { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-nightmode-off { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-nightmode-on:hover { background-color: $base09; color: $shade01; }\n// .vertigo-nightmode-off:hover { background-color: $base13; color: $shade01; }\n\n// .vertigo-notify-on { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-notify-off { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-notify-on:hover { background-color: $base15; color: $base02; }\n// .vertigo-notify-off:hover { background-color: $base11; color: $base02; }\n\n// .vertigo-todo-button { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-todo-button:hover { background-color: $base07; color: $base01; }\n// .vertigo-workspace-plus-button { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-plus-button:hover { background-color: $base11; color: $base02; }\n\n// .vertigo-time-button:hover { background-color: rgb(0, 0, 0, 0.0); }\n\n// .vertigo-separator {\n//   opacity: 0.0;\n// }\n\n// .vertigo-search-button {\n//   color: $base09;\n//   background-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-search-button:hover { background-color: rgb(0, 0, 0, 0.0); color: $base07; }\n// .vertigo-workspace { background-color: rgb(0, 0, 0, 0.0); }\n\n// .vertigo-workspace:hover { background-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-focused {\n//   background-color: rgb(0, 0, 0, 0.0);\n//   border-right-color: rgb(0, 0, 0, 0.0);\n// }\n\n// .vertigo-workspace-occupied:hover { border-left-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-urgent:hover { border-left-color: rgb(0, 0, 0, 0.0); }\n// .vertigo-workspace-local:hover { border-left-color: rgb(0, 0, 0, 0.0); }\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/scss/vertigo/_state.scss",
    "content": ".vertigo-search-button {\n  padding: 0.57em 0 0.57em 0;\n  background-color: $base09;\n  font-size: 25;\n  color: $base02;\n}\n\n.vertigo-search-button:hover { background-color: $base07; }\n.vertigo-workspace { background-color: $base01; }\n.vertigo-workspace:first-child { padding-top: 0.3em; }\n.vertigo-workspace:last-child { border-radius: 0 0 50% 0; }\n\n.vertigo-workspace label {\n  font-size: 25;\n  padding: 0.57em 0 0.57em 0;\n}\n\n.vertigo-workspace:hover { background-color: $base03; }\n.vertigo-workspace-urgent { color: $base11; }\n.vertigo-workspace-occupied { color: $base13; }\n.vertigo-workspace-local { color: $shade01; }\n.vertigo-workspace-focused {\n  color: $base14;\n  background-color: $base02;\n  border-right: 3px solid $base14;\n}\n\n.vertigo-workspace-occupied:hover { border-left: 3px solid $base13; }\n.vertigo-workspace-urgent:hover { border-left: 3px solid $base11; }\n.vertigo-workspace-local:hover { border-left: 3px solid $base04; }\n\n// vim:ft=scss\n"
  },
  {
    "path": "src/shell/cache.py",
    "content": "\"\"\"A DBus eavesdropper for org.freedesktop.Notifications\ninterface.\n\nThis is created mainly to cache the raw image data that is\nsent by stupid applications like Spotify, Discord, etc.\nNow that I think about it all of the electron clients do this.\n\nUsually any application, if they had to they'd send the\nnotifications as a path i.e. caching the image themselves\nand then returning the path to it.\n\nAlso, <https://specifications.freedesktop.org/notification-spec/latest/>\nis a really nice manual. Give it a read.\n\"\"\"\n\n# Authored By dharmx <dharmx@gmail.com> under:\n# GNU GENERAL PUBLIC LICENSE\n# Version 3, 29 June 2007\n#\n# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n# Everyone is permitted to copy and distribute verbatim copies\n# of this license document, but changing it is not allowed.\n#\n# Permissions of this strong copyleft license are conditioned on\n# making available complete source code of licensed works and\n# modifications, which include larger works using a licensed work,\n# under the same license. Copyright and license notices must be\n# preserved. Contributors provide an express grant of patent rights.\n#\n# Read the complete license here:\n# <https://github.com/dharmx/vile/blob/main/LICENSE.txt>\n\nimport datetime\nimport os\nimport sys\nimport pathlib\nimport sys\nimport typing\n\nimport dbus\nimport utils\n\nfrom dbus.mainloop.glib import DBusGMainLoop\nfrom gi.repository import GLib\n\n\n# TODO: Use actual enumerations by using the enum module from the standard library.\nclass Urgency:\n    \"\"\"Acts as an Enum for indicating the urgency levels as per\n    the notifications specification.\n\n    You may use these to match wheter a specific notification belongs\n    to a specific urgency class or, not.\n\n    Attributes:\n        LOW: Ads, Login, etc.\n        NORMAL: USB unplugged, Drive mounted, etc.\n        CRITICAL: Your PC is on fire, Storage Full, etc.\n    \"\"\"\n    LOW = b\"\\x00\"\n    NORMAL = b\"\\x01\"\n    CRITICAL = b\"\\x02\"\n\n\ndef console_write(string: str):\n    sys.stdout.write(string + \"\\n\")\n    sys.stdout.flush()\n\n\nclass Eavesdropper:\n    \"\"\"A quick and naive way of saving the image-data.\n\n    The main idea is to keep a notification server running that\n    implements image-data and image-path as per the freedesktop\n    notification specification.\n    And, then you'd run the eavesdropper which will connect to that\n    interface (org.freedesktop.Notifications) and will continuously\n    monitor that interface.\n    And, if any application sends a notification, that contains a raw\n    icon then it will be saved into the cache directory.\n\n    Attributes:\n        callback:\n            The arbitrary subroutine that will executed on getting a notification.\n        cache_dir:\n            The directory path that all of those image-data would be saved.\n    \"\"\"\n\n    # TODO: Segregate more.\n    def __init__(\n        self,\n        callback: typing.Callable = console_write,\n        cache_dir: str = \"/tmp\"\n    ):\n        \"\"\"Assigns the CTOR parameters to the field variables (duh..)\n\n        Arguments:\n            callback: The arbitrary subroutine that will executed on getting a notification.\n            cache_dir: The directory path that all of those image-data would be saved.\n        \"\"\"\n        self.callback = callback\n        self.cache_dir = f\"{os.path.expandvars(cache_dir)}/image-data\"\n        # translation: mkdir --parents cache_dir\n        pathlib.PosixPath(self.cache_dir).mkdir(parents=True, exist_ok=True)\n\n    def _message_callback(\n        self, _,\n        message: dbus.lowlevel.MethodReturnMessage\n        or dbus.lowlevel.MethodCallMessage\n    ):\n        \"\"\"A filter callback for parsing the specific messages that are received from the DBus interface.\n\n        Arguments:\n            proxy_bus:\n                The bus that sent the message.\n            message:\n                In this case a message is sent when the\n                Notify method is called AND when the Notify method returns something.\n\n        If the message is of type dbus.lowlevel.MethodCallMessage then this will NOT call the passed callback.\n        \"\"\"\n\n        # we will be filtering this out as we only need the value that the method call returns\n        # i.e. dbus.lowlevel.MethodReturnMessage\n        if type(message) != dbus.lowlevel.MethodCallMessage:\n            return\n\n        args_list = message.get_args_list()\n        # convert dbus data types to pythonic ones\n        # eg: dbus.String('Hello') -> 'Hello'\n        args_list = [utils.unwrap(item) for item in args_list]\n\n        # set fallbacks like a fine gentleman\n        details = {\n            \"appname\": args_list[0].strip() or \"Unknown\",\n            \"summary\": args_list[3].strip() or \"Summary Unavailable.\",\n            \"body\": args_list[4].strip() or \"Body Unavailable.\",\n            \"id\": datetime.datetime.now().strftime(\"%s\"),\n            \"urgency\": \"unknown\",\n        }\n\n        if \"urgency\" in args_list[6]:\n            details[\"urgency\"] = args_list[6][\"urgency\"]\n\n        if args_list[2].strip():\n            # if the iconpath value is a path i.e. if it has slashes on them\n            # then assign that as the iconpath\n            if \"/\" in args_list[2] or \".\" in args_list[2]:\n                details[\"iconpath\"] = args_list[2]\n            else:\n                # and if the iconpath is just a string that has no extensions or,\n                # a pathlike structure like: 'bell' or 'custom-folder-bookmark'\n                # it might have a dash (-) sign but not all the time.\n                # then fetch that actual path of that icon as that is a part of the\n                # icon theme naming convention and the current icon theme should probably have it\n                details[\"iconpath\"] = utils.get_gtk_icon_path(args_list[2])\n        else:\n            # if there are no icon hints then use fallback (generic bell)\n            details[\"iconpath\"] = utils.get_gtk_icon_path(\n                \"custom-notification\")\n\n        if \"image-data\" in args_list[6]:\n            # capture the raw image bytes and save them to the cache_dir/x.png path\n            details[\"iconpath\"] = f\"{self.cache_dir}/{details['appname']}-{details['id']}.png\"\n            utils.save_img_byte(\n                args_list[6][\"image-data\"], details[\"iconpath\"])\n\n        # BUG: add a print statement -> init logger.py and disown the process\n        #      then you'll notice the notifications with value (progress) hint\n        #      does not get logged.\n        if \"value\" in args_list[6]:\n            details[\"progress\"] = args_list[6][\"value\"]\n\n        # execute arbitrary callback and passing details about the current notification.\n        self.callback(details)\n\n    # TODO: Segregate more.\n    def eavesdrop(\n        self,\n        timeout: int or bool = False,\n        timeout_callback: typing.Callable = print\n    ):\n        \"\"\"Primes the session bus instance and starts a GLib mainloop.\n\n        Arguments:\n            timeout:\n                Intervals for executing the callback.\n            timeout_callback:\n                Callback that will be executed on intervals.\n        \"\"\"\n        DBusGMainLoop(set_as_default=True)\n\n        rules = {\n            \"interface\": \"org.freedesktop.Notifications\",\n            \"member\": \"Notify\",\n            \"eavesdrop\": \"true\",  # https://bugs.freedesktop.org/show_bug.cgi?id=39450\n        }\n\n        bus = dbus.SessionBus()\n        # discard all other interfaces except org.freedesktop.Notifications\n        # setting eavesdrop to true enables DBus to send the messages that are\n        # not meant for you.\n        # removing the eavesdrop key from rules will not send the Notify method's\n        # contents to you (you can try and see what happens)\n        bus.add_match_string(\",\".join([f\"{key}={value}\" for key, value in rules.items()]))\n        bus.add_message_filter(self._message_callback)\n\n        try:\n            loop = GLib.MainLoop()\n            if timeout:\n                # executes a callback in intervals\n                GLib.set_timeout(timeout, timeout_callback)\n            loop.run()\n        except (KeyboardInterrupt, Exception) as excep:\n            sys.stderr.write(str(excep) + \"\\n\")\n            bus.close()\n\n\n# vim:filetype=python\n"
  },
  {
    "path": "src/shell/combine.zsh",
    "content": "#!/usr/bin/env zsh\n\nCACHE_PATH=\"$XDG_CACHE_HOME/eww/dunst/notifications.txt\"\nQUOTE_PATH=\"$XDG_CACHE_HOME/eww/dunst/quotes.txt\"\nDEFAULT_QUOTE=\"To fake it is to stand guard over emptiness. \\u2500\\u2500 Arthur Herzog\"\n\nmkdir -p \"${CACHE_PATH:h}\" \"${QUOTE_PATH:h}\" 2> /dev/null\ntouch \"$CACHE_PATH\" \"$QUOTE_PATH\" 2> /dev/null\n\nINTERVAL='0.2'\n\nfunction rand_quote() {\n  local format\n  format=\"$(tr '\\n \\t\\r' 's' < \"$QUOTE_PATH\")\"\n  if [[ \"$format\" != \"\" ]]; then\n    shuf \"$QUOTE_PATH\" | head -n1 \n  else\n    echo \"$DEFAULT_QUOTE\"\n  fi\n}\n\nfunction empty_format() {\n  local format\n  format=(\n    \"(box\"\n    \":class\"\n    \"'disclose-empty-box'\"\n    \":height\"\n    \"750\"\n    \":orientation\"\n    \"'vertical'\"\n    \":space-evenly\"\n    \"false\"\n    \"(image\"\n    \":class\"\n    \"'disclose-empty-banner'\"\n    \":valign\"\n    \"'end'\"\n    \":vexpand\"\n    \"true\"\n    \":path\"\n    \"'./assets/wedding-bells.png'\"\n    \":image-width\"\n    \"250\"\n    \":image-height\"\n    \"250)\"\n    \"(label\"\n    \":vexpand\"\n    \"true\"\n    \":valign\"\n    \"'start'\"\n    \":wrap\"\n    \"true\"\n    \":class\"\n    \"'disclose-empty-label'\" \n    \":text\"\n    \"'$(rand_quote)'))\"\n  )\n  echo \"${format[@]}\"\n}\n\nfunction not_empty() {\n  echo -n \"(box :spacing 20 :orientation 'vertical' :space-evenly false\"\n  if [[ \"$(echo \"$1\" | tr -d ' ')\" != \"\" ]]; then\n    echo -n \"$1\"\n  else\n    echo -n \"$(empty_format)\"\n  fi\n  echo \")\"\n}\n\ncase \"$1\" in\n  rmid) sed -i \"/:identity ':::###::::XXXWWW$2===::'/d\" \"$CACHE_PATH\" ;;\n  sub)\n    old=\"$(tr '\\n' ' ' < \"$CACHE_PATH\")\"\n    not_empty \"$old\"\n    while sleep \"$INTERVAL\"; do\n      new=\"$(tr '\\n' ' ' < \"$CACHE_PATH\")\"\n      if [[ \"$old\" != \"$new\" ]]; then\n        not_empty \"$new\"\n        old=\"$new\"\n      fi\n    done\n    ;;\n  quote) rand_quote ;;\n  cls) echo > \"$CACHE_PATH\" ;;\nesac\n\n# vim:filetype=sh\n"
  },
  {
    "path": "src/shell/github.sh",
    "content": "#!/bin/bash\n\nCONFIG=\"$XDG_CONFIG_HOME/eww/ewwrc\"\nCACHE_DIR=$(jq --raw-output .github.cache_dir \"$CONFIG\")\neval \"CACHE_DIR=${CACHE_DIR}\"\nUSER_NAME=$(jq --raw-output .github.username \"$CONFIG\")\nDATE=$(date +%F)\n\n[ -f \"$CACHE_DIR\" ] || mkdir --parents \"$CACHE_DIR\"\n\nfetch_user_info() {\n  [ -f \"$CACHE_DIR/users-$USER_NAME-$DATE.json\" ] || curl --silent https://api.github.com/users/dharmx > \"$CACHE_DIR/users-$USER_NAME-$DATE.json\"\n  [ -f \"$CACHE_DIR/repos-$USER_NAME-$DATE.json\" ] || curl --silent https://api.github.com/users/dharmx/repos > \"$CACHE_DIR/repos-$USER_NAME-$DATE.json\"\n}\n\nfetch_user_info\ncase \"$1\" in\n  users) cat \"$CACHE_DIR/users-$USER_NAME-$DATE.json\" ;;\n  repos) cat \"$CACHE_DIR/repos-$USER_NAME-$DATE.json\" ;;\nesac\n\n# vim:filetype=sh\n"
  },
  {
    "path": "src/shell/handlers.py",
    "content": "\"\"\"This file is tightly integrated with logger.py and won't work without it.\nUnlike the files cache.py and utils.py.\n\nThis module just redirects specific presets of messages based on the source\n(the application) that sent that message.\n\nThe redirector will call the specific function based off the appname, then\nthe called handler function will evaluate the YUCK literal and replace all\nof the items on the format string with the passed attributes and then return it.\n\"\"\"\n\n# Authored By dharmx <dharmx.dev@gmail.com> under:\n# GNU GENERAL PUBLIC LICENSE\n# Version 3, 29 June 2007\n#\n# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n# Everyone is permitted to copy and distribute verbatim copies\n# of this license document, but changing it is not allowed.\n#\n# Permissions of this strong copyleft license are conditioned on\n# making available complete source code of licensed works and\n# modifications, which include larger works using a licensed work,\n# under the same license. Copyright and license notices must be\n# preserved. Contributors provide an express grant of patent rights.\n#\n# Read the complete license here:\n# <https://github.com/dharmx/vile/blob/main/LICENSE.txt>\n\nimport datetime\n\nimport cache\nimport utils\n\n# WARN: Subject to heavy change.\n# TODO: Use OOP instead of passing around variables\n# TODO: Add fallback / canned lambdas for common handler operations eg: formats[\"appname\"] % attributes\n\n\n# TODO: Handle '\\n' in body / summary.\ndef redir_to_handlers(formats, attributes: dict) -> str:\n    r\"\"\"Function for evaluating which handler function will be called.\n\n    Before calling the handler function it will do some filtering and\n    then actually call the handler which should return a fully evaluated\n    YUCK literal string.\n\n    Arguments:\n        formats:\n            All of the YUCK literal format strings.\n        attributes:\n            Details about the currently sent notification like summary, body, appname, etc.\n\n    Returns:\n        A str that is a primed YUCK literal with passed attributes.\n\n        Example:\n            Format:\n                (_cardimage :identity ':::###::::XXXWWW%(id)s===::'\n                            :close_action './src/shell/logger.py rmid %(id)s'\n                            :limit_body '%(BODY_LIMITER)s'\n                            :limit_summary '%(SUMMARY_LIMITER)s'\n                            :summary '%(summary)s'\n                            :body '%(body)s'\n                            :close '繁'\n                            :image_height 100\n                            :image_width 100\n                            :image '%(iconpath)s'\n                            :appname '%(appname)s'\n                            :icon '%(iconpath)s'\n                            :icon_height 32\n                            :icon_width 32\n                            :timestamp '%(TIMESTAMP)s'\n                            :urgency '%(URGENCY)s')\n            Primed:\n                (_cardimage :identity ':::###::::XXXWWW1658665761===::'\n                            :close_action './src/shell/logger.py rmid 1658665761'\n                            :limit_body '110'\n                            :limit_summary '30'\n                            :summary 'Picom'\n                            :body 'The compositer is now disabled.'\n                            :close '繁'\n                            :image_height 100\n                            :image_width 100\n                            :image '/home/maker/.icons/custom/stock/128/custom-crying.png'\n                            :appname 'Picom'\n                            :icon '/home/maker/.icons/custom/stock/128/custom-crying.png'\n                            :icon_height 32\n                            :icon_width 32\n                            :timestamp '17:59'\n                            :urgency 'CRITICAL')\n    \"\"\"\n\n    # assign the timestamp of the notification.\n    attributes[\"TIMESTAMP\"] = datetime.datetime.now().strftime(\n        attributes[\"TIMESTAMP_FORMAT\"])\n\n    # turn the urgency values (which are in bytes) to a more readable format (string).\n    match attributes[\"urgency\"]:\n        case cache.Urgency.LOW:\n            attributes[\"URGENCY\"] = \"LOW\"\n        case cache.Urgency.NORMAL:\n            attributes[\"URGENCY\"] = \"NORMAL\"\n        case cache.Urgency.CRITICAL:\n            attributes[\"URGENCY\"] = \"CRITICAL\"\n        case _:\n            attributes[\"URGENCY\"] = \"NORMAL\"\n\n    # handle next lines (especially discord code blocks)\n    # NOTE: may make this only discord / firefox specific\n    attributes[\"body\"] = attributes[\"body\"].replace(\"\\n\", \" \")\n    attributes[\"summary\"] = attributes[\"summary\"].replace(\"\\n\", \" \")\n\n    # check if there are any pango tags on the body and summary and if so\n    # it will then remove it.\n    if utils.contains_pango(attributes[\"body\"]):\n        attributes[\"body\"] = utils.strip_pango_tags(attributes[\"body\"])\n    if utils.contains_pango(attributes[\"summary\"]):\n        attributes[\"summary\"] = utils.strip_pango_tags(\n            attributes[\"summary\"]\n        )\n\n    # it will replace all of the apostrophes with \\' i.e. escape them.\n    if \"'\" in attributes[\"body\"]:\n        attributes[\"body\"] = attributes[\"body\"].replace(\"'\", \"\\\\'\")\n    if \"'\" in attributes[\"summary\"]:\n        attributes[\"summary\"] = attributes[\"summary\"].replace(\"'\", \"\\\\'\")\n\n    # only 15 chars would be taken if the summary has non-english charecters.\n    attributes[\"SUMMARY_LIMITER\"] = \"\"\n    summary_lang_char_check = utils.has_non_english_chars(\n        attributes[\"summary\"][:15]\n    )\n    # if summary has asian characters like Japanese, Hindi or, Chinese\n    if summary_lang_char_check[\"CJK\"]:\n        attributes[\"SUMMARY_LIMITER\"] = 14\n    # if summary has Cyrillic characters\n    elif summary_lang_char_check[\"CYR\"]:\n        attributes[\"SUMMARY_LIMITER\"] = 30\n\n    attributes[\"BODY_LIMITER\"] = \"\"\n    body_lang_char_check = utils.has_non_english_chars(attributes[\"body\"][:70])\n    if body_lang_char_check[\"CJK\"]:\n        attributes[\"BODY_LIMITER\"] = 80\n    elif body_lang_char_check[\"CYR\"]:\n        attributes[\"BODY_LIMITER\"] = 110\n    else:\n        attributes[\"BODY_LIMITER\"] = 100\n\n    # redirect to handlers\n    match attributes[\"appname\"]:\n        case \"notify-send\":\n            return notify_send_handler(formats, attributes)\n        case \"volume\":\n            return volume_handler(formats, attributes)\n        case \"brightness\":\n            return brightness_handler(formats, attributes)\n        case \"shot\":\n            return shot_handler(formats, attributes)\n        case \"shot_icon\":\n            return shot_icon_handler(formats, attributes)\n        case \"todo\":\n            return todo_handler(formats, attributes)\n        case \"Spotify\":\n            return Spotify_handler(formats, attributes)\n        case _:\n            return default_handler(formats, attributes)\n\n\n# TODO: Segregate redir_to_handlers into more utility / helper functions.\n# NOTE: Currently it is a bit hard to utilize config values without making the code dirtier.\n# NOTE: For instance shot_handler will eventually load the command strings from the config JSON for attributes[\"DELETE\"]. See logger.py\ndef shot_handler(formats, attributes: dict) -> str:\n    \"\"\"Handler for screenshot related notifications.\n\n    Note that this handler will only handle the screenshots itself.\n    That is, it won't handle it if say.. the screenshot is copied to the clipboard, etc.\n    All of those are handled by shot_icon_handler.\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    # TODO: Make this better\n    attributes[\"DELETE\"] = f\"rm --force \\\\'{attributes['iconpath']}\\\\' && ./src/shell/logger.py rmid {attributes['id']}\"\n    attributes[\"OPEN\"] = f\"xdg-open \\\\'{attributes['iconpath']}\\\\'\"\n\n    # capitalize words i.e. notify_send -> Notify Send\n    attributes[\"appname\"] = utils.prettify_name(attributes[\"appname\"])\n    return formats[\"shot\"] % attributes\n\n\ndef Spotify_handler(formats, attributes: dict) -> str:\n    \"\"\"Handler for notifications related to the official electron client for Spotify.\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    return formats[\"Spotify\"] % attributes\n\n\ndef default_handler(formats, attributes: dict) -> str:\n    r\"\"\"Handler for basic notifications. The notifications that are ordinary.\n    Or, rather the notifications that do not match any of the match-cases in\n    the redir_to_handlers function.\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Example:\n        notify-send Hello\n        notify-send Greetings\n        notify-send -u low -i bell Greetings Ding\\!\n        notify-send -a appname-does-not-exist -i bell Yo\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    attributes[\"appname\"] = utils.prettify_name(attributes[\"appname\"])\n    return formats[\"default\"] % attributes\n\n\ndef notify_send_handler(formats, attributes: dict) -> str:\n    \"\"\"Handler for notifications related to the notify-send command.\n\n    See:\n        default_handler\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    attributes[\"appname\"] = utils.prettify_name(attributes[\"appname\"])\n    return formats[\"notify-send\"] % attributes\n\n\ndef brightness_handler(formats, attributes: dict) -> str:\n    \"\"\"Handler for notifications related to brightness control.\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    attributes[\"appname\"] = utils.prettify_name(attributes[\"appname\"])\n    return formats[\"brightness\"] % attributes\n\n\ndef volume_handler(formats, attributes: dict) -> str:\n    \"\"\"Handler for notifications related to volume control.\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    attributes[\"appname\"] = utils.prettify_name(attributes[\"appname\"])\n    return formats[\"volume\"] % attributes\n\n\n# TODO: Make this general purpose and not just todo specific.\ndef todo_handler(formats, attributes: dict) -> str:\n    \"\"\"Handler for notifications related to todo-bin CLI application by Siddomy.\n\n    The notification body needs to be in a particular format in order for it to register.\n    That is: <completed_tasks> tasks done and <total_tasks> are remaining.\n\n    The fragments <completed_tasks> and <total_tasks> will be picked up by this handler.\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    splitted = attributes[\"body\"].split(\" \")\n    attributes[\"TOTAL\"] = int(splitted[4])\n    attributes[\"DONE\"] = int(splitted[0])\n\n    # handle division by zero\n    attributes[\"PERC\"] = (attributes[\"DONE\"] / attributes[\"TOTAL\"]\n                          ) * 100 if attributes[\"DONE\"] > 0 else 0\n\n    attributes[\"appname\"] = utils.prettify_name(attributes[\"appname\"])\n    return formats[\"todo\"] % attributes\n\n\ndef shot_icon_handler(formats, attributes: dict) -> str:\n    \"\"\"Almost same as default_handler only just it uses a different icon.\n\n    Redundant, but still nice to if you want to add additional\n    functionalities on this particular appname.\n\n    See:\n        default_handler\n        shot_handler\n\n    Arguments:\n        formats: See redir_to_handlers.\n        attributes: See redir_to_handlers.\n\n    Returns:\n        See redir_to_handlers\n    \"\"\"\n    attributes[\"appname\"] = utils.prettify_name(attributes[\"appname\"])\n    return formats[\"shot_icon\"] % attributes\n\n\n# vim:filetype=python\n"
  },
  {
    "path": "src/shell/logger.py",
    "content": "\"\"\"Script for logging desktop notifications in the form of YUCK literal.\n\nGeneral idea is to have a file log the notifications in the form of YUCK\nliteral containing a widget structure which will then be concatenated into\na box widget to take a list-like structure.\n\nThe said structure needs to be re-rendered whenever the log file notices\na change. Like, deleting an entry or, adding an entry or, editing an entry.\n\nNote, if you still have not guessed already, if you make any changes to the\nlog file then the list of notifications will be re-rendered again.\n\"\"\"\n\n# Authored By dharmx <dharmx.dev@gmail.com> under:\n# GNU GENERAL PUBLIC LICENSE\n# Version 3, 29 June 2007\n#\n# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n# Everyone is permitted to copy and distribute verbatim copies\n# of this license document, but changing it is not allowed.\n#\n# Permissions of this strong copyleft license are conditioned on\n# making available complete source code of licensed works and\n# modifications, which include larger works using a licensed work,\n# under the same license. Copyright and license notices must be\n# preserved. Contributors provide an express grant of patent rights.\n#\n# Read the complete license here:\n# <https://github.com/dharmx/vile/blob/main/LICENSE.txt>\n\n# TODO: Utilize JSON instead of YUCK Literals.\n# WARN: This script is under active development and is subject to frequent changes.\n# WARN: Currently this script is quite inefficient. So, you have been warned.\n\nimport json\nimport os\nimport pathlib\nimport sys\n\nimport cache\nimport handlers\nimport utils\n\n# presetted notification format strings i.e. they are just utility items that help reducing the size of code\n# another reason is convenience i.e. it would be easier to have all the formats in one place and defining them\n# would be less cumbersome.\nFORMATS = {\n    \"spotifyd\": \"(_cardimage :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon '%(iconpath)s' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s')\",\n    \"ncspot\": \"(_cardimage :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon '%(iconpath)s' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s')\",\n    \"Spotify\": \"(_cardimage :class 'Spotify-rectangle' :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon '%(iconpath)s' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s')\",\n    \"shot_icon\": \"(_cardimage :class 'shot-image-bord-dashed' :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon '%(iconpath)s' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s')\",\n    \"shot\": \"(_cardscr :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :delete '%(DELETE)s' :open '%(OPEN)s' :summary '%(summary)s' :image '%(iconpath)s' :image_height 250 :image_width 100 :urgency '%(URGENCY)s' :close '繁' :timestamp '%(TIMESTAMP)s')\",\n    \"default\": \"(_cardimage :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon '%(iconpath)s' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s')\",\n    \"notify-send\": \"(_cardimage :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon './assets/browser.png' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s')\",\n    \"empty\": \"(box :class 'disclose-empty-box' :height 750 :orientation 'vertical' :space-evenly false (image :class 'disclose-empty-banner' :valign 'end' :vexpand true :path './assets/wedding-bells.png' :image-width 250 :image-height 250) (label :vexpand true :valign 'start' :wrap true :class 'disclose-empty-label' :text '%(QUOTE)s'))\",\n    \"brightness\": \"(_cardprog :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon '%(iconpath)s' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s' :progress '%(progress)s')\",\n    \"todo\": \"(_cardradial :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :appname '%(appname)s' :progress %(PERC)s :thickness 20.0 :total %(TOTAL)s :done %(DONE)s :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s')\",\n    \"volume\": \"(_cardprog :identity ':::###::::XXXWWW%(id)s===::' :close_action './src/shell/combine.zsh rmid %(id)s' :limit_body '%(BODY_LIMITER)s' :limit_summary '%(SUMMARY_LIMITER)s' :summary '%(summary)s' :body '%(body)s' :close '繁' :image_height 100 :image_width 100 :image '%(iconpath)s' :appname '%(appname)s' :icon '%(iconpath)s' :icon_height 32 :icon_width 32 :timestamp '%(TIMESTAMP)s' :urgency '%(URGENCY)s' :progress '%(progress)s')\"\n}\n\nif __name__ == \"__main__\":\n    # load only notification related options from the config JSON\n    config = json.loads(\n        pathlib.PosixPath(\n            os.path.expandvars(\"$XDG_CONFIG_HOME/eww/ewwrc\")\n        ).read_text()\n    )[\"notify\"]\n\n    # kind of like the sliding window algorithm i.e. will pop the notifications if this number is reached\n    HISTORY_LIMIT = config[\"limit\"]\n    # file path where the notifications will be saved\n    CACHE_PATH = os.path.expandvars(config[\"cache_path\"])\n    # directory path where the notifications will be saved\n    # WARN: Do not edit this; Only edit this if you know what you are doing!\n    CACHE_DIR = os.path.dirname(CACHE_PATH)\n    # file path where the quotes are stored\n    QUOTE_PATH = os.path.expandvars(config[\"quote_path\"])\n    # fallback if the quote DB has no quotes in them\n    DEFAULT_QUOTE = config[\"default_quote\"]\n    # Watcher interval; Reflects how fast disclose will be rendered.\n    INTERVAL = config[\"interval\"]\n\n    # handle IndexError\n    if len(sys.argv) < 2:\n        sys.argv = (\"dummy\", \"dummy\")\n    match sys.argv[1]:\n        case \"subscribe\":\n            utils.create_parents_file(CACHE_PATH)  # mkdir --parents\n            utils.create_parents_file(QUOTE_PATH)  # mkdir --parents\n            utils.watcher(\n                CACHE_PATH,\n                lambda contents: sys.stdout.write(\n                    \"(box :spacing 20 :orientation 'vertical' :space-evenly false \" +\n                    # handle empty and display fallback\n                    contents.replace(\"\\n\", \" \") + \")\\n\"\n                    if contents.strip()\n                    else (\n                        (FORMATS[\"empty\"] + \"\\n\")\n                        % {\"QUOTE\": utils.get_rand_quote(QUOTE_PATH, DEFAULT_QUOTE)}\n                    )\n                ),\n                INTERVAL,\n            )\n        case \"rmid\":\n            # grep based off the notification id and then remove that YUCK literal entry from the log file\n            utils.file_matched_index_rm(\n                CACHE_PATH, f\":identity ':::###::::XXXWWW{sys.argv[2]}===::'\"\n            )\n        case \"stats\":\n            sys.stdout.write(\n                json.dumps(\n                    utils.parse_and_print_stats(pathlib.PosixPath(CACHE_PATH).read_text())\n                )\n                + \"\\n\"\n            )\n        case \"rm\":\n            utils.file_rm_line(CACHE_PATH, int(sys.argv[2]))\n        case \"quote\":\n            sys.stdout.write(utils.get_rand_quote(QUOTE_PATH, DEFAULT_QUOTE))\n        case \"cls\":\n            pathlib.PosixPath(CACHE_PATH).write_text(\"\")\n        case \"init\":\n            def master_callback(details: dict):\n                r\"\"\"Callback function that handles fetching and logging the notification details.\n\n                Arguments:\n                    details: the JSON that should have a similar structure to the following:\n                    {\n                       \"summary\": \"Hello\",\n                       \"body\": \"Who's there?\",\n                       \"id\": 16444442,\n                       \"urgency\": \"LOW\"\n                    }\n                \"\"\"\n                details[\"TIMESTAMP_FORMAT\"] = config[\"timestamp\"]\n                if not config[\"excluded_appnames\"] or details[\"appname\"] not in config[\"excluded_appnames\"]:\n                    saved_path = handlers.redir_to_handlers(FORMATS, details)\n                    # actual point where the notification is being logged.\n                    utils.file_add_line(CACHE_PATH, saved_path, HISTORY_LIMIT)\n\n            # start eavesdropping on the org.freedesktop.Notifications interface and log the notification info\n            cache.Eavesdropper(master_callback, CACHE_DIR).eavesdrop()\n\n# vim:filetype=python\n"
  },
  {
    "path": "src/shell/mpdaemon.py",
    "content": "\"\"\"Script to cache and fetch the current track details for MPD\"\"\"\n\n# Authored By dharmx <dharmx.dev@gmail.com> under:\n# GNU GENERAL PUBLIC LICENSE\n# Version 3, 29 June 2007\n#\n# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n# Everyone is permitted to copy and distribute verbatim copies\n# of this license document, but changing it is not allowed.\n#\n# Permissions of this strong copyleft license are conditioned on\n# making available complete source code of licensed works and\n# modifications, which include larger works using a licensed work,\n# under the same license. Copyright and license notices must be\n# preserved. Contributors provide an express grant of patent rights.\n#\n# Read the complete license here:\n# <https://github.com/dharmx/vile/blob/main/LICENSE.txt>\n\nimport json\nimport os\nimport pathlib\nimport utils\nimport time\nimport sys\n\nimport mpd\nfrom mpd.base import CommandError\n\nclass MPDHandler:\n    \"\"\"A class that represents the MPD daemon.\"\"\"\n    def __init__(self, prefix: str, cache, default):\n        \"\"\"Initialize the mpd client and get all the boiler plate code out of the way.\n        Then check if the cache paths and directory exists or, not. Create them if they don't.\n\n        Arguments:\n            prefix: The directory of the source i.e. the place where your music is stored.\n                    This must be the same as your mpd config.\n            cache: The directory where all of the cover art caches are stored.\n            default: The path to the default / fallback cover art.\n        \"\"\"\n        self._client: mpd.MPDClient = mpd.MPDClient()\n        self._client.timeout = 3\n        self._client.connect(\"localhost\", 6600)\n\n        # equivalent: mkdir --parents\n        self.prefix, self.cache, self.default = prefix, cache, default\n        pathlib.Path(self.prefix).mkdir(parents=True, exist_ok=True)\n        pathlib.Path(self.cache).mkdir(parents=True, exist_ok=True)\n\n    def _validatepath(self, path: str) -> str:\n        \"\"\"Add an extra slash if the file is in a sub-directory as passing \n        a.ext to dirname will result in returning an empty string.\n\n        Arguments:\n            path: The location of the file.\n        \"\"\"\n        path = os.path.dirname(path)\n        return f\"{path}/\" if \"/\" in path or path else path\n\n    def _embeddedcover(self, key: str) -> str | bytes:\n        \"\"\"If there is no embedded cover art in the current playing track file then\n        return a path to the fallback image instead.\n\n        Arguments:\n            key: the name of the track.\n\n        Returns:\n            A str when there is no embedded cover art, bytes otherwise.\n        \"\"\"\n        content = {\"binary\": self.default}\n        try:\n            self._client.readpicture(key)\n            content = self._client.albumart(key)\n        except CommandError:\n            content = {\"binary\": self.default}\n        return content[\"binary\"]\n\n    def get(self, key: str) -> str:\n        \"\"\"Return the path to the cover art if it exists.\n\n        Arguments:\n            key: Title of the song.\n        \"\"\"\n        music: str = (\n            f\"{self.cache}/{self._validatepath(key)}{pathlib.Path(key).stem}.png\"\n        )\n        return music if os.path.exists(music) else self.default\n\n    def create(self, key: str) -> bool:\n        \"\"\"If embedded cover exists for the current track then it fetches\n        that in the form of bytes and then writes that to a file. In other\n        words it caches that cover art.\n\n        Arguments:\n            key: Path to the current playing song.\n\n        Returns:\n            A bool, True if a cache file is created, False otherwise.\n        \"\"\"\n        # a/b/c/d.e: dirname -> a/b/c | stem -> d\n        # generate cache path -> cache + dirname + stem + \".png\"\n        cachefull = f\"{self._validatepath(key)}{pathlib.Path(key).stem}\"\n        if not os.path.exists(f\"{self.cache}/{cachefull}.png\"):\n            if covercontent := self._embeddedcover(f\"{cachefull}.mp3\"):\n                if type(covercontent) != str:  # check\n                    pathlib.Path(os.path.dirname(f\"{self.cache}/{key}\")).mkdir(\n                        parents=True, exist_ok=True\n                    )\n                    with open(f\"{self.cache}/{cachefull}.png\", \"wb\") as target:\n                        target.write(covercontent)  # then write bytes to file\n                return True\n            return False\n        return False  # will return True iff a file is created\n\n    def metadatajson(self, tojson=True) -> str | dict:\n        \"\"\"Fetch current song metadata, tags and player statistics\n        and pack the cover image as well.\n\n        Arguments:\n            tojson: Return json format string if set to True, otherwise just print a raw pythonic dict.\n\n        Returns:\n            A JSON str if tojson is True, a dict otherwise.\n        \"\"\"\n        metadata: dict = self._client.status()\n        metadata[\"current\"] = {\n            \"file\": config[\"default_art\"],\n            \"artist\": \"Unknown\",\n            \"albumartist\": \"Unknown\",\n            \"title\": \"Unknown\",\n            \"album\": \"Unknown\",\n        }\n\n        metadata[\"current\"] |= self._client.currentsong()\n        metadata[\"stats\"] = self._client.stats()\n        metadata[\"current\"][\"file\"] = self.get(metadata[\"current\"][\"file\"])\n        metadata[\"current\"][\"status\"] = self._client.status()[\"state\"]\n        metadata[\"current\"][\"x\"] = self._client.status()\n\n        if \"xfade\" not in metadata[\"current\"][\"x\"]:\n            metadata[\"current\"][\"x\"][\"xfade\"] = 0\n\n        # simplify image + apply dither for handling gradients + get histogram -> it will yield 8 hex codes\n        colors = utils.img_dark_bright_col(metadata['current']['file'])\n\n        # pick out the brightest and the darkest color and use that as foreground | background.\n        metadata[\"current\"][\"bright\"] = colors[3]\n        metadata[\"current\"][\"dark\"] = colors[-1]\n        return json.dumps(metadata) if tojson else metadata\n\n\n    def cacheplaylist(self):\n        \"\"\"Cache all of the cover art in the current playlist.\"\"\"\n        [self.create(file[6:]) for file in self._client.playlist()]\n\n    def cachedatatbase(self):\n        \"\"\"Cache all tracks that are currently in the database.\"\"\"\n        self._client.rescan()\n        self._client.update()\n\n        for file in self._client.listall():\n            todict: dict = dict(file)\n            if \"directory\" not in todict:\n                self.create(todict[\"file\"])\n\n    def subscribe(self, interval: float = 1.0) -> str:\n        \"\"\"A simple watcher that monitors track changes. And prints\n        the current track info on track change in JSON format.\n\n        Arguments:\n            interval: Interval between checking the current playing track for changes.\n        \"\"\"\n        old = self.metadatajson(tojson=False)[\"current\"]\n        sys.stdout.write(json.dumps(old) + \"\\n\")\n        sys.stdout.flush()\n        while not time.sleep(interval):\n            new = self.metadatajson(tojson=False)[\"current\"]\n            old_formatted = f\"{old['artist']}-{old['title']}-{old['album']}-{old['status']}-{old['x']['repeat']}-{old['x']['volume']}-{old['x']['random']}-{old['x']['single']}-{old['x']['consume']}-{old['x']['xfade']}\"\n            new_formatted = f\"{new['artist']}-{new['title']}-{new['album']}-{new['status']}-{new['x']['repeat']}-{new['x']['volume']}-{new['x']['random']}-{new['x']['single']}-{new['x']['consume']}-{new['x']['xfade']}\"\n\n            if old_formatted != new_formatted:\n                sys.stdout.write(json.dumps(new) + \"\\n\")\n                sys.stdout.flush()\n                old = new\n\n    def close(self):\n        \"\"\"Close the close and then disconnect from the mpd client.\"\"\"\n        self._client.close()\n        self._client.disconnect()\n\n\nif __name__ == \"__main__\":\n    with open(os.path.expandvars(\"$XDG_CONFIG_HOME/eww/ewwrc\"), encoding=\"utf8\") as file:\n        # load config values\n        config: dict = json.loads(file.read())[\"player\"]\n        config[\"default_art\"] = os.path.expandvars(config[\"default_art\"])\n        config[\"mpd_cache\"] = os.path.expandvars(config[\"mpd_cache\"])\n\n    handler = MPDHandler(\n        os.path.expandvars(\"$XDG_MUSIC_DIR\"),\n        config[\"mpd_cache\"],\n        config[\"default_art\"],\n    )\n\n    # cache the database and look if there are any music files that haven't been cached yet\n    # if there are then cache them.\n    handler.cachedatatbase()\n    handler.subscribe(1)\n    handler.close()\n\n# vim:filetype=python\n"
  },
  {
    "path": "src/shell/playerctl.py",
    "content": "\"\"\"Script that interacts with playerctl to manipulate all MPRIS players.\nHere it is mostly being used for getting the current track metadata and feeding it\nto an YUCK listener variable.\n\"\"\"\n\n# Authored By dharmx <dharmx.dev@gmail.com> under:\n# GNU GENERAL PUBLIC LICENSE\n# Version 3, 29 June 2007\n#\n# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n# Everyone is permitted to copy and distribute verbatim copies\n# of this license document, but changing it is not allowed.\n#\n# Permissions of this strong copyleft license are conditioned on\n# making available complete source code of licensed works and\n# modifications, which include larger works using a licensed work,\n# under the same license. Copyright and license notices must be\n# preserved. Contributors provide an express grant of patent rights.\n#\n# Read the complete license here:\n# <https://github.com/dharmx/vile/blob/main/LICENSE.txt>\n\nimport json\nimport os\nimport sys\nimport pathlib\nimport shutil\nimport utils\n\n# supress GIO warnings.\nimport gi\ngi.require_version(\"Playerctl\", \"2.0\")\n\nfrom gi.repository import GLib, Playerctl\nimport requests\n\n\ndef on_metadata(*args):\n    \"\"\"The current song metadata and the player metadata is parsed\n    and packed into a nice dictionary then to a JSON format string\n    which is then print to STDOUT.\n\n    There is a fallback dict already in place, which gets overwritten\n    with newer / actual values (if they exist).\n\n    Arguments:\n        args: contains the current active MPRIS player object at [0]\n              and a metadata dictionary at [1].\n    \"\"\"\n    # sourcery skip: identity-comprehension, remove-redundant-constructor-in-dict-union\n    metadata = {\n        \"mpris:artUrl\": default_cover,\n        \"xesam:artist\": \"Unknown\",\n        \"xesam:title\": \"Unknown\",\n        \"xesam:album\": \"Unknown\",\n        \"status\": \"Stopped\",\n    } | {key: val for key, val in dict(args[1]).items() if val} # overwrite\n\n    name = args[0].props.player_name\n    metadata[\"player\"] = name or \"none\"\n    metadata[\"status\"] = args[0].props.status\n\n    # prettify artist list\n    if not \"\".join(metadata[\"xesam:artist\"]):\n        # [] -> \"Unknown\"\n        metadata[\"xesam:artist\"] = \"Unknown\"\n    elif len(metadata[\"xesam:artist\"]) == 1:\n        # [\"Dazbee\"] -> \"Dazbee\"\n        metadata[\"xesam:artist\"] = metadata[\"xesam:artist\"][0]\n    elif len(metadata[\"xesam:artist\"]) == 2:\n        # [\"Eir Aoi\", \"LiSA\"] -> \"Eir Aoi and LiSA\"\n        metadata[\"xesam:artist\"] = \"and\".join(metadata[\"xesam:artist\"])\n    else:\n        # [\"Masato\", \"coladrain\", \"Hiroaki Tsutsumi\"] -> \"Masato, coladrain and Hiroaki Tsutsumi\"\n        metadata[\"xesam:artist\"] = \"and\".join(\n            [\",\".join(metadata[\"xesam:artist\"][:-1]), metadata[\"xesam:artist\"][-1]]\n        )\n\n    # apply fallback cover image\n    if (\n        \"file://\" not in metadata[\"mpris:artUrl\"]\n        and default_cover not in metadata[\"mpris:artUrl\"]\n    ):\n        # cache the album art and return the cache path.\n        metadata[\"mpris:artUrl\"] = cache_and_get(metadata)\n\n    metadata |= get_bright_dark_from_cover(metadata[\"mpris:artUrl\"])\n    sys.stdout.write(json.dumps(metadata) + \"\\n\")\n    sys.stdout.flush()\n\n\ndef on_play_pause(player, *_):\n    \"\"\"Callback function to regenerate and print the current state of the\n    player when it is paused.\n\n    Arguments:\n        player: A Player object.\n    \"\"\"\n    on_metadata(player, player.props.metadata)\n\n\ndef init_player(name):\n    \"\"\"Creates a Player object by passing a PlayerName object.\n    It basically prepares and equips the player with instructions\n    (callbacks) on what to do if a player:\n        - receives track metadata\n        - if a player is paused\n        - if a player is not paused\n    Finally it will add it to the PlayerManager object.\n\n    Arguments:\n        name: A PlayerName object.\n    \"\"\"\n    player = Playerctl.Player.new_from_name(name)\n    player.connect(\"metadata\", on_metadata, manager)\n    player.connect(\"playback-status::playing\", on_play_pause, manager)\n    player.connect(\"playback-status::paused\", on_play_pause, manager)\n    manager.manage_player(player)\n\n\ndef player_null_check(player_manager) -> bool:\n    \"\"\"Checks if there are any players being managed by the manager and print\n    the default metadata if there are none.\n\n    Arguments:\n        player_manager: A PlayerManager object.\n\n    Returns:\n        A bool i.e. True if there are no active players, False otherwise.\n    \"\"\"\n    if not len(player_manager.props.player_names):\n        metadata =  {\n            \"mpris:artUrl\": default_cover,\n            \"xesam:artist\": \"Unavailable\",\n            \"xesam:title\": \"Unavailable\",\n            \"xesam:album\": \"Unavailable\",\n            \"status\": \"Stopped\",\n            \"player\": \"none\",\n        }\n        metadata |= get_bright_dark_from_cover(default_cover) # overwrite fallback\n        sys.stdout.write(json.dumps(metadata) + \"\\n\")\n        sys.stdout.flush()\n        return False\n    return True\n\n\ndef on_name_appeared_vanished(player_manager, name):\n    \"\"\"Callback function for taking action when a player gets either connected or,\n    disconnected from the manager.\n\n    Arguments:\n        player_manager: A PlayerManager object.\n        name: A PlayerName object.\n    \"\"\"\n    if player_null_check(player_manager):\n        init_player(name)\n\n\ndef gen_hex_path_encode(unique_path_name: list) -> str:\n    \"\"\"Convert all characters to uppercased hex string.\n\n    Arguments:\n        unique_path_name: The normal string that needs to be converted to hex code.\n\n    Returns:\n        A uppercased JSON str.\n    \"\"\"\n    return \"\".join([\"%X\" % ord(char) for char in unique_path_name])\n\n\ndef fetch_save_cover(link: str, save_path: str) -> bool:\n    \"\"\"Fetch media cover and save the bytes to a file path.\n\n    Arguments:\n        link: The URL link to the image.\n        save_path: The location where the cache will be saved.\n\n    Returns:\n        A bool i.e. True if the image is actually cached False, otherwise.\n    \"\"\"\n    data = requests.get(link, stream=True)\n    if data.status_code == 200:\n        data.raw.decode_content = True\n        with open(save_path, \"wb\") as file:\n            shutil.copyfileobj(data.raw, file)\n        return True\n    return False\n\n\ndef cache_and_get(metadata: dict) -> str:\n    \"\"\"Handles creating the cache directory if it does not exist,\n    handles generating a alphanumeric (hex) name with a combination\n    of the artist name(s) and the album name.\n\n    Arguments:\n        metadata: A dictionary containing the current playing media metadata.\n\n    Returns:\n        A str of the generated cache path or, the fallback path.\n    \"\"\"\n    player_dir = f\"{pctl_cache}/{metadata['player']}\"\n    if metadata[\"player\"] not in [\"none\", \"firefox\"]:\n        # artist: Fifth Dawn, song: Duality -> artist: 4669667468204461776E, song: 4475616C697479\n        new_meta = {\n            \"artist\": gen_hex_path_encode(metadata[\"xesam:artist\"]),\n            \"album\": gen_hex_path_encode(metadata[\"xesam:album\"]),\n        }\n        # finally -> path/to/4669667468204461776E/4475616C697479.png\n        gen_path = f\"{player_dir}/{new_meta['artist']}\"\n        if not os.path.isdir(gen_path):\n            pathlib.Path(gen_path).mkdir(parents=True, exist_ok=True)\n\n        cover_path = f\"{gen_path}/{new_meta['album']}.png\"\n        if not os.path.exists(cover_path):\n            try:\n                return (\n                    cover_path\n                    if fetch_save_cover(metadata[\"mpris:artUrl\"], cover_path)\n                    else default_cover\n                )\n            except requests.exceptions.ConnectionError:\n                return default_cover\n        return cover_path\n    return default_cover\n\n\ndef get_bright_dark_from_cover(image_path: str) -> dict:\n    \"\"\"Get the brightest and lightest colors from an image and save them to a\n    JSON file if it isn't already. Then return the path to that JSON file.\n\n    Arguments:\n        image_path: The location of the image.\n\n    Returns:\n        A dict of bright and dark color eg: {'bright': '#292929', 'dark': '#BEBFC1'}\n    \"\"\"\n    if image_path == default_cover:\n        return {'bright': '#292929', 'dark': '#BEBFC1'}\n\n    # if the color cache already exists then load that and return\n    color_cached = pathlib.PosixPath(f\"{os.path.dirname(image_path)}/colors.json\")\n    if color_cached.is_file():\n        return json.loads(color_cached.read_text())\n\n    # generate the brightest and darkest color out of the image\n    colors = utils.img_dark_bright_col(image_path)\n\n    # since Firefox only caches one thumbnail at a time and overwrites it\n    # we need to keep on regenerating the colors and return them without \n    # caching them.\n    parsed_colors = {\"bright\": colors[3], \"dark\": colors[9]}\n    if \"firefox-mpris\" in image_path:\n        return parsed_colors\n\n    # for other players like spotify - save / cache the thumbnail and return its\n    # cache path instead\n    color_cached.write_text(json.dumps(parsed_colors))\n    return parsed_colors\n\n\nif __name__ == \"__main__\":\n    with open(os.path.expandvars(\"$XDG_CONFIG_HOME/eww/ewwrc\"), encoding=\"utf8\") as file:\n        config: dict = json.loads(file.read())[\"player\"]\n        default_cover = os.path.expandvars(config[\"default_art\"])\n        pctl_cache = os.path.expandvars(config[\"pctl_cache\"])\n\n    manager = Playerctl.PlayerManager()\n    manager.connect(\"name-appeared\", on_name_appeared_vanished)\n    manager.connect(\"name-vanished\", on_name_appeared_vanished)\n\n    # loop through and initialize all registered and active MPRIS player on first run.\n    [init_player(name) for name in manager.props.player_names]\n\n    # if there are no player on the first run then print fallback / dummy metadata.\n    # WARN: Note that a really bad error is thrown when this check is not done.\n    # WARN: IIRC it is from the underlying C library so, you can't really try-except that.\n    if player_null_check(manager):\n        player = Playerctl.Player()\n        on_metadata(player, player.props.metadata)\n\n    try:\n        loop = GLib.MainLoop()\n        loop.run()\n    except (KeyboardInterrupt, Exception) as excep:\n        loop.quit()\n\n\n# vim:filetype=python\n"
  },
  {
    "path": "src/shell/pollution.py",
    "content": "from datetime import datetime\nimport utils\nimport json\nimport os\nimport sys\nimport pathlib\n\n\ndef prepare_link(options: dict, token: str) -> str | None:\n    link = f\"http://api.openweathermap.org/data/2.5/air_pollution?appid={token}\"\n    link_fragment = \"\"\n    if options[\"latitude\"] and options[\"longitude\"]:\n        link_fragment += f\"&lat={options['latitude']}&lon={options['longitude']}\"\n    return f\"{link}{link_fragment}\" if link_fragment else None\n\n\ndef cache_pollution_get(config: dict) -> dict:\n    location = None\n    if config[\"location\"][\"method\"] == \"automatic\":\n        location = utils.auto_locate(config[\"location\"][\"cache_dir\"])\n    elif config[\"location\"][\"method\"] == \"manual\":\n        location = config[\"location\"]\n    else:\n        sys.stderr.write(\"Unknown Method!\\n\")\n        exit(1)\n    token = config[\"tokens\"][\"openweather\"]\n    prepared_link = prepare_link(location, token)\n    cache_path = pathlib.PosixPath(f\"{config['pollution']['cache_dir']}/pollution-{datetime.now().strftime('%F')}.json\")\n    if not cache_path.is_file():\n        def callback(metadata: dict) -> dict:\n            metadata[\"icons\"] = config[\"pollution\"][\"icons\"]\n            return metadata\n        utils.fetch_save(prepared_link, str(cache_path), callback)\n    return cache_path.read_text()\n\n\nif __name__ == \"__main__\":\n    CONFIG = json.loads(pathlib.PosixPath(os.path.expandvars(\"$XDG_CONFIG_HOME/eww/ewwrc\")).read_text())\n    CONFIG[\"pollution\"][\"cache_dir\"] = os.path.expandvars(CONFIG[\"pollution\"][\"cache_dir\"])\n    CONFIG[\"location\"][\"cache_dir\"] = os.path.expandvars(CONFIG[\"location\"][\"cache_dir\"])\n    pathlib.PosixPath(CONFIG[\"pollution\"][\"cache_dir\"]).mkdir(parents=True, exist_ok=True)\n    sys.stdout.write(cache_pollution_get(CONFIG) + \"\\n\")\n    sys.stdout.flush()\n\n\n# vim:filetype=python\n"
  },
  {
    "path": "src/shell/uptime.awk",
    "content": "#!/usr/bin/env --split-string=awk --file\n\n{\n  if ($0 ~ \"hours\") sub(\"hours\", \"h\", $0)\n  if ($0 ~ \"hour\") sub(\"hour\", \"h\", $0)\n\n  if ($0 ~ \"minutes\") sub(\"minutes\", \"m\", $0)\n  if ($0 ~ \"minute\") sub(\"minute\", \"m\", $0)\n\n  if ($0 ~ \"seconds\") sub(\"seconds\", \"s\", $0)\n  if ($0 ~ \"second\") sub(\"second\", \"s\", $0)\n\n  if ($0 ~ \"days\") sub(\"days\", \"d\", $0)\n  if ($0 ~ \"day\") sub(\"day\", \"d\", $0)\n\n  if ($0 ~ \"weeks\") sub(\"weeks\", \"w\", $0)\n  if ($0 ~ \"week\") sub(\"week\", \"w\", $0)\n\n  gsub(\",\", \"\", $0)\n  print $2$3\" \"$4$5\" \"$6$7\n}\n\n# vim:filetype=awk\n"
  },
  {
    "path": "src/shell/utils.py",
    "content": "\"\"\"Utility module. Shared across almost all of the python scripts / modules.\"\"\"\n\n# Authored By dharmx <dharmx.dev@gmail.com> under:\n# GNU GENERAL PUBLIC LICENSE\n# Version 3, 29 June 2007\n#\n# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n# Everyone is permitted to copy and distribute verbatim copies\n# of this license document, but changing it is not allowed.\n#\n# Permissions of this strong copyleft license are conditioned on\n# making available complete source code of licensed works and\n# modifications, which include larger works using a licensed work,\n# under the same license. Copyright and license notices must be\n# preserved. Contributors provide an express grant of patent rights.\n#\n# Read the complete license here:\n# <https://github.com/dharmx/vile/blob/main/LICENSE.txt>\n\nimport json\nimport os\nimport pathlib\nimport random\nimport re\nimport sys\nimport time\nimport typing\nimport unicodedata\n\nfrom wand.image import COLORSPACE_TYPES, Image\nfrom html.parser import HTMLParser\nfrom io import StringIO\n\nimport dbus\nimport gi\n\n# supress GIO warnings\ngi.require_version(\"Gtk\", \"3.0\")\ngi.require_version(\"GdkPixbuf\", \"2.0\")\n\nimport requests\nfrom gi.repository import GdkPixbuf, Gio, GLib, Gtk\n\n\nclass PangoStripper(HTMLParser):\n    def __init__(self):\n        super().__init__()\n        self.reset()\n        self.strict = False\n        self.convert_charrefs = True\n        self.text = StringIO()\n\n    def handle_data(self, d):\n        self.text.write(d)\n\n    def get_data(self):\n        return self.text.getvalue()\n\n\ndef contains_pango(string: str) -> bool:\n    \"\"\"Checks if a string contains HTML tags or not. Since a pango string has to have at least two tags\n\n    Arguments:\n        string: The Pango markup format string.\n\n    Returns:\n        A bool value i.e. whether a has pango markup or not.\n    \"\"\"\n    return any(item in string for item in [\"<span>\", \"</a>\", \"</span>\"])\n\n\ndef strip_pango_tags(pango: str) -> str:\n    \"\"\"Removes HTML tags like <span>, <span align='left'>, etc.\n\n    Arguments:\n        pango: The Pango format string that needs to be stripped of its tags.\n\n    Returns:\n        A str without the tags.\n    \"\"\"\n    stripper = PangoStripper()\n    stripper.feed(pango)\n    return stripper.get_data()\n\n\ndef create_parents_file(file_path: str):\n    '''A replication of [ -f \"$FILE_PATH\" ] || mkdir --parents \"$FILE_PATH\"\n\n    Arguments:\n        file_path: The location of the file.\n    '''\n    pathlib.PosixPath(os.path.dirname(file_path)).mkdir(\n        parents=True, exist_ok=True)\n    pathlib.PosixPath(file_path).touch(exist_ok=True)\n\n\ndef watcher(file_path: str, callback: typing.Callable, interval: int, initial: bool = True):\n    \"\"\"A file watcher function that executes a callback function if any change is made to a file.\n\n    Arguments:\n        file_path: The file location that needs to be monitored.\n        callback: A callback function that would be invoked when any change is noticed.\n        interval: The time rate at which the file will be checked for changes.\n        initial: Initially execute the callback once before entering the watch loop.\n    \"\"\"\n    try:\n        old = pathlib.PosixPath(file_path).read_text()\n        if initial:\n            callback(old)\n        while not time.sleep(interval):\n            new = pathlib.PosixPath(file_path).read_text()\n            if new != old:\n                callback(new)\n                old = new\n    except KeyboardInterrupt:\n        sys.stdout.write(\"Closed.\\n\")\n    except FileNotFoundError:\n        sys.stderr.write(\"The path does not exist!\\n\")\n    except Exception as excep:\n        sys.stderr.write(f\"{excep}\\n\")\n\n\ndef get_rand_quote(file_path: str, default_quote: str) -> str:\n    \"\"\"Get a random quote or, rather a random line.\n\n    Arguments:\n        file_path: The location of the file.\n        default_quote: Fallback quote if the file doesn't exist r, is empty.\n    \"\"\"\n    loaded_quotes: str = pathlib.PosixPath(file_path).read_text().strip()\n    return random.choice(loaded_quotes.splitlines()) if loaded_quotes else default_quote\n\n\ndef file_matched_index_rm(file_path: str, pattern: str):\n    \"\"\"Removes line from a file if a pattern matches that line.\n\n    Arguments:\n        file_path: The location of the file.\n        pattern: Pattern to match the line that needs to be removed.\n    \"\"\"\n    posix_file_path = pathlib.PosixPath(file_path)\n    lines = posix_file_path.read_text().splitlines()\n\n    # skip the line if pattern matches\n    rm_index_lines = [\n        lines[index]\n        for index in range(len(lines))\n        if not re.search(pattern, lines[index])\n    ]\n\n    if len(lines) != len(rm_index_lines):\n        posix_file_path.write_text(\"\\n\".join(rm_index_lines))\n\n\ndef file_rm_line(file_path: str, position: int | bool | range = True):\n    \"\"\"Ranged line removal, indexed line removal and stack-like (pop / reverse pop) line removal.\n\n    Arguments:\n        file_path: The location of the file.\n        position: If the value is of type:\n            range: then that the lines starting from that range will be removed.\n            int: then that specific file line number will be removed.\n            bool: True will pop and False will pop from the end.\n    \"\"\"\n    file = pathlib.PosixPath(file_path)\n    match str(type(position)):\n        case \"<class 'int'>\":\n            file_contents = file.read_text().splitlines()\n            # no need to run the loop if all you need to do is remove the first line\n            if position == 0:\n                file_rm_line(file_path, position=True)\n                return\n            elif position == len(file_contents) - 1:\n                file_rm_line(file_path, position=False)\n                return\n            line_removed_contents = []\n            # skip the line that matches the position value.\n            for index in range(len(file_contents)):\n                if index != position:\n                    line_removed_contents += [file_contents[index]]\n            file.write_text(\"\\n\".join(line_removed_contents))\n        # filter falsey and truthy and use the actual bool class signature\n        case \"<class 'bool'>\":\n            file_contents = file.read_text().splitlines()\n            file_contents = file_contents[1:] if position else file_contents[:-1]\n            file.write_text(\"\\n\".join(file_contents))\n        case \"<class 'range'>\":\n            if not position:\n                file.write_text(\"\")\n                return\n            file_contents = file.read_text().splitlines()\n            write_contents = []\n            # keep on skipping the lines if they are in the range.\n            for index in range(len(file_contents)):\n                if index not in position:\n                    write_contents += [file_contents[index]]\n            file.write_text(\"\\n\".join(write_contents))\n\n\ndef prettify_name(name: str) -> str:\n    \"\"\"Transforms 'Hello-World' -> 'Hello World', 'notify-send++lol' -> 'Notify Send Lol'\n\n    Arguments:\n        name: The string that needs to be prettified.\n\n    Returns:\n        A prettified str.\n    \"\"\"\n    return \" \".join(\n        item.capitalize()\n        for item in name.replace(\"-\", \" \").replace(\"_\", \" \").split(\" \")\n    )\n\n\ndef file_add_line(file_path: str, write_contents: str, limit: int, top: bool = True):\n    \"\"\"Functions like sliding window algorithm <https://towardsdev.com/sliding-window-algorithm-145f8e201a64>\n\n    That is after the file hits a certain line limit, lines from the behind will be dropped (older entries)\n    and THEN the newer ones will be entered.\n\n    Arguments:\n        file_path: The location of the file.\n        write_contents: The contents that needs to be written to the file.\n        limit: The line limit.\n        top: Adds new entry at the beginning of the file if True, at the end otherwise.\n    \"\"\"\n    file = pathlib.PosixPath(file_path)\n    file_contents = file.read_text().splitlines()\n    if len(file_contents) == limit:\n        file_contents = file_contents[:-1]\n    file_contents = (\n        [write_contents] + file_contents if top else file_contents + [write_contents]\n    )\n    file.write_text(\"\\n\".join(file_contents))\n\n\ndef parse_and_print_stats(file_contents: str) -> dict:\n    \"\"\"Looks the words CRITICAL, LOW and NORMAL and calcuates its frequency.\n\n    Arguments:\n        file_contents: the string that needs to be calculated for frequency.\n\n    Returns:\n        Individual frequency of the words in dict format.\n        {\"CRITICAL\": 10.00, \"NORMAL\": 85.00, \"LOW\": 5.00}\n    \"\"\"\n    stats = {\"critical\": 0, \"low\": 0, \"normal\": 0, \"total\": 0}\n\n    for line in file_contents.splitlines():\n        if \"CRITICAL\" in line:\n            stats[\"critical\"] += 1\n            stats[\"total\"] += 1\n        elif \"LOW\" in line:\n            stats[\"low\"] += 1\n            stats[\"total\"] += 1\n        elif \"NORMAL\" in line:\n            stats[\"normal\"] += 1\n            stats[\"total\"] += 1\n\n    # handle division / zero\n    stats[\"critical\"] = (\n        stats[\"critical\"] * 100 /\n        stats[\"total\"] if stats[\"critical\"] > 0 else 0\n    )\n    stats[\"normal\"] = (\n        stats[\"normal\"] * 100 / stats[\"total\"] if stats[\"normal\"] > 0 else 0\n    )\n    stats[\"low\"] = stats[\"low\"] * 100 / \\\n        stats[\"total\"] if stats[\"low\"] > 0 else 0\n    return stats\n\n\ndef has_non_english_chars(string: str) -> dict:\n    \"\"\"Check if there is any CJK / Cyrillic characters in the given string.\n\n    Arguments:\n        string: the string that needs to be checked.\n\n    Returns:\n        A dict containing True / False for keys representing if such characters exist or not.\n        {\"CJK\": True, \"CYR\": False} for string value: \"おはようございます means Good Morning!\"\n    \"\"\"\n    return {\n        \"CJK\": any(unicodedata.category(char) == \"Lo\" for char in string),\n        \"CYR\": any(unicodedata.category(char) == \"Lu\" for char in string),\n    }\n\n\ndef unwrap(value: dbus.Array\n           | dbus.Boolean\n           | dbus.Byte\n           | dbus.Dictionary\n           | dbus.Double\n           | dbus.Int16\n           | dbus.ByteArray\n           | dbus.Int32\n           | dbus.Int64\n           | dbus.Signature\n           | dbus.UInt16\n           | dbus.UInt32\n           | dbus.UInt64\n           | dbus.String) -> str | int | list | tuple | float | dict | bool | bytes:\n    \"\"\"Try to trivially translate a dictionary's elements into nice string formatting.\n\n    Arguments:\n        value: A type out of:\n            dbus.Boolean,\n            dbus.Byte,\n            dbus.Dictionary,\n            dbus.Double,\n            dbus.Int16,\n            dbus.ByteArray,\n            dbus.Int32,\n            dbus.Int64,\n            dbus.Signature,\n            dbus.UInt16,\n            dbus.UInt32,\n            dbus.UInt64 and dbus.String\n\n    Returns:\n        A str or int or list or tuple or float or dict or bool or bytes depending on the value.\n    \"\"\"\n    if isinstance(value, dbus.ByteArray):\n        return \"\".join([str(byte) for byte in value])\n    if isinstance(value, (dbus.Array, list, tuple)):\n        return [unwrap(item) for item in value]\n    if isinstance(value, (dbus.Dictionary, dict)):\n        return dict([(unwrap(x), unwrap(y)) for x, y in value.items()])\n    if isinstance(value, (dbus.Signature, dbus.String)):\n        return str(value)\n    if isinstance(value, dbus.Boolean):\n        return bool(value)\n    if isinstance(\n        value,\n        (dbus.Int16, dbus.UInt16, dbus.Int32,\n         dbus.UInt32, dbus.Int64, dbus.UInt64),\n    ):\n        return int(value)\n    if isinstance(value, dbus.Byte):\n        return bytes([int(value)])\n    return value\n\n\ndef save_img_byte(px_args: typing.Iterable, save_path: str):\n    \"\"\"Converts image data to an image file.\n\n    See <https://docs.gtk.org/gdk-pixbuf/ctor.Pixbuf.new_from_bytes.html> for the whole description.\n\n    Arguments:\n        px_args: Should contain an iterable in the following format.\n        [image_width, image_height, rowstride, has_alpha, bits_per_sample, _, image_bytes]\n        save_path: the filepath where this pixbuf should be saved to.\n    \"\"\"\n    # https://specifications.freedesktop.org/notification-spec/latest/ar01s08.html\n    # https://specifications.freedesktop.org/notification-spec/latest/ar01s05.html\n    GdkPixbuf.Pixbuf.new_from_bytes(\n        width=px_args[0],\n        height=px_args[1],\n        has_alpha=px_args[3],\n        data=GLib.Bytes(px_args[6]),\n        colorspace=GdkPixbuf.Colorspace.RGB,\n        rowstride=px_args[2],\n        bits_per_sample=px_args[4],\n    ).savev(save_path, \"png\")\n\n\ndef get_gtk_icon_path(icon_name: str, size: int = 128) -> str:\n    \"\"\"Returns the icon path by the specified name from your current icon theme.\n\n    Recursively search for lower sizes until 32x32 and\n    return a fallback if the requested path does not exists.\n\n    Arguments:\n        icon_name: Icon name as per the icon naming specification:\n        <https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html>\n        size: the pixel size (widthxheight -> heightxheight -> size) of the requested icon.\n    \"\"\"\n    if size < 32:\n        return os.path.expandvars(\"$XDG_CONFIG_HOME/eww/assets/bell.png\")\n    if info := Gtk.IconTheme.get_default().lookup_icon(icon_name, size, 0):\n        return info.get_filename()\n    return get_gtk_icon_path(icon_name, size - 1)\n\n\ndef get_mime_icon_path(mimetype: str, size: int = 32) -> str:\n    \"\"\"Gets the default icon path from the current GTK icon theme for the specified mime type.\n\n    Arguments:\n        mimetype: The file type like png, json, etc.\n        size: The of the returned icon\n\n    Returns:\n        A str that is the path to the requested icon.\n    \"\"\"\n    icon = Gio.content_type_get_icon(mimetype)\n    theme = Gtk.IconTheme.get_default()\n    if info := theme.choose_icon(icon.get_names(), size, 0):\n        return info.get_filename()\n\n\ndef get_location() -> dict | None:\n    try:\n        response = requests.get('https://api64.ipify.org?format=json').json()\n        ip_address = response[\"ip\"]\n        response = requests.get(f'https://ipapi.co/{ip_address}/json/').json()\n        return {\n            \"latitude\": response.get(\"latitude\"),\n            \"longitude\": response.get(\"longitude\"),\n            \"city\": response.get(\"city\"), \n            \"country\": response.get(\"country_name\"),\n            \"lang\": response.get(\"languages\").split(\",\")[0],\n        }\n    except requests.exceptions.ConnectionError:\n        return None\n\n\ndef auto_locate(cache_dir: str) -> dict | None:\n    cache_posix_path = pathlib.PosixPath(f\"{cache_dir}/location.json\")\n    if not cache_posix_path.is_file():  # assuming the directory exists\n        fetched_location = get_location()\n        if not fetched_location:\n            return None\n\n        cache_posix_path.write_text(json.dumps(fetched_location))\n        return fetched_location\n    return json.loads(cache_posix_path.read_text())\n\n\ndef fetch_save(link: str, save_path: str, callback: typing.Callable = None) -> bool:\n    try:\n        data = requests.get(link)\n        if data.status_code == 200:\n            metadata = data.json()\n            if callback:\n                metadata = callback(metadata)\n            pathlib.PosixPath(save_path).write_text(json.dumps(metadata))\n            return True\n        return False\n    except requests.exceptions.ConnectionError:\n        return False\n\n\ndef img_dark_bright_col(filepath: str, colors: int = 10) -> tuple:\n    with Image(filename=filepath) as image:\n        image.quantize(\n            number_colors=colors, \n            colorspace_type=COLORSPACE_TYPES[21], \n            dither=True, measure_error=False, treedepth=8)\n        return tuple(\n            \"#%02X%02X%02X\" % (item.red_int8, item.green_int8, item.blue_int8) \n            for item in image.histogram)\n\n\nif __name__ == \"__main__\":\n    match sys.argv[1]:\n        case \"histogram\":\n            image_path = sys.argv[2]\n            histogram_colors = int(sys.argv[3])\n            sys.stdout.write(json.dumps(img_dark_bright_col(image_path, histogram_colors)) + \"\\n\")\n            sys.stdout.flush()\n\n# vim:filetype=python\n"
  },
  {
    "path": "src/shell/weather.py",
    "content": "import json\nimport os\nimport pathlib\nimport sys\nfrom datetime import datetime\n\nimport utils\n\n\ndef prepare_link(options: dict, token: str) -> str | None:\n    link = f\"https://api.openweathermap.org/data/2.5/weather?appid={token}\"\n    link_fragment = \"\"\n\n    if options[\"latitude\"] and options[\"longitude\"]:\n        # always give priority to lat and long\n        link_fragment += f\"&lat={options['latitude']}&lon={options['longitude']}\"\n    else:\n        if options[\"city\"]:\n            link_fragment += f\"&q={options['city']}\"\n        if not options[\"country_code\"]:\n            return\n        if options[\"zip\"] and not options[\"city\"]:\n            link_fragment += f\"&zip={options['zip']}\"\n        link_fragment += f\",{options['country_code']}\"\n\n    if options[\"lang\"]:\n        # https://openweathermap.org/current#multi\n        link_fragment += f\"&lang={options['lang']}\"\n\n    if options[\"units\"]:\n        # standard, metric, imperial\n        link_fragment += f\"&units={options['units']}\"\n\n    return f\"{link}{link_fragment}\" if link_fragment else None\n\n\ndef assign_glyph(icon_name: str, icons: dict) -> str:\n    try:\n        return os.path.expandvars(icons[icon_name])\n    except KeyError:\n        return os.path.expandvars(icons[\"default\"])\n\n\ndef day_night(path_frag: str, time_of_day: str, date_time: datetime) -> pathlib.PosixPath:\n    return pathlib.PosixPath(f\"{path_frag}/weather-{date_time.strftime('%F')}-{time_of_day}.json\")\n\n\ndef cache_and_get(config: dict, fallback: str) -> pathlib.PosixPath:\n    now = datetime.now()\n    date_path = day_night(config[\"weather\"][\"cache_dir\"], \"day\", now)\n    if now.hour > 15 or now.hour < 4:\n        date_path = day_night(config[\"weather\"][\"cache_dir\"], \"night\", now)\n\n    if config[\"location\"][\"method\"] == \"automatic\":\n        if location_data := utils.auto_locate(config[\"location\"][\"cache_dir\"]):\n            config[\"weather\"] |= location_data\n    prepared_link = prepare_link(config[\"weather\"], config[\"tokens\"][\"openweather\"])\n\n    def callback(metadata: dict) -> dict:\n        for index in range(len(metadata[\"weather\"])):\n            metadata[\"weather\"][index][\"glyph\"] = assign_glyph(metadata[\"weather\"][0][\"icon\"], config[\"weather\"][\"icons\"])\n            metadata[\"weather\"][index][\"image\"] = assign_glyph(metadata[\"weather\"][0][\"icon\"], config[\"weather\"][\"images\"])\n            metadata[\"weather\"][index][\"image_colors\"] = utils.img_dark_bright_col(metadata[\"weather\"][index][\"image\"])\n        return metadata\n    if not date_path.is_file() and not utils.fetch_save(prepared_link, str(date_path), callback):\n        return fallback\n    return json.loads(date_path.read_text())\n\n\nif __name__ == \"__main__\":\n    if len(sys.argv) < 2:\n        sys.stderr.write(\"No such option!\")\n\n    # NOTE: Change these only if you know what you are doing.\n    CONFIG_PATH = os.path.expandvars(\"$XDG_CONFIG_HOME/eww/ewwrc\")\n\n    FALLBACK = {\n        \"weather\": [\n            {\n                \"main\": \"NA\",\n                \"glyph\": \"\",\n                \"image\": \"$XDG_CONFIG_HOME/eww/assets/01.jpg\",\n                \"icon\": \"03d\"\n            }\n        ],\n        \"main\": {\n            \"temp\": \"NA\",\n            \"feels_like\": \"NA\",\n            \"temp_min\": \"NA\",\n            \"temp_max\": \"NA\",\n            \"pressure\": \"NA\",\n            \"humidity\": \"NA\"\n        },\n        \"sys\": {\n            \"country\": \"NA\"\n        },\n        \"name\": \"NA\"\n    }\n\n    CONFIG = json.loads(pathlib.PosixPath(CONFIG_PATH).read_text())\n    CONFIG[\"weather\"][\"cache_dir\"] = os.path.expandvars(CONFIG[\"weather\"][\"cache_dir\"])\n    CONFIG[\"location\"][\"cache_dir\"] = os.path.expandvars(CONFIG[\"location\"][\"cache_dir\"])\n\n    pathlib.PosixPath(CONFIG[\"weather\"][\"cache_dir\"]).mkdir(parents=True, exist_ok=True)\n    pathlib.PosixPath(CONFIG[\"location\"][\"cache_dir\"]).mkdir(parents=True, exist_ok=True)\n\n    match sys.argv[1]:\n        case \"fetch\":\n            _metadata = cache_and_get(CONFIG, FALLBACK)\n            sys.stdout.write(json.dumps(_metadata) + \"\\n\")\n            sys.stdout.flush()\n        case \"gist\":\n            _metadata = cache_and_get(CONFIG, FALLBACK)\n            _box = []\n            for index in range(len(_metadata[\"weather\"])):\n                _box += [_metadata[\"weather\"][index][sys.argv[2]]]\n            sys.stdout.write(\", \".join(_box) if len(_box) > 2 else \" and \".join(_box))\n            sys.stdout.write(\"\\n\")\n            sys.stdout.flush()\n"
  },
  {
    "path": "src/shell/workspaces.zsh",
    "content": "#!/usr/bin/env zsh\n\n# Authored By dharmx <dharmx.dev@gmail.com> under:\n# GNU GENERAL PUBLIC LICENSE\n# Version 3, 29 June 2007\n#\n# Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n# Everyone is permitted to copy and distribute verbatim copies\n# of this license document, but changing it is not allowed.\n#\n# Permissions of this strong copyleft license are conditioned on\n# making available complete source code of licensed works and\n# modifications, which include larger works using a licensed work,\n# under the same license. Copyright and license notices must be\n# preserved. Contributors provide an express grant of patent rights.\n#\n# Read the complete license here:\n# <https://github.com/dharmx/vile/blob/main/LICENSE.txt>\n\n# Gist\n# Controller script (from MVC pattern) for the vertigo widget.\n# Gives out node_state (window_state?) and desktop_state (workspace_state?)\n\n# read these https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm46435614881776\n# although you could guess what these mean by their prefixes and names\n# Types:\n#  - State\n#  - Tag\n#  - Layout\nnames=(STATE_FOCUSED STATE_OCCUPIED STATE_URGENT STATE_EMPTY TAG_HIDDEN TAG_STICKY TAG_PRIVATE TAG_LOCKED TAG_MARKED TAG_EMPTY LAYOUT_MONOCLE LAYOUT_TILED LAYOUT_FULLSCREEN LAYOUT_PSEUDO_TILED LAYOUT_FLOATING LAYOUT_EMPTY)\n# NOTE: layouts include monocle as well and the rest are just node states. The names are not entirely misleading as\n# NOTE: the STATE_* indicates desktop_state and LAYOUT_* indicates node_state hence the following todo.\n# TODO: Clarify the diff between node_state and desktop_state items in the names array (rename).\n\npushd \"$XDG_CONFIG_HOME/eww\"\n\nindex=1 # IKR? ZSH arrays start with 1\njq --raw-output --compact-output '.desktops|values[][]' \"./ewwrc\" | while read -r icon\ndo\n  # load the glyphs from the config and eval them into env vars\n  eval \"${names[$index]}='$icon'\"\n  index=$((index+1))\ndone\n\nfunction _make_button() {\n  #  --- --- --- -----------------------------------------\n  # | 1 | 2 | 3 |                                         |\n  #  --- --- --- -----------------------------------------\n  # 1, 2 and 3 are the workspaces that are in the form of a button\n  # this yuck literal represents that one workspace button, which is\n  # then combined in a box\n  # param $1: workspace label eg 1 / 2 / 3 ...\n  # param $2: states out of urgent / occupied / focused / empty\n  # param $3: actual workspace value as defined by the WM\n  echo \"{\\\"class\\\":\\\"vertigo-button vertigo-workspace vertigo-workspace-$2\\\",\\\"tooltip\\\":\\\"workspace: $1 state: $2\\\",\\\"onclick\\\":\\\"bspc desktop --focus $3\\\",\\\"label\\\":\\\"$1\\\"}\"\n}\n\nfunction _wrap_desktop_yuck() {\n  # combined \n  local buffered='['\n  alias query=\"bspc query --names --desktops --desktop\"\n  # newlined str -> spaced str -> array, eg: \"1\\n2\\n3\" -> \"1 2 3\" -> (1 2 3)\n  local _focused=(${$(query .focused)//$'\\n'/ })\n  local _urgent=(${$(query .urgent)//$'\\n'/ })\n  local _occupied=(${$(query .occupied)//$'\\n'/ })\n  local _local=(${$(query .local)//$'\\n'/ })\n  seq ${#_local} | while read -r index; do\n    local current=${_local[$index]}\n    local state=\"local\"\n    # ie -> [current in _occupied] -> returns a value greater than the\n    # length of _occupied if it does not exist\n    # if it exists then the index number is returned (neat)\n    # you'll get the rest right?\n    # translation of the line below: has(current, _occupied) < len(_occupied)\n    if [[ ${_occupied[(ie)$current]} -le ${#_occupied} ]]; then\n      # another thing to notice are priorities\n      # i.e. occupied.focused is preferred over occupied.occupied\n      if [[ ${_focused[(ie)$current]} -le ${#_focused} ]]; then \n        _local[$index]=\"$STATE_FOCUSED\" && state=\"focused\"\n      else\n        _local[$index]=\"$STATE_OCCUPIED\" && state=\"occupied\"\n      fi\n    elif [[ ${_urgent[(ie)$current]} -le ${#_urgent} ]]; then\n      _local[$index]=\"$STATE_URGENT\" && state=\"urgent\"\n    elif [[ ${_focused[(ie)$current]} -le ${#_focused} ]]; then \n      _local[$index]=\"$STATE_FOCUSED\" && state=\"focused\"\n    else\n      _local[$index]=\"$STATE_EMPTY\" && state=\"local\"\n    fi\n    buffered+=$(_make_button $_local[$index] $state $index)\n    buffered+=\",\"\n  done\n  buffered=\"${buffered::-1}]\"\n  echo \"$buffered\"\n  unalias query\n}\n\nfunction _make_label() {\n  # this is another functionality that this script provides i.e. the current node_state (focused)\n  # it will indicate whether the node / window is tiled or, floating, etc.\n  # param $1: node_label\n  # param $2: node_state\n  # param $3: node_state\n  echo \"{\\\"onmiddleclick\\\":\\\"bspc desktop --layout next\\\",\\\"class\\\":\\\"vertigo-button vertigo-node-button vertigo-node-button-$3\\\",\\\"tooltip\\\":\\\"node: $2\\\",\\\"label\\\":\\\"$1\\\"}\"\n}\n\nfunction _wrap_node_yuck() {\n  # gets the current focused node state and makes a label for it accordingly\n  # which will then be evaluated by eww and rendered on the widget\n  alias query=\"bspc query --nodes --node\"\n\n  # TODO: is there a way to not use jq?\n  monocle=$(bspc query --tree --desktop | jq --raw-output .layout)\n\n  if [ $(query .focused.tiled) ]; then \n    # this behaviour has been adapted from polybar i.e. if a desktop is not empty\n    # then it will be checked whether that desktop is in monocle layout or not \n    # otherwise, it will show that the layout is empty (like if the desktop is in tiled instead)\n    [ $monocle = monocle ] \\\n      && echo $(_make_label \"$LAYOUT_MONOCLE\" \"monocle\" \"monocle\") \\\n      || echo $(_make_label \"$LAYOUT_TILED\" \"tiled\" \"tiled\")\n  elif [ $(query .focused.floating) ]; then \n    echo $(_make_label \"$LAYOUT_FLOATING\" \"float\" \"float\")\n  elif [ $(query .focused.fullscreen) ]; then \n    echo $(_make_label \"$LAYOUT_FULLSCREEN\" \"full\" \"full\")\n  elif [ $(query .focused.pseudo_tiled) ]; then \n    echo $(_make_label \"$LAYOUT_PSEUDO_TILED\" \"pseudo\" \"pseudo\")\n  else\n    # this behaviour has been adapted from polybar i.e. if a desktop is empty\n    # then it will be checked whether that desktop is in monocle layout or not \n    # otherwise, it will show that the layout is empty (like if the desktop is in tiled instead)\n    [ $monocle = monocle ] \\\n      && echo $(_make_label \"$LAYOUT_MONOCLE\" \"monocle\" \"monocle\") \\\n      || echo $(_make_label \"$LAYOUT_EMPTY\" \"other\" \"other\")\n  fi\n  unalias query\n}\n\nfunction subscribe_node() {\n  # echo the focused node state if the WM state changes i.e. focus desktop / remove node / add node\n  # (meaning focus to another desktop / close a window / open a window)\n  # i.e. it continuously feeds the current state of the focused node / window into\n  # a listener variable in a yuck file.\n  _wrap_node_yuck && bspc subscribe \\\n    desktop_layout  \\\n    node_state      \\\n    node_remove     \\\n    node_add        \\\n    desktop_focus | while read -r _ do; _wrap_node_yuck done\n}\n\nfunction subscribe_desktop() {\n  # similar to subscribe_node this feeds the current desktop states\n  # if any desktop number has been increased / decreased\n  # if any node / window has been moved to a different desktop\n  _wrap_desktop_yuck && bspc subscribe \\\n    desktop_add     \\\n    desktop_remove  \\\n    desktop_focus   \\\n    node_transfer | while read -r _ do; _wrap_desktop_yuck done\n}\n\nfunction create() {\n  # gets current total number of desktops and then add one to it\n  # i.e. dynamically increase the workspace amount.\n  local workspaces=(${$(bspc query --names --desktops --desktop .local)//$'\\n'/ })\n  workspaces+=$((${#workspaces} + 1))\n  bspc monitor -d $workspaces[*]\n}\n\nfunction remove() {\n  # opposite of the create function as defined above\n  local workspaces=(${$(bspc query --names --desktops --desktop .local)//$'\\n'/ })\n  unset 'workspaces[-1]'\n  bspc monitor -d $workspaces[*]\n}\n\ncase $1 in\n  subscribe_desktop) subscribe_desktop ;;\n  subscribe_node) subscribe_node ;;\n  create) create ;;\n  remove) remove ;;\n  *) echo \"Invalid option!\" ;;\nesac\n\npopd\nunset index ${names[*]} names # redundant but clean ^_^\n\n\n# vim:ft=zsh\n"
  },
  {
    "path": "src/yuck/_env.yuck",
    "content": "(defpoll mpd_progress :interval \"1s\" `mpc | grep \"%)\" | awk '{print $4}' | tr -d '(%)'`)\n(defpoll mpd_current :interval \"1s\" `mpc | grep \"#\" | awk '{print $3}' | sed 's|/.*||g'`)\n(defpoll mpd_duration :interval \"10s\" `mpc --format=%time% current`)\n\n(deflisten mpd_sub \"./.venv/bin/python ./src/shell/mpdaemon.py\")\n(defpoll mpd_level :interval \"0.3s\" `mpc volume 2>/dev/stdout | awk -F: '{gsub(\"%| \", \"\", $2); print $2}'`)\n(deflisten pctl_sub \"./.venv/bin/python ./src/shell/playerctl.py\")\n\n(defpoll hostname :interval \"1000s\" \"hostnamectl hostname\")\n(defpoll username :interval \"1000s\" \"echo $USER\")\n\n(defpoll weather :interval \"500s\" \"./.venv/bin/python ./src/shell/weather.py fetch\")\n(defpoll weather_gist :interval \"20h\" :run-while false \"./.venv/bin/python ./src/shell/weather.py gist description\")\n\n(defpoll net :interval \"100s\" `nmcli -terse -fields SIGNAL,ACTIVE device wifi | awk --field-separator ':' '{if($2==\"yes\")print$1}'`)\n(defpoll ssid :interval \"100s\" `nmcli -terse -fields SSID,ACTIVE device wifi | awk --field-separator ':' '{if($2==\"yes\")print$1}'`)\n\n(defvar vertigo_volume_toggle \"pamixer --toggle-mute\")\n(defvar profile \"./assets/profile.png\")\n\n(defpoll dunst :interval \"1s\" \"[ $(dunstctl is-paused) = false ] && echo  || echo \")\n(defpoll redshift :interval \"1s\" \"pidof redshift &>/dev/null && echo  || echo \")\n\n(defpoll volume_status :interval \"1s\" \"[ $(pamixer --get-volume-human) = muted ] && echo 了 || echo 醴\")\n(defpoll volume_level :interval \"1s\" \"pamixer --get-volume\")\n\n(defpoll mic_level :interval \"1s\" `pamixer --source 1 --get-volume`)\n(defpoll mic_status :interval \"1s\" `[ $(pamixer --source 1 --get-volume-human) = muted ] && echo  || echo `)\n\n(defpoll time :interval \"1s\" `date +'{\"hour\":\"%H\",\"min\":\"%M\",\"sec\":\"%S\",\"pretty\":\"%a, %e %b\",\"day\":\"%A\",\"month\":\"%B\",\"dom\":\"%e\",\"year\":\"%Y\",\"day_num\":\"%d\",\"month_num\":\"%m\",\"year_num\":\"%y\"}'`)\n(defpoll uptime :interval \"48h\" \"uptime --pretty | ./src/shell/uptime.awk\")\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/_lib.yuck",
    "content": "(defwidget _sundialinfo [class halign ?hexpand ?prefix]\n  (label :class \"${class}-sundial-label\" :halign halign :hexpand hexpand\n             :text \"${prefix}${time.hour >= 2 && time.hour <= 4 ? \"Early Morning\" :\n               time.hour <= 5 ? \"Dawn\" :\n               time.hour >= 6 && (time.hour <= 8 && time.min <= 59) ? \"Morning\" :\n               time.hour >= 9 && (time.hour <= 11 && time.min <= 59) ? \"Late Morning\" :\n               time.hour == 12 && time.min <= 29 ? \"Midday\" :\n               time.hour >= 12 && time.hour <= 16 ? \"Afternoon\" :\n               time.hour > 16 && time.hour <= 17 ? \"Late Afternoon\" :\n               (time.hour >= 17 && time.min <= 1) || (time.hour <= 18 && time.min <= 20) ? \"Early Evening\" :\n               time.hour >= 18 && time.hour <= 19 ? \"Dusk\" :\n               time.hour > 19 && time.hour <= 21 ? \"Late Evening\" :\n               time.hour > 21 ? \"Night\" : \"Midnight\"}\"))\n\n(defwidget _profile [path size ?tooltip ?button-class ?image-class ?M ?L ?R]\n  (button :onmiddleclick M \n          :onclick L \n          :onrightclick R \n          :timeout \"2s\" \n          :tooltip tooltip\n          :class \"vertigo-button ${button-class}\"\n    (image :path path \n           :image-width size \n           :class \"vertigo-image ${image-class}\")))\n\n(defwidget _infobatnolbl [battery status one two three four five six seven charge ?class]\n  (box :class \"lumin-battery-box ${class}\"\n       :space-evenly false\n       :spacing 8\n    (label :class \"lumin-battery-icon ${class}\" :text {status == 'Charging' ? charge :\n      battery < 15 ? seven :\n        battery < 30 ? six :\n          battery < 45 ? five :\n            battery < 60 ? four :\n              battery < 75 ? three :\n                battery < 95 ? two : one})))\n\n(defwidget _infonetnolbl [strength offline excellent good okay slow ?class]\n  (box :class \"lumin-network-box ${class}\"\n       :space-evenly false\n       :spacing 8\n    (label :class \"lumin-network-icon ${class}\" :text {strength == \"\" ? offline :\n      strength < 26 ? slow :\n        strength < 51 ? okay :\n          strength < 76 ? good : excellent})))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/avatar/_init.yuck",
    "content": "(include \"./src/yuck/avatar/lib/_init.yuck\")\n(include \"./src/yuck/avatar/_layout.yuck\")\n\n(defwindow avatar :stacking \"fg\" :windowtype \"normal\" :wm-ignore true\n  :geometry (geometry :width \"26%\" :height \"100%\" :anchor \"right center\") \n  (avatar_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/avatar/_layout.yuck",
    "content": "(defwidget avatar_layout []\n  (box :orientation \"vertical\"\n       :space-evenly false\n       :class \"avatar-layout-box\"\n    (box :space-evenly false\n         :class \"avatar-headers\"\n      (label :text \"AVATAR\"\n             :class \"avatar-headers-label\"\n             :halign \"start\"\n             :hexpand true)\n      (button :onclick \"eww close avatar\" \n              :class \"avatar-headers-close\" \"署\"))\n    (scroll :class \"avatar-scroll\"\n            :height 1000\n            :hscroll false\n            :vscroll true\n      (box :space-evenly false\n           :class \"avatar-box-inner\"\n           :orientation \"vertical\"\n           :vexpand true\n           :hexpand true\n           :spacing 20\n        (_avaquick :ocvol \"pamixer --set-volume $(printf %d {})\"\n                   :ocmic \"pamixer --source 1 --set-volume $(printf %d {})\"\n                   :allhead \"All\"\n                   :alllbl \"\"\n                   :allcmd \"pamixer --toggle-mute; pamixer --source 1 --toggle-mute; mpc volume 0\"\n                   :auhead \"Sink\"\n                   :aucmd \"pamixer --toggle-mute\"\n                   :aulbl volume_status\n                   :mihead \"Source\"\n                   :micmd \"pamixer --source 1 --toggle-mute\"\n                   :milbl mic_status\n                   :scup `mpc volume $((${mpd_sub.x.volume}+5))`\n                   :scdn `mpc volume $((${mpd_sub.x.volume}-5))`\n                   :mphead \"Mpd\"\n                   :mpcmd {mpd_sub.x.volume == \"0\" ? \"mpc volume 30\" : \"mpc volume 0\"}\n                   :mplbl {mpd_sub.status == \"play\" ? \"\" : \"\"}\n                   :mplvl mpd_level\n                   :aulvl volume_level\n                   :milvl mic_level)\n        (avatar_pctl :icon \"\"\n                     :separator \"ﭲ\"\n                     :album \"${pctl_sub['xesam:album']}\"\n                     :title \"${pctl_sub['xesam:title']}\"\n                     :artist \"${pctl_sub['xesam:artist']}\"\n                     :prev \"playerctl previous\"\n                     :prev_icon \"\"\n                     :next \"playerctl next\"\n                     :next_icon \"\"\n                     :player \"${pctl_sub.player}\"\n                     :minimal \"playerctld shift\"\n                     :minimal_icon \"\"\n                     :pause_icon \"\"\n                     :play_icon \"\")\n        (avatar_mpd :current mpd_current\n                    :duration mpd_duration\n                    :progress mpd_progress\n                    :command \"mpc seek {}%\"\n                    :icon \"\"\n                    :separator \"ﭲ\"\n                    :album \"${mpd_sub.album}\"\n                    :title \"${mpd_sub.title}\"\n                    :artist \"${mpd_sub.artist}\"\n                    :like \"dunstify MPD Liked\"\n                    :like_icon \"\"\n                    :prev \"mpc prev\"\n                    :prev_icon \"\"\n                    :next \"mpc next\"\n                    :next_icon \"\"\n                    :minimal \"dunstify MPD minimal\"\n                    :minimal_icon \"\"\n                    :pause_icon \"\"\n                    :play_icon \"\")\n        (_mpdx :repeatc {mpd_sub.x.repeat == \"1\" ? \"ava-mpdx-repeat-on\" : \"ava-mpdx-repeat-off\"}\n               :randomc {mpd_sub.x.random == \"1\" ? \"ava-mpdx-random-on\" : \"ava-mpdx-random-off\"}\n               :singlec {mpd_sub.x.single == \"1\" ? \"ava-mpdx-single-on\" : \"ava-mpdx-single-off\"}\n               :consumec {mpd_sub.x.consume == \"1\" ? \"ava-mpdx-consume-on\" : \"ava-mpdx-consume-off\"}\n               :xfadec {mpd_sub.x.xfade == \"0\" ? \"ava-mpdx-xfade-off\" : \"ava-mpdx-xfade-on\"}\n               :repeatlbl \"\"\n               :randomlbl \"\"\n               :singlelbl \"\"\n               :consumelbl \"\"\n               :xfadelbl \"\"\n               :shufflelbl \"\"\n               :shufflecmd \"mpc shuffle\"\n               :randomcmd \"mpc random\"\n               :repeatcmd \"mpc repeat\"\n               :singlecmd \"mpc single\"\n               :consumecmd \"mpc consume\"\n               :xfadecmd {mpd_sub.x.xfade == \"0\" ? \"mpc crossfade 2\" : \"mpc crossfade 0\"})))))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/avatar/lib/_init.yuck",
    "content": "(include \"./src/yuck/avatar/lib/_mpd.yuck\")\n(include \"./src/yuck/avatar/lib/_pctl.yuck\")\n(include \"./src/yuck/avatar/lib/_small.yuck\")\n(include \"./src/yuck/avatar/lib/_quick.yuck\")\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/avatar/lib/_mpd.yuck",
    "content": "(defwidget avatar_mpd [\n  current duration progress icon separator album \n  title artist like like_icon prev prev_icon next \n  next_icon minimal minimal_icon play_icon \n  pause_icon command]\n  (box :orientation \"vertical\" \n       :class \"avatar-mpd-box\" \n       :space-evenly false\n       :spacing 20\n       :style \"\n         background-image: radial-gradient(\n           circle farthest-side at left,\n           ${mpd_sub.bright} 48%,\n           rgba(30, 33, 40, 0.7) 80%),\n           url(\\\"${mpd_sub.file}\\\"\n         );\n         color: ${mpd_sub.dark}\n       \"\n\n    (box :class \"avatar-mpd-header-box\"\n         :space-evenly false\n\n      (box :hexpand true\n           :space-evenly false\n        (label :class \"avatar-mpd-icon\"\n               :text icon)\n        (label :class \"avatar-mpd-name\"\n               :text \"MPD\")\n        (label :class \"avatar-mpd-separator\"\n               :text separator)\n        (label :class \"avatar-mpd-album ${album == \"\" ? \"avatar-mpd-album-null\" : \"\"}\" \n               :style \"color: ${mpd_sub.dark}\"\n               :text album\n               :limit-width 30))\n\n      (button :onclick minimal\n              :class \"avatar-mpd-minimal-box\"\n              :halign \"end\"\n        (label :class \"avatar-mpd-minimal\"\n               :text minimal_icon)))\n\n    (box :orientation \"vertical\" \n         :class \"avatar-title-artist-box\"\n         :space-evenly false\n         :halign \"start\"\n      (label :class \"avatar-mpd-title\"\n             :halign \"start\"\n             :text title\n             :wrap true\n             :xalign 0.0\n             :limit-width 30)\n      (label :class \"avatar-mpd-artist\"\n             :text artist\n             :halign \"start\"\n             :limit-width 30))\n\n    (box :class \"avatar-mpd-controls\"\n         :space-evenly false\n         :spacing 20\n\n      (button :onclick like\n              :class \"avatar-mpd-button-like\"\n        (label :class \"avatar-mpd-label-like\"\n               :text like_icon))\n      (button :onclick prev \n              :class \"avatar-mpd-button-prev\" \n        (label :class \"avatar-mpd-label-prev\" \n               :text prev_icon))\n\n      (button :onclick \"mpc toggle\"\n              :class \"avatar-mpd-button-playback\"\n        (label :class \"avatar-mpd-label-playback\" \n               :text \"${mpd_sub.status == \"play\" ? play_icon : pause_icon}\"))\n      (button :onclick next \n              :class \"avatar-mpd-button-next\" \n        (label :class \"avatar-mpd-label-next\" \n               :text next_icon)))\n\n    (scale :class \"avatar-mpd-progress\"\n           :value progress\n           :onchange command\n           :min 0\n           :max 100\n           :active true)\n\n    (box :class \"avatar-mpd-footer\"\n         :space-evenly false\n      (label :class \"avatar-mpd-label-current\" \n             :text current \n             :hexpand true \n             :halign \"start\")\n      (label :class \"avatar-mpd-label-duration\" \n             :text duration \n             :halign \"end\"))))\n\n(defwidget _mpdx [shufflelbl repeatlbl randomlbl singlelbl consumelbl xfadelbl\n                  shufflecmd randomcmd repeatcmd singlecmd consumecmd xfadecmd\n                  randomc repeatc singlec consumec xfadec]\n  (box :width 450 :space-evenly false :class \"ava-mpdx-box\" :halign \"center\" :hexpand true :spacing 30 :orientation \"vertical\"\n    (box :space-evenly false :class \"ava-mpdx-shuffle-repeat-random\" :halign \"center\" :vexpand true :spacing 30\n      (button :onclick shufflecmd :class \"ava-mpdx-btn ava-mpdx-btn-shuffle\" shufflelbl)\n      (button :onclick repeatcmd :class \"ava-mpdx-btn ava-mpdx-btn-repeat ${repeatc}\" repeatlbl)\n      (button :onclick randomcmd :class \"ava-mpdx-btn ava-mpdx-btn-random ${randomc}\" randomlbl))\n    (box :space-evenly false :class \"ava-mpdx-single-consume-xfade\" :halign \"center\" :vexpand true :spacing 30\n      (button :onclick singlecmd :class \"ava-mpdx-btn ava-mpdx-btn-single ${singlec}\" singlelbl)\n      (button :onclick consumecmd :class \"ava-mpdx-btn ava-mpdx-btn-consume ${consumec}\" consumelbl)\n      (button :onclick xfadecmd :class \"ava-mpdx-btn ava-mpdx-btn-xfade ${xfadec}\" xfadelbl))))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/avatar/lib/_pctl.yuck",
    "content": "(defwidget avatar_pctl [\n  icon separator album player pause_icon play_icon\n  title artist prev prev_icon next \n  next_icon minimal minimal_icon]\n  (box :orientation \"vertical\" \n       :class \"avatar-pctl-box\" \n       :space-evenly false\n       :spacing 20\n       :style \"\n         background-image: radial-gradient(\n           circle farthest-side at left,\n           ${pctl_sub.bright} 55%,\n           rgba(30, 33, 40, 0.7) 80%),\n           url(\\\"${pctl_sub['mpris:artUrl']}\\\");\n         color: ${pctl_sub.dark}\n       \"\n\n    (box :class \"avatar-pctl-header-box\"\n         :space-evenly false\n\n      (box :hexpand true\n           :space-evenly false\n        (label :class \"avatar-pctl-icon\"\n               :text icon)\n        (label :class \"avatar-pctl-name\"\n               :text player)\n        (label :class \"avatar-pctl-separator\"\n               :text separator)\n        (label :class \"avatar-pctl-album ${album == \"\" ? \"avatar-pctl-album-null\" : \"\"}\" \n               :text album\n               :limit-width 30))\n\n      (button :onclick minimal\n              :class \"avatar-pctl-minimal-box\"\n              :halign \"end\"\n        (label :class \"avatar-pctl-minimal\"\n               :text minimal_icon)))\n\n    (box :orientation \"vertical\" \n         :class \"avatar-title-artist-box\"\n         :space-evenly false\n         :halign \"start\"\n      (label :class \"avatar-pctl-title\"\n             :halign \"start\"\n             :text title\n             :wrap true\n             :xalign 0.0\n             :limit-width 30)\n      (label :class \"avatar-pctl-artist\"\n             :text artist\n             :halign \"start\"\n             :limit-width 30))\n\n    (box :class \"avatar-pctl-controls\"\n         :space-evenly false\n         :spacing 20\n\n      (button :onclick prev \n              :class \"avatar-pctl-button-prev\" \n        (label :class \"avatar-pctl-label-prev\" \n               :text prev_icon))\n\n      (button :onclick \"playerctl play-pause &\"\n              :class \"avatar-pctl-button-playback\"\n        (label :class \"avatar-pctl-label-playback\" \n               :text {pctl_sub.status == \"Playing\" ? play_icon : pause_icon}))\n      (button :onclick next \n              :class \"avatar-pctl-button-next\" \n        (label :class \"avatar-pctl-label-next\" \n               :text next_icon)))))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/avatar/lib/_quick.yuck",
    "content": "(defwidget _avaquick [ocvol ocmic allhead alllbl allcmd auhead aucmd aulbl aulvl mihead micmd milbl milvl scup scdn mphead mpcmd mplbl mplvl]\n  (box :class \"ava-quick-box\" :space-evenly false :spacing 25 :halign \"center\" :orientation \"vertical\"\n    (box :class \"ava-quick-scale-box\" :orientation \"vertical\" :space-evenly false :spacing 25 :space-evenly false\n      (box :class \"ava-quick-au-scale-box\" :space-evenly false :spacing 20\n        (scale :flipped true :hexpand true :width 200 :class \"ava-quick-vol\" :min 0.0 :max 100.0 :value aulvl :onchange ocvol)\n        (label :text aulvl :class \"ava-au-scale-lbl\"))\n      (box :class \"ava-quick-mi-scale-box\" :space-evenly false :spacing 20\n        (label :text milvl :class \"ava-mi-scale-lbl\")\n        (scale :hexpand true :width 200 :class \"ava-quick-mic\" :min 0.0 :max 100.0 :value milvl :onchange ocmic)))\n\n      (label :text \"\" :class \"ava-sep\")\n\n      (box :space-evenly false :orientation \"vertical\" :spacing 10\n        (box :class \"ava-quick-btn-box\" :space-evenly false :spacing 10\n          (box :orientation \"vertical\" :class \"ava-au-btn-box\" :space-evenly false :width 200 :height 200\n            (label :halign \"start\" :class \"ava-au-head\" :text auhead)\n            (button :vexpand true :hexpand true :halign \"center\" :valign \"center\" :onclick aucmd :class \"ava-btn-au\" aulbl))\n          (box :orientation \"vertical\" :class \"ava-mi-btn-box\" :space-evenly false :width 200 :height 200\n            (label :halign \"start\" :class \"ava-mi-head\" :text mihead)\n            (button :vexpand true :hexpand true :halign \"center\" :valign \"center\" :onclick micmd :class \"ava-btn-mi\" milbl)))\n\n        (box :class \"ava-quick-btn-box\" :space-evenly false :spacing 10\n          (box :orientation \"vertical\" :class \"ava-mp-btn-box\" :space-evenly false :width 200 :height 200\n            (label :halign \"start\" :class \"ava-mp-head\" :text mphead)\n            (eventbox :vexpand true :hexpand true :halign \"center\" :valign \"center\" \n                      :class \"ava-mpd-ebox\" :onclick mpcmd :onscroll \"[ {} = up ] && ${scup}; [ {} = down ] && ${scdn}\"\n              (circular-progress :value mplvl :thickness 10 :class \"ava-mpd-radial\"\n                (label :text mplbl :class \"ava-mpd-label\"))))\n          (box :orientation \"vertical\" :class \"ava-all-btn-box\" :space-evenly false :width 200 :height 200\n            (label :halign \"start\" :class \"ava-all-head\" :text allhead)\n            (button :vexpand true :hexpand true :halign \"center\" :valign \"center\" :onclick allcmd :class \"ava-btn-all\" alllbl))))))\n\n; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/avatar/lib/_small.yuck",
    "content": "(defwidget avatar_tile [icon main ?style_label ?style_icon ?M ?L ?R ?class ?box_class ?class_main ?class_icon]\n  (eventbox :class \"avatar-eventbox ${class}\"\n            :onclick L\n            :onmiddleclick M\n            :onrightclick R\n\n    (box :class \"avatar-card-box ${box_class}\" \n         :space-evenly false;\n      (label :style style_label\n             :text icon\n             :class \"avatar-icon ${class_icon}\")\n      (label :style style_icon\n             :text main\n             :class \"avatar-main ${class_main}\"))))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/bolt/_init.yuck",
    "content": "(include \"./src/yuck/bolt/_modules.yuck\")\n(include \"./src/yuck/bolt/_layout.yuck\")\n\n(defwindow bolt :stacking \"bg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :x 90 :y -15 :width \"23%\" :height \"30%\" :anchor \"left bottom\") \n  (bolt_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/bolt/_layout.yuck",
    "content": "(defwidget bolt_layout []\n  (box :space-evenly false\n       :class \"bolt-layout-box\"\n       :spacing 20\n       :orientation \"vertical\"\n    (box :hexpand true \n         :space-evenly false \n         :class \"bolt-date-bat-pctl\" \n         :spacing 25\n      (box :orientation \"vertical\" \n           :space-evenly false \n           :class \"bolt-date-bat\" \n           :spacing 10\n        (_boltdate :day {time.day} \n                   :short_pretty \"${time.day_num} ${time.month}, ${time.year}\")\n        (_fluidbat :class {EWW_BATTERY.BAT0.capacity > 95 ? \"bolt-bat-full\" :\n                           EWW_BATTERY.BAT0.capacity > 50 ? \"bolt-bat-norm\" :\n                           EWW_BATTERY.BAT0.capacity > 20 ? \"bolt-bat-warn\" : \"bolt-bat-crit\"} \n                   :label \"Battery\" \n                   :icon_full \"\" \n                   :icon_norm \"\" \n                   :icon_crit \"\"))\n      (_boltpctl :cover {pctl_sub[\"mpris:artUrl\"]} \n                 :label {pctl_sub[\"status\"]} \n                 :title {pctl_sub[\"xesam:title\"]} \n                 :artist {pctl_sub[\"xesam:artist\"]} \n                 :volume volume_level\n                 :volume_icon \"\"\n                 :status_cmd \"playerctl play-pause\"\n                 :status_icon {pctl_sub[\"status\"] == \"Playing\" ? \"\" : \"\"}))\n    (box :hexpand true \n         :space-evenly false \n         :class \"bolt-uptime-wifi\" \n         :spacing 20\n      (_boltuptime :label \"Uptime\" \n                   :uptime uptime)\n      (_boltwifi :label \"WiFi\" \n                 :icon  {net == \"\" ? \"\" : net < 26 ? \"\" : net < 51 ? \"\" : net < 76 ? \"\" : \"\"} \n                 :ssid ssid))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/bolt/_modules.yuck",
    "content": "(defwidget _boltdate [day short_pretty]\n  (box :hexpand true \n       :halign \"start\" \n       :orientation \"vertical\" \n       :space-evenly false \n       :class \"bolt-date-box\" \n       :width 200\n    (label :halign \"start\"\n           :text short_pretty \n           :class \"bolt-date-pretty\")\n    (label :halign \"start\" \n           :text day \n           :class \"bolt-date-day\")))\n\n(defwidget _fluidbat [label icon_full icon_crit icon_norm class]\n  (overlay :class \"bolt-bat-overlay\"\n    (progress :width 180 \n              :class \"bolt-bat-prog ${class}\" \n              :value {EWW_BATTERY.BAT0.capacity > 95 ? 100 : EWW_BATTERY.BAT0.capacity})\n    (box :valign \"center\" \n         :spacing 5 \n         :space-evenly false \n         :class \"bolt-bat-prog-box\"\n      (box :halign \"start\" \n           :hexpand true \n           :orientation \"vertical\" \n           :space-evenly false \n           :class \"bolt-bat-label-box\"\n        (label :halign \"start\" \n               :text label \n               :class \"bolt-bat-label\")\n        (label :halign \"start\" \n               :text \"${EWW_BATTERY.BAT0.capacity > 95 ? 100 : EWW_BATTERY.BAT0.capacity}%\" \n               :class \"bolt-bat-status-label\"))\n      (label :halign \"end\" \n             :text {EWW_BATTERY.BAT0.capacity > 95 ? icon_full : EWW_BATTERY.BAT0.capacity < 21 ? icon_crit : icon_norm} \n             :class \"bolt-bat-icon\"))))\n\n(defwidget _boltpctl [cover label title artist volume volume_icon status_cmd status_icon]\n  (box :hexpand true \n       :halign \"start\" \n       :orientation \"vertical\" \n       :space-evenly false \n       :class \"bolt-pctl-box\" \n       :style \"background-image: radial-gradient(circle farthest-side at bottom, rgba(23, 28, 33, 0.7) 100%), url(\\\"${pctl_sub['mpris:artUrl']}\\\")\"\n       :width 200\n       :height 200\n    (box :space-evenly false \n         :orientation \"vertical\" \n         :class \"bolt-pctl-label-title-artist\"\n      (label :halign \"start\" \n             :text label \n             :class \"bolt-pctl-label\")\n      (label :halign \"start\" \n             :limit-width 20 \n             :wrap true \n             :xalign 0.0 \n             :text title \n             :class \"bolt-pctl-title\")\n      (label :halign \"start\" \n             :limit-width 20 \n             :text artist \n             :class \"bolt-pctl-artist\"))\n    (box :vexpand true \n         :valign \"end\" \n         :hexpand true \n         :space-evenly false \n         :class \"bolt-pctl-status-volume-box\"\n      (box :space-evenly false \n           :spacing 5 \n           :class \"bolt-pctl-volume\"\n        (label :text volume_icon \n               :class \"bolt-pctl-volume-icon\")\n        (label :text volume \n               :class \"bolt-pctl-volume-label\"))\n      (button :hexpand true \n              :halign \"end\" \n              :onclick status_cmd \n              :class \"bolt-pctl-status\" status_icon))))\n\n(defwidget _boltuptime [label uptime]\n  (box :space-evenly false \n       :class \"bolt-uptime-box\" \n       :spacing 8 \n       :halign \"start\"\n    (label :text \"\" \n           :class \"bolt-uptime-hl\")\n    (box :valign \"center\" \n         :orientation \"vertical\" \n         :class \"bolt-uptime-label-value\" \n         :space-evenly false\n      (label :halign \"start\" \n             :class \"bolt-uptime-label\" \n             :text label)\n      (label :limit-width 15 \n             :halign \"start\" \n             :class \"bolt-uptime-value\" \n             :text uptime))))\n\n(defwidget _boltwifi [label icon ssid]\n  (box :valign \"center\"\n       :height 100 \n       :valign \"center\" \n       :hexpand true \n       :space-evenly false \n       :class \"bolt-wifi-box\"\n    (box :valign \"center\" \n         :hexpand true \n         :orientation \"vertical\" \n         :space-evenly false \n         :class \"bolt-wifi-label-ssid\"\n      (label :halign \"start\" \n             :class \"bolt-wifi-label\" \n             :text label)\n      (label :halign \"start\" \n             :class \"bolt-wifi-ssid\" \n             :text ssid))\n    (label :vexpand false \n           :valign \"center\" \n           :halign \"end\" \n           :class \"bolt-wifi-icon\" \n           :text icon)))\n\n; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/chrono/_env.yuck",
    "content": "(defpoll air :interval \"12h\" \"./.venv/bin/python ./src/shell/pollution.py\")\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/chrono/_init.yuck",
    "content": "(include \"./src/yuck/chrono/_env.yuck\")\n(include \"./src/yuck/chrono/_modules.yuck\")\n(include \"./src/yuck/chrono/_layout.yuck\")\n\n(defwindow chrono :stacking \"bg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :width \"26%\" :height \"100%\" :anchor \"right center\") \n  (chrono_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/chrono/_layout.yuck",
    "content": "(defwidget chrono_layout []\n  (scroll\n    (box :space-evenly false\n         :class \"chrono-layout-box\"\n         :spacing 20\n         :orientation \"vertical\"\n      (box :space-evenly false\n           :class \"chrono-headers\"\n        (label :text \"CHRONO\"\n               :class \"chrono-headers-label\"\n               :halign \"start\"\n               :hexpand true)\n        (button :onclick \"eww close chrono\" :class \"chrono-headers-close\" \"署\"))\n      (_ptime :hour {time.hour} :minute {time.min} :secs {time.sec} :uptime uptime)\n      (_pcalen :day {time.day_icon} \n               :month {time.month_icon} \n               :year {time.year})\n      (_weather :glyph {weather.weather[0].glyph}\n                :main {weather.weather[0].main}\n                :image {weather.weather[0].image}\n                :temp {round(weather.main.temp, 0)}\n                :feels {round(weather.main.feels_like, 0)}\n                :bright_col {weather.weather[0].image_colors[8]}\n                :sundial \"\"\n                :overlay {weather.weather[0].image_colors[2]}\n                :textcol {weather.weather[0].image_colors[2]}\n                :unit \"°\"\n                :pressure {weather.main.pressure}\n                :pressure_icon \"\"\n                :pressure_unit \"hPa\" ; hecto-Pascal (Pressure Unit)\n                :location \"${weather.name}, ${weather.sys.country}\"\n                :location_icon \"\"\n                :max {round(weather.main.temp_max, 0)}\n                :max_icon \"\"\n                :min {round(weather.main.temp_min, 0)}\n                :min_icon \"\")\n      (_weatherextras :header \"Weather Info.\"\n                      :description \"${weather_gist}.\"\n                      :humidity {weather.main.humidity}\n                      :humidity_icon \"\"\n                      :humidity_label \"Humidity\"\n                      :humidity_unit \"%\"\n                      :visibility {weather.visibility}\n                      :visibility_icon \"\"\n                      :visibility_label \"Visibility\"\n                      :visibility_unit \"meters\"\n                      :wind \"${weather.wind.speed}m / ${weather.wind.deg}s\"\n                      :wind_icon \"\"\n                      :wind_label \"Wind Speed\"\n                      :wind_unit \"\"\n                      :cloud {weather.clouds.all}\n                      :cloud_icon \"\"\n                      :cloud_label \"Clouds\"\n                      :cloud_unit \"%\")\n      (_airpollution :aqi {air.list[0].main.aqi} \n                     :aqi_label \"Air Quality Index\"\n                     :aqi_icon {\n                       air.list[0].main.aqi == 1 ? air.icons.good : \n                       air.list[0].main.aqi == 2 ? air.icons.fair : \n                       air.list[0].main.aqi == 3 ? air.icons.moderate : \n                       air.list[0].main.aqi == 4 ? air.icons.poor : air.icons.very_poor}\n                     :comp_label \"Components\"\n                     :co {air.list[0].components.co}\n                     :co_label \"Carbon Monoxide\"\n                     :no_label \"Nitrogen Monoxide\"\n                     :no {air.list[0].components.no}\n                     :no2_label \"Nitrogen Dioxide\"\n                     :no2 {air.list[0].components.no2}\n                     :o3_label \"Ozone\"\n                     :o3 {air.list[0].components.o3}\n                     :so2_label \"Sulphur Dioxide\"\n                     :so2 {air.list[0].components.so2}\n                     :pm2_5_label \"Fine particles matter (2.5)\"\n                     :pm2_5 {air.list[0].components.pm2_5}\n                     :pm10_label \"Coarse particulate matter (10)\"\n                     :pm10 {air.list[0].components.pm10}\n                     :nh3_label \"Ammonia\"\n                     :nh3 {air.list[0].components.nh3}\n                     :unit \"μg/m³\"))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/chrono/_modules.yuck",
    "content": "(defwidget _psundial [halign ?hexpand prefix]\n  (box :space-evenly false :class \"chrono-sundial-box\" :spacing 5\n    (label :text prefix :class \"chrono-sundial-prefix\")\n    (label :class \"chrono-sundial-label\" :halign halign :hexpand hexpand\n               :text {time.hour >= 2 && time.hour <= 4 ? \"Early Morning\" :\n                 time.hour <= 5 ? \"Dawn\" :\n                 time.hour >= 6 && (time.hour <= 8 && time.min <= 59) ? \"Morning\" :\n                 time.hour >= 9 && (time.hour <= 11 && time.min <= 59) ? \"Late Morning\" :\n                 time.hour == 12 && time.min <= 29 ? \"Midday\" :\n                 time.hour >= 12 && time.hour <= 16 ? \"Afternoon\" :\n                 time.hour > 16 && time.hour <= 17 ? \"Late Afternoon\" :\n                 (time.hour >= 17 && time.min <= 1) || (time.hour <= 18 && time.min <= 20) ? \"Early Evening\" :\n                 time.hour >= 18 && time.hour <= 19 ? \"Dusk\" :\n                 time.hour > 19 && time.hour <= 21 ? \"Late Evening\" :\n                 time.hour > 21 ? \"Night\" : \"Midnight\"})))\n\n\n(defwidget _weather [glyph main temp feels sundial unit image max min\n                     max_icon min_icon overlay textcol bright_col\n                     pressure pressure_icon pressure_unit location \n                     location_icon]\n  (box :space-evenly false\n       :class \"chrono-weather-box\"\n       :style \"\n         background-image: radial-gradient(circle farthest-side at bottom, ${overlay} 100%), url('${image}');\n         color: ${textcol};\n       \"\n       :halign \"center\"\n       :valign \"start\"\n       :height 350\n       :width 455\n    (box :space-evenly false\n         :orientation \"vertical\"\n         :class \"chrono-weather-main-sundial-glyph\"\n         :halign \"start\"\n         :hexpand true\n         :valign \"center\"\n         :vexpand true\n         :spacing 80\n      (label :text glyph :class \"chrono-weather-glyph\")\n      (box :halign \"start\" \n           :orientation \"vertical\" \n           :class \"chrono-weather-main-sundial\" \n           :spacing -10\n        (label :class \"chrono-weather-main\" \n               :valign \"end\" \n               :halign \"start\" \n               :text main)\n        (_psundial :halign \"start\" \n                   :prefix sundial)))\n    (box :space-evenly false \n         :orientation \"vertical\" \n         :class \"chrono-weather-info-box\"\n         :valign \"center\"\n         :spacing 80\n         :hexpand true\n         :halign \"end\"\n      (box :orientation \"vertical\" \n           :class \"chrono-weather-temp-feels\"\n           :spacing -15 \n           :space-evenly false\n        (label :text \"${temp}${unit}\" \n               :halign \"end\"\n               :class \"chrono-weather-temp\")\n        (label :halign \"end\" \n               :text \"Feels like ${feels}${unit}\" \n               :class \"chrono-weather-feels\"))\n      (box :space-evenly false \n           :spacing 20 \n           :halign \"end\" \n           :class \"chrono-weather-info-box\"\n        (box :orientation \"vertical\" \n             :class \"chrono-weather-cloud-pressure-location\"\n             :halign \"end\" \n             :spacing 10\n          (box :space-evenly false \n               :class \"chrono-weather-location\"\n               :spacing 5\n            (label :text location_icon \n                   :class \"chrono-weather-location-icon\")\n            (label :text location \n                   :class \"chrono-weather-location-label\"))\n          (box :space-evenly false \n               :class \"chrono-weather-pressure\"\n               :spacing 5\n            (label :text pressure_icon \n                   :class \"chrono-weather-pressure-icon\")\n            (label :text \"${pressure} ${pressure_unit}\"\n                   :class \"chrono-weather-pressure-label\")))\n        (box :orientation \"vertical\"\n             :class \"chrono-weather-max-min-humid\"\n             :halign \"end\"\n             :spacing 10\n          (box :space-evenly false \n               :class \"chrono-weather-max\"\n               :spacing 5\n            (label :text max_icon \n                   :class \"chrono-weather-max-icon\")\n            (label :text \"${max}${unit}\"\n                   :class \"chrono-weather-max-label\"))\n          (box :space-evenly false \n               :class \"chrono-weather-min\"\n               :spacing 5\n            (label :text min_icon \n                   :class \"chrono-weather-min-icon\")\n            (label :text \"${min}${unit}\"\n                   :class \"chrono-weather-min-label\")))))))\n\n(defwidget _weatherextras [header description\n  visibility visibility_icon visibility_label visibility_unit\n  humidity humidity_icon humidity_label humidity_unit\n  wind wind_icon wind_label wind_unit\n  cloud cloud_icon cloud_label cloud_unit]\n  (box :space-evenly false\n       :class \"chrono-weather-extra\"\n       :width 455\n       :halign \"center\"\n       :orientation \"vertical\"\n       :spacing 15\n    (box :space-evenly false :orientation \"vertical\"\n      (label :text header :class \"chrono-weather-extra-header\")\n      (label :text \"Description: ${description}\" :class \"chrono-weather-extra-description\"))\n    (box :class \"chrono-weather-visible-humid\"\n         :valign \"center\"\n         :vexpand true\n         :spacing 20\n      (box :space-evenly false\n           :class \"chrono-weather-humid\"\n           :spacing 5\n           :orientation \"vertical\"\n        (box :space-evenly false\n             :class \"chrono-weather-humid-label-icon\"\n             :spacing 5 \n             :halign \"center\"\n          (label :text humidity_icon \n                 :class \"chrono-weather-humid-icon\")\n          (label :text humidity_label \n                 :class \"chrono-weather-humid-text\"))\n        (label :text \"${humidity}${humidity_unit}\"\n               :class \"chrono-weather-humid-label\"))\n      (box :space-evenly false\n           :class \"chrono-weather-visible\"\n           :spacing 5 \n           :orientation \"vertical\" \n        (box :space-evenly false\n             :class \"chrono-weather-visible-label-icon\"\n             :spacing 5 \n             :halign \"center\"\n          (label :text visibility_icon \n                 :class \"chrono-weather-visible-icon\")\n          (label :text visibility_label \n                 :class \"chrono-weather-visible-text\"))\n        (label :text \"${visibility} ${visibility_unit}\"\n               :class \"chrono-weather-visible-label\")))\n    (box :class \"chrono-weather-wind-cloud\"\n         :valign \"center\"\n         :vexpand true\n         :spacing 20\n      (box :space-evenly false\n           :class \"chrono-weather-cloud\"\n           :spacing 5 \n           :orientation \"vertical\" \n        (box :space-evenly false\n             :class \"chrono-weather-cloud-label-icon\"\n             :spacing 5 \n             :halign \"center\"\n          (label :text cloud_icon \n                 :class \"chrono-weather-cloud-icon\")\n          (label :text cloud_label \n                 :class \"chrono-weather-cloud-text\"))\n        (label :text \"${cloud}${cloud_unit}\"\n               :class \"chrono-weather-cloud-label\"))\n      (box :space-evenly false\n           :class \"chrono-weather-wind\"\n           :spacing 5 \n           :orientation \"vertical\"\n        (box :space-evenly false\n             :class \"chrono-weather-wind-label-icon\"\n             :spacing 5 \n             :halign \"center\"\n          (label :text wind_icon \n                 :class \"chrono-weather-wind-icon\")\n          (label :text wind_label\n                 :class \"chrono-weather-wind-text\"))\n        (label :text \"${wind} ${wind_unit}\"\n               :class \"chrono-weather-wind-label\")))))\n\n(defwidget _pcalen [day month year]\n  (box :space-evenly false\n       :orientation \"vertical\" \n       :class \"chrono-calen-box\"\n       :width 455\n       :halign \"center\"\n    (label :class \"chrono-calen-label\" \n           :text {time.pretty})\n    (calendar :class \"chrono-calen\" \n              :halign \"center\"\n              :active false\n              :day day\n              :month month\n              :year year\n              :show-details false\n              :show-heading false\n              :show-day-names true)))\n\n(defwidget _ptime [hour minute uptime secs]\n  (box :space-evenly false \n       :class \"chrono-time-box\"\n       :width 455\n       :height 150\n       :halign \"center\"\n       :spacing 25\n    (box :class \"chrono-time-radial-box\" \n         :space-evenly false\n         :hexpand true\n         :halign \"center\"\n         :spacing 20\n    (overlay\n      (circular-progress :value {minute * 100 / 60}\n                         :valign \"center\"\n                         :vexpand true\n                         :thickness 15\n                         :start-at 40\n                         :class \"chrono-prog chrono-prog-minute\" minute)\n      (circular-progress :value {secs * 100 / 60}\n                         :valign \"center\"\n                         :vexpand true\n                         :start-at 90\n                         :thickness 15\n                         :class \"chrono-prog chrono-prog-second\" secs)))\n    (label :text \"\" \n           :class \"chrono-sep\" \n           :halign \"center\")\n    (box :space-evenly false \n         :orientation \"vertical\" \n         :class \"chrono-time-label-box\" \n         :hexpand true \n         :halign \"center\"\n      (label :halign \"end\" \n             :text \"${hour}:${minute}\" \n             :class \"chrono-time-label\")\n      (label :halign \"center\" \n             :text uptime \n             :class \"chrono-uptime-label\"))))\n\n(defwidget _airpollution [aqi aqi_label aqi_icon comp_label co co_label no_label no \n                          no2_label no2 o3_label o3 so2_label so2 pm2_5_label pm2_5 \n                          pm10_label pm10 nh3_label nh3 unit]\n  (box :orientation \"vertical\"\n       :halign \"center\"\n       :class \"chrono-air-box\"\n       :space-evenly false\n       :spacing 20\n       :width 455\n       :height 250\n    (box :space-evenly false \n         :halign \"center\"\n         :class \"chrono-aqi-box\"\n         :spacing 20\n      (circular-progress :class \"chrono-aqi-radial chrono-air-radial-${aqi}\" \n                         :thickness 20 \n                         :value {\n                           aqi == 1 ? 100 :\n                           aqi == 2 ? 80 :\n                           aqi == 3 ? 60 :\n                           aqi == 4 ? 40 : 20} aqi_icon)\n      (box :orientation \"vertical\" \n           :class \"chrono-aqi-inner chrono-aqi-inner-${aqi}\"\n           :valign \"center\"\n           :spacing 5\n           :space-evenly false\n        (label :class \"chrono-air-aqi-label\" \n               :text aqi_label)\n        (label :class \"chrono-air-aqi-quality\" \n               :text {\n          aqi == 1 ? \"Good\" :\n          aqi == 2 ? \"Fair\" :\n          aqi == 3 ? \"Moderate\" :\n          aqi == 4 ? \"Poor\" : \"Very Poor\"})))\n    (label :text \"\"\n           :class \"chrono-air-separator\")\n    (label :text comp_label :halign \"center\"\n           :class \"chrono-info-label\")\n    (box :class \"chrono-air-info\" \n         :space-evenly false\n         :halign \"center\"\n         :spacing 40\n      (box :orientation \"vertical\" \n           :class \"chrono-air-col-one\" \n           :space-evenly false\n           :spacing 10\n        (box :orientation \"vertical\" \n             :class \"chrono-air-co-box\"\n          (label :text co_label \n                 :class \"chrono-air-co-label\")\n          (label :text \"${co} ${unit}\" \n                 :class \"chrono-air-co-value\"))\n        (box :orientation \"vertical\" \n             :class \"chrono-air-no-box\"\n          (label :text no_label \n                 :class \"chrono-air-no-label\")\n          (label :text \"${no} ${unit}\"\n                 :class \"chrono-air-no-value\"))\n        (box :orientation \"vertical\"\n             :class \"chrono-air-no2-box\"\n          (label :text no2_label\n                 :class \"chrono-air-no2-label\")\n          (label :text \"${no2} ${unit}\"\n                 :class \"chrono-air-no2-value\"))\n        (box :orientation \"vertical\"\n             :class \"chrono-air-o3-box\"\n          (label :text co_label \n                 :class \"chrono-air-o3-label\")\n          (label :text \"${co} ${unit}\"\n                 :class \"chrono-air-o3-value\")))\n      (box :orientation \"vertical\" \n           :class \"chrono-air-col-one\" \n           :space-evenly false\n           :spacing 10\n        (box :orientation \"vertical\" \n             :class \"chrono-air-so2-box\"\n          (label :text so2_label \n                 :class \"chrono-air-so2-label\")\n          (label :text \"${so2} ${unit}\"\n                 :class \"chrono-air-so2-value\"))\n        (box :orientation \"vertical\" \n             :class \"chrono-air-pm2_5-box\"\n          (label :text pm2_5_label \n                 :class \"chrono-air-pm2_5-label\")\n          (label :text \"${pm2_5} ${unit}\"\n                 :class \"chrono-air-pm2_5-value\"))\n        (box :orientation \"vertical\" \n             :class \"chrono-air-pm10-box\"\n          (label :text pm10_label\n                 :class \"chrono-air-pm10-label\")\n          (label :text \"${pm10} ${unit}\"\n                 :class \"chrono-air-pm10-value\"))\n        (box :orientation \"vertical\" \n             :class \"chrono-air-nh3-box\"\n          (label :text nh3_label\n                 :class \"chrono-air-nh3-label\")\n          (label :text \"${nh3} ${unit}\"\n                 :class \"chrono-air-nh3-value\"))))))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/clime/_init.yuck",
    "content": "(include \"./src/yuck/clime/_modules.yuck\")\n(include \"./src/yuck/clime/_layout.yuck\")\n\n(defwindow clime :stacking \"bg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :x -70 :y 20 :width \"12%\" :height \"5%\" :anchor \"top right\")\n  (clime_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/clime/_layout.yuck",
    "content": "(defwidget clime_layout []\n  (_miniweather :min {weather.main.temp_min}\n                :max {weather.main.temp_max}\n                :min_text \"Min temp.\"\n                :max_text \"Max temp.\"\n                :feels {weather.main.feels_like}\n                :category {weather.weather[0].main}\n                :unit \"°\"\n                :temp {weather.main.temp}\n                :city {weather.name}\n                :country {weather.sys.country}\n                :icon {weather.weather[0].glyph}))\n"
  },
  {
    "path": "src/yuck/clime/_modules.yuck",
    "content": "(defwidget _miniweather [min max feels category unit temp city country \n  icon min_text max_text]\n  (box :space-evenly false\n       :orientation \"vertical\"\n       :spacing 20\n       :class \"clime-layout-box\"\n\n    (box :space-evenly false\n         :class \"clime-upper-box\"\n         :spacing 30\n      (label :text icon\n             :hexpand true\n             :halign \"start\"\n             :class \"clime-img\")\n      (label :text \"${round(temp,0)}${unit}\"\n             :class \"clime-temp\"\n             :halign \"end\"))\n\n    (box :space-evenly false\n         :orientation \"vertical\"\n         :halign \"start\"\n         :class \"clime-middle-box\"\n      (label :halign \"start\"\n             :text \"${city}, ${country}\"\n             :class \"clime-city\")\n      (label :halign \"start\"\n             :text category\n             :class \"clime-category\")\n      (label :halign \"start\"\n             :text \"Feels like ${round(feels,0)}${unit}\"\n             :class \"clime-feels\"))\n\n    (box :space-evenly false\n         :class \"clime-lower-box\"\n      (box :space-evenly false\n           :class \"clime-max-box\"\n           :orientation \"vertical\"\n           :hexpand true\n        (label :hexpand true\n               :halign \"start\"\n               :text max_text\n               :class \"clime-max-label\")\n        (label :hexpand true\n               :halign \"start\" \n               :text \"${round(max,0)}${unit}\"\n               :class \"clime-max\"))\n      (box :space-evenly false\n           :class \"clime-max-box\"\n           :orientation \"vertical\"\n        (label :hexpand true\n               :halign \"end\"\n               :text min_text\n               :class \"clime-max-label\")\n        (label :halign \"start\" \n               :text \"${round(min,0)}${unit}\"\n               :class \"clime-min\")))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/disclose/_dnd.yuck",
    "content": "(defwidget _dnd [total total_label label footer state action waiting_icon_off waiting_icon_on waiting]\n  (box :vexpand true\n       :hexpand true\n       :class \"disclose-dnd-box\"\n       :space-evenly false\n    (box :class \"disclose-dnd-labels\"\n         :hexpand true\n         :orientation \"vertical\"\n         :space-evenly false\n      (label :halign \"start\"\n             :class \"disclose-dnd-header\"\n             :text label)\n      (label :halign \"start\"\n             :class \"disclose-dnd-footer\"\n             :text footer)\n      (box :halign \"center\"\n           :valign \"center\"\n           :orientation \"vertical\"\n           :vexpand true\n           :class \"disclose-dnd-box-inner\"\n           :space-evenly false\n        (label :class \"disclose-dnd-total\"\n               :text total)\n        (label :class \"disclose-dnd-total-label\"\n               :text total_label))\n      (box :space-evenly false :class \"disclose-dnd-waiting-toggle\"\n        (button :onclick action\n                :hexpand true\n                :halign \"start\"\n                :valign \"end\"\n                :class \"disclose-dnd-toggle disclose-dnd-toggle-${state}\" state)\n        (box :space-evenly false :class \"disclose-dnd-waiting-icon-label ${waiting == 0 ? \"\" : \"disclose-dnd-waiting-padding\"}\"\n          (label :class \"disclose-dnd-waiting-icon ${waiting == 0 ? \"\" : \"disclose-dnd-waiting-margin\"}\"\n                 :text {waiting == 0 ? waiting_icon_off : waiting_icon_on})\n          (label :class \"disclose-dnd-waiting-label\" :text {waiting == 0 ? \"\" : waiting}))))))\n\n;; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/disclose/_env.yuck",
    "content": "(defpoll disclose_stats :interval \"5s\" \"./.venv/bin/python ./src/shell/logger.py stats\")\n(deflisten disclose_sub \"./src/shell/combine.zsh sub\")\n(defpoll disclose_dnd_state :interval \"1s\" \"dunstctl is-paused\")\n\n(defpoll dunst_displayed :interval \"10s\" \"dunstctl count displayed\")\n(defpoll dunst_history :interval \"10s\" \"dunstctl count history\")\n(defpoll dunst_waiting :interval \"10s\" \"dunstctl count waiting\")\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/disclose/_init.yuck",
    "content": "(include \"./src/yuck/disclose/_env.yuck\")\n\n(include \"./src/yuck/disclose/cards/_cardimage.yuck\")\n(include \"./src/yuck/disclose/cards/_cardprog.yuck\")\n(include \"./src/yuck/disclose/cards/_cardscr.yuck\")\n(include \"./src/yuck/disclose/cards/_cardradial.yuck\")\n\n(include \"./src/yuck/disclose/_stats.yuck\")\n(include \"./src/yuck/disclose/_dnd.yuck\")\n(include \"./src/yuck/disclose/_layout.yuck\")\n\n(defwindow disclose :stacking \"fg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :width \"26%\" :height \"100%\" :anchor \"right center\") \n  (disclose_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/disclose/_layout.yuck",
    "content": "(defwidget disclose_layout []\n  (box :orientation \"vertical\"\n       :space-evenly false\n       :class \"disclose-layout-box\"\n    (box :space-evenly false\n         :class \"disclose-headers\"\n         :spacing 6\n      (label :text \"DISCLOSE\"\n             :class \"disclose-headers-label\"\n             :halign \"start\"\n             :hexpand true)\n      (button :onclick \"./src/shell/combine.zsh cls\" :class \"disclose-headers-clear\" \"\")\n      (button :onclick \"eww close disclose\" :class \"disclose-headers-close\" \"署\"))\n    (scroll :hscroll false\n            :vscroll true\n            :vexpand true\n            :hexpand true\n            :class \"disclose-scroll\"\n      (literal :content disclose_sub))\n    (label :class \"disclose-separator\" :text \"\")\n    (box :space-evenly false :class \"disclose-misc-box\"\n      (_dstats :critical \"${disclose_stats.critical}\"\n               :criticon \"\"\n               :low \"${disclose_stats.low}\"\n               :normicon \"\"\n               :normal \"${disclose_stats.normal}\"\n               :lowicon \"靖\"\n               :level \"2\"\n               :thickness 10)\n      (_dnd :total \"${disclose_stats.total}\"\n            :footer \"Dunst Bell\"\n            :total_label \"Total\"\n            :action \"dunstctl set-paused toggle\"\n            :state \"${disclose_dnd_state == \"true\" ? \"ON\" : \"OFF\"}\"\n            :label \"Don't Disturb.\"\n            :waiting_icon_on \"\"\n            :waiting_icon_off \"\"\n            :waiting dunst_waiting))))\n\n;; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/disclose/_stats.yuck",
    "content": "(defwidget _dstats [\n    critical\n    criticon\n\n    normal\n    normicon\n\n    low\n    lowicon\n\n    level\n    thickness\n  ]\n  (box :space-evenly false\n       :orientation \"vertical\"\n       :class \"disclose-stats\"\n       :spacing 10\n    (box :space-evenly false\n         :class \"disclose-stats-crit-box\"\n      (circular-progress :value critical\n                         :thickness thickness\n                         :class \"disclose-stats-crit\"\n        (label :class \"disclose-stats-crit-label\"\n               :text criticon))\n      (label :class \"disclose-stats-separator\" :text \"\")\n      (box :hexpand true :halign \"center\" :orientation \"vertical\" :class \"disclose-stats-crit-info-box\"\n        (label :halign \"start\" :class \"disclose-stats-crit-info-value\" :text \"${round(critical, level)}%\")\n        (label :halign \"start\" :class \"disclose-stats-crit-info-label\" :text \"Critical\")))\n    (box :space-evenly false\n         :class \"disclose-stats-norm-box\"\n      (circular-progress :value normal\n                         :thickness thickness\n                         :class \"disclose-stats-norm\"\n        (label :class \"disclose-stats-norm-label\"\n               :text normicon))\n      (label :class \"disclose-stats-separator\" :text \"\")\n      (box :hexpand true :halign \"center\" :orientation \"vertical\" :class \"disclose-stats-norm-info-box\"\n        (label :halign \"start\" :class \"disclose-stats-norm-info-value\" :text \"${round(normal, level)}%\")\n        (label :halign \"start\" :class \"disclose-stats-norm-info-label\" :text \"Normal\")))\n    (box :space-evenly false\n         :class \"disclose-stats-low-box\"\n      (circular-progress :value low\n                         :thickness thickness\n                         :class \"disclose-stats-low\"\n        (label :class \"disclose-stats-low-label\"\n               :text lowicon))\n      (label :class \"disclose-stats-separator\" :text \"\")\n      (box :hexpand true :orientation \"vertical\" :halign \"center\" :class \"disclose-stats-low-info-box\"\n        (label :halign \"start\" :class \"disclose-stats-low-info-value\" :text \"${round(low, level)}%\")\n        (label :halign \"start\" :class \"disclose-stats-low-info-label\" :text \"Low\")))))\n\n;; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/disclose/cards/_cardimage.yuck",
    "content": "(defwidget _cardimage [\n    summary\n    body\n\n    ?limit_summary\n    ?limit_body\n\n    appname\n    timestamp\n    urgency\n\n    icon\n    icon_width\n    icon_height\n    close\n    ?close_action\n\n    ?style\n    ?class\n\n    image\n    image_width\n    image_height\n  ]\n  (eventbox :class \"disclose-cardimage-eventbox disclose-cardimage-eventbox-${urgency} disclose-cardimage-eventbox-${appname}\"\n    (box :orientation \"vertical\"\n         :space-evenly false\n         :class \"disclose-cardimage-container-box disclose-cardimage-container-box-${urgency} disclose-cardimage-container-box-${appname}\"\n      (box :class \"disclose-cardimage-summary-box disclose-cardimage-summary-box-${urgency} disclose-cardimage-summary-box-${appname}\"\n           :space-evenly false\n           :spacing 6\n\n        (box :style \"background-image: url('${icon}')\"\n             :width icon_width\n             :height icon_height\n             :space-evenly false\n             :class \"disclose-cardimage-icon disclose-cardimage-icon-${urgency} disclose-cardimage-icon-${appname}\")\n        (label :text appname\n               :hexpand true\n               :halign \"start\"\n               :class \"disclose-cardimage-appname-label disclose-cardimage-appname-label-${urgency} disclose-cardimage-appname-label-${appname}\")\n        (button :class \"disclose-cardimage-close-button disclose-cardimage-close-button-${urgency} disclose-cardimage-close-button-${appname}\"\n                :onclick close_action\n                :timeout \"2s\"\n          (label :text close\n                 :class \"disclose-cardimage-close-icon disclose-cardimage-close-icon-${urgency} disclose-cardimage-close-icon-${appname}\")))\n\n      (box :class \"disclose-cardimage-separator disclose-cardimage-separator-${urgency} disclose-cardimage-separator-${appname}\"\n           :space-evenly false)\n\n      (box :class \"disclose-cardimage-body-box disclose-cardimage-body-box-${urgency} disclose-cardimage-body-box-${appname}\"\n           :space-evenly false\n        (box :halign \"center\"\n             :valign \"center\"\n             :class \"disclose-cardimage-image-box disclose-cardimage-image-box-${urgency} disclose-cardimage-image-box-${appname}\"\n          (box :style \"background-image: url('${image}');${style}\"\n               :hexpand false\n               :vexpand false\n               :width image_width\n               :height image_height\n               :space-evenly false\n               :class \"disclose-cardimage-image disclose-cardimage-image-${urgency} disclose-cardimage-image-${appname} ${class}\"))\n\n        (box :hexpand true\n             :vexpand true\n             :valign \"center\"\n             :orientation \"vertical\"\n             :spacing 5\n             :class \"disclose-cardimage-body-outer disclose-cardimage-body-outer-${urgency} disclose-cardimage-body-outer-${appname}\"\n             :space-evenly false\n          (label :text summary\n                 :limit-width {limit_summary != \"\" ? limit_summary : 25}\n                 :halign \"start\"\n                 :class \"disclose-cardimage-summary-label disclose-cardimage-summary-label-${urgency} disclose-cardimage-summary-label-${appname}\")\n          (label :text body\n                 :halign \"start\"\n                 :limit-width {limit_body != \"\" ? limit_body : 110}\n                 :xalign 0.0\n                 :wrap true\n                 :class \"disclose-cardimage-body-label disclose-cardimage-body-${urgency} disclose-cardimage-body-${appname}\")\n          (label :text timestamp\n                 :halign \"end\"\n                 :class \"disclose-cardimage-timestamp disclose-cardimage-timestamp-${urgency} disclose-cardimage-timestamp-${appname}\"))))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/disclose/cards/_cardprog.yuck",
    "content": "(defwidget _cardprog [\n    summary\n    body\n\n    ?limit_summary\n    ?limit_body\n\n    appname\n    timestamp\n    urgency\n    progress\n\n    icon\n    icon_width\n    icon_height\n    close\n    ?close_action\n\n    ?style\n    image\n    image_width\n    image_height\n  ]\n  (eventbox :class \"disclose-cardprog-eventbox disclose-cardprog-eventbox-${urgency} disclose-cardprog-eventbox-${appname}\"\n    (box :orientation \"vertical\"\n         :space-evenly false\n         :class \"disclose-cardprog-container-box disclose-cardprog-container-box-${urgency} disclose-cardprog-container-box-${appname}\"\n      (box :class \"disclose-cardprog-summary-box disclose-cardprog-summary-box-${urgency} disclose-cardprog-summary-box-${appname}\"\n           :space-evenly false\n           :spacing 6\n        (box :style \"background-image: url('${icon}')\"\n             :width icon_width\n             :height icon_height\n             :space-evenly false\n             :class \"disclose-cardprog-icon disclose-cardprog-icon-${urgency} disclose-cardprog-icon-${appname}\")\n        (label :text appname\n               :hexpand true\n               :halign \"start\"\n               :class \"disclose-cardprog-appname-label disclose-cardprog-appname-label-${urgency} disclose-cardprog-appname-label-${appname}\")\n        (button :class \"disclose-cardprog-close-button disclose-cardprog-close-button-${urgency} disclose-cardprog-close-button-${appname}\"\n                :onclick close_action\n                :timeout \"2s\"\n          (label :text close\n                 :class \"disclose-cardprog-close-icon disclose-cardprog-close-icon-${urgency} disclose-cardprog-close-icon-${appname}\")))\n      (box :class \"disclose-cardprog-separator disclose-cardprog-separator-${urgency} disclose-cardprog-separator-${appname}\"\n           :space-evenly false)\n      (box :class \"disclose-cardprog-body-box disclose-cardprog-body-box-${urgency} disclose-cardprog-body-box-${appname}\"\n           :space-evenly false\n        (box :halign \"center\"\n             :valign \"center\"\n             :class \"disclose-cardprog-image-box disclose-cardprog-image-box-${urgency} disclose-cardprog-image-box-${appname}\"\n          (box :style \"background-image: url('${image}');${style}\"\n               :hexpand false\n               :vexpand false\n               :width image_width\n               :height image_height\n               :space-evenly false\n               :class \"disclose-cardprog-image disclose-cardprog-image-${urgency} disclose-cardprog-image-${appname}\"))\n        (box :spacing 1\n             :hexpand true\n             :vexpand true\n             :valign \"center\"\n             :orientation \"vertical\"\n             :class \"disclose-cardprog-body-outer disclose-cardprog-body-outer-${urgency} disclose-cardprog-body-outer-${appname}\"\n             :space-evenly false\n          (box :class \"disclose-cardprog-summary-body-box disclose-cardprog-summary-body-box-${urgency} disclose-cardprog-summary-body-box-${appname}\"\n            (label :limit-width {limit_summary != \"\" ? limit_summary : 25}\n                   :text summary\n                   :halign \"start\"\n                   :class \"disclose-cardprog-summary-label disclose-cardprog-summary-label-${urgency} disclose-cardprog-summary-label-${appname}\")\n            (label :text timestamp\n                   :halign \"end\"\n                   :class \"disclose-cardprog-timestamp disclose-cardprog-timestamp-${urgency} disclose-cardprog-timestamp-${appname}\"))\n          (label :limit-width {limit_body != \"\" ? limit_body : 110}\n                 :text body\n                 :halign \"start\"\n                 :wrap true\n                 :xalign 0.0\n                 :class \"disclose-cardprog-body-label disclose-cardprog-body-${urgency} disclose-cardprog-body-${appname}\")\n          (box :spacing 15\n               :class \"disclose-cardprog-scale-box disclose-cardprog-scale-box-${urgency} disclose-cardprog-scale-box-${appname}\"\n               :space-evenly false\n            (scale :hexpand true\n                   :class \"disclose-cardprog-scale disclose-cardprog-scale-${urgency} disclose-cardprog-scale-${appname}\"\n                   :min 0\n                   :max 100\n                   :active false\n                   :value progress)\n            (label :class \"disclose-cardprog-value-label disclose-cardprog-value-label-${urgency} disclose-cardprog-value-label-${appname}\"\n                   :text progress)))))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/disclose/cards/_cardradial.yuck",
    "content": "(defwidget _cardradial [\n    summary\n    body\n\n    ?limit_summary\n    ?limit_body\n\n    appname\n    timestamp\n    urgency\n\n    close\n    ?close_action\n\n    progress\n    thickness\n\n    total\n    done\n  ]\n  (eventbox :class \"disclose-cardradial-eventbox disclose-cardradial-eventbox-${urgency} disclose-cardradial-eventbox-${appname}\"\n    (box :orientation \"vertical\"\n         :space-evenly false\n         :class \"disclose-cardradial-container-box disclose-cardradial-container-box-${urgency} disclose-cardradial-container-box-${appname}\"\n      (box :class \"disclose-cardradial-summary-box disclose-cardradial-summary-box-${urgency} disclose-cardradial-summary-box-${appname}\"\n           :space-evenly false\n        (label :text appname\n               :hexpand true\n               :halign \"start\"\n               :class \"disclose-cardradial-appname-label disclose-cardradial-appname-label-${urgency} disclose-cardradial-appname-label-${appname}\")\n        (button :class \"disclose-cardradial-close-button disclose-cardradial-close-button-${urgency} disclose-cardradial-close-button-${appname}\"\n                :onclick close_action\n                :timeout \"2s\"\n          (label :text close\n                 :class \"disclose-cardradial-close-icon disclose-cardradial-close-icon-${urgency} disclose-cardradial-close-icon-${appname}\")))\n      (box :class \"disclose-cardradial-separator disclose-cardradial-separator-${urgency} disclose-cardradial-separator-${appname}\"\n           :space-evenly false)\n      (box :class \"disclose-cardradial-body-box disclose-cardradial-body-box-${urgency} disclose-cardradial-body-box-${appname}\"\n           :space-evenly false\n        (box :halign \"center\"\n             :valign \"center\"\n             :class \"disclose-cardradial-circle-box disclose-cardradial-circle-box-${urgency} disclose-cardradial-circle-box-${appname}\"\n          (circular-progress :value progress\n                             :thickness thickness\n                             :class \"disclose-cardradial-circle disclose-cardradial-circle-${urgency} disclose-cardradial-circle-${appname}\"\n            (label :class \"disclose-cardradial-tasks disclose-cardradial-tasks-${urgency} disclose-cardradial-tasks-${appname}\"\n                   :text \"${done}/${total}\")))\n        (box :hexpand true\n             :vexpand true\n             :valign \"center\"\n             :spacing 5\n             :orientation \"vertical\"\n             :class \"disclose-cardradial-body-outer disclose-cardradial-body-outer-${urgency} disclose-cardradial-body-outer-${appname}\"\n             :space-evenly false\n          (label :limit-width {limit_summary != \"\" ? limit_summary : 25}\n                 :text summary\n                 :halign \"start\"\n                 :class \"disclose-cardradial-summary-label disclose-cardradial-summary-label-${urgency} disclose-cardradial-summary-label-${appname}\")\n          (label :limit-width {limit_body != \"\" ? limit_body : 110}\n                 :text body\n                 :xalign 0.0\n                 :halign \"start\"\n                 :wrap true\n                 :class \"disclose-cardradial-body-label disclose-cardradial-body-${urgency} disclose-cardradial-body-${appname}\")\n          (label :text timestamp\n                 :halign \"end\"\n                 :class \"disclose-cardradial-timestamp disclose-cardradial-timestamp-${urgency} disclose-cardradial-timestamp-${appname}\"))))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/disclose/cards/_cardscr.yuck",
    "content": "(defwidget _cardscr [\n    summary\n    ?limit_summary\n\n    close\n    ?close_action\n\n    image\n    image_width\n    image_height\n\n    timestamp\n    urgency\n    delete\n    open\n  ]\n  (eventbox :class \"disclose-cardscr-eventbox disclose-cardscr-eventbox-${urgency}\"\n    (box :orientation \"vertical\"\n         :space-evenly false\n         :class \"disclose-cardscr-container-box disclose-cardscr-container-box-${urgency}\"\n      (box :space-evenly false\n           :class \"disclose-cardscr-summary-box disclose-cardscr-summary-box-${urgency}\"\n        (label :hexpand true\n               :limit-width {limit_summary != \"\" ? limit_summary : 25}\n               :halign \"start\"\n               :class \"disclose-cardscr-summary-label disclose-cardscr-summary-label-${urgency}\"\n               :text summary)\n        (label :class \"disclose-cardscr-timestamp disclose-cardscr-timestamp-${urgency}\"\n               :text timestamp)\n        (button :class \"disclose-cardscr-close-button disclose-cardscr-close-button-${urgency}\"\n                :onclick close_action\n                :timeout \"2s\"\n          (label :text close\n                 :class \"disclose-cardscr-close-icon disclose-cardscr-close-icon-${urgency}\")))\n      (box :class \"disclose-cardscr-image\"\n           :style \"background-image: url('${image}')\"\n           :width image_width\n           :height image_height\n           :space-evenly false)\n      (box :spacing 20\n           :space-evenly true\n           :class \"disclose-cardscr-action-box disclose-cardscr-action-box-${urgency}\"\n           :hexpand true\n           :halign \"center\"\n        (button :class \"disclose-cardscr-open-button disclose-cardscr-open-button-${urgency}\"\n                :onclick open :timeout \"2s\"\n          (label :text \"Open\"\n                 :class \"disclose-cardscr-open-label disclose-cardscr-open-label-${urgency}\"))\n        (button :class \"disclose-cardscr-delete-button disclose-cardscr-delete-button-${urgency}\"\n                :onclick delete :timeout \"2s\"\n          (label :text \"Delete\"\n                 :class \"disclose-cardscr-delete-label disclose-cardscr-delete-label-${urgency}\"))))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/horizon/_init.yuck",
    "content": "(include \"./src/yuck/lumin/_modules.yuck\")\n(include \"./src/yuck/lumin/_layout.yuck\")\n\n(defwindow horizon :stacking \"bg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :x 200 :y 50 :width \"30%\" :height \"25%\" :anchor \"left center\")\n  (horizon_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/horizon/_layout.yuck",
    "content": "(defwidget horizon_layout []\n  (box :space-evenly false :class \"lumin-layout-box\" :spacing 35 \"\"))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/horizon/_modules.yuck",
    "content": "\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/lumin/_init.yuck",
    "content": "(include \"./src/yuck/lumin/_modules.yuck\")\n(include \"./src/yuck/lumin/_layout.yuck\")\n\n(defwindow lumin :stacking \"bg\"\n  :windowtype \"normal\" :wm-ignore true\n  :geometry (geometry :x 200 :y 50 :width \"30%\" :height \"25%\" :anchor \"left center\")\n  (lumin_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/lumin/_layout.yuck",
    "content": "(defwidget lumin_layout []\n  (box :space-evenly false :class \"lumin-layout-box\" :spacing 35\n    (_luminapps\n      :one \"$BROWSER https://www.youtube.com &\" :icon_one \"\"\n      :two \"$BROWSER https://open.spotify.com &\" :icon_two \"\"\n      :three \"$BROWSER https://web.whatsapp.com &\" :icon_three \"\"\n      :four \"$BROWSER https://www.reddit.com &\" :icon_four \"\"\n      :five \"$BROWSER https://github.com &\" :icon_five \"\"\n      :six \"$BROWSER https://discord.com/app &\" :icon_six \"\")\n    (box :orientation \"vertical\" :space-evenly false :spacing 20\n      (_sundialinfo :class \"lumin\" :halign \"start\")\n      (label :class \"lumin-day-label\" :text {time.day} :halign \"start\")\n      (box :space-evenly false :spacing 10\n        (_lumininfo)\n        (label :width 2 :class \"lumin-separator\" \"\")\n        (label :class \"lumin-date-label\"\n               :halign \"end\"\n               :text \"${time.dom} ${time.month} ${time.year} / ${time.hour}:${time.min}\"))\n      (_search :engine \"$BROWSER https://duckduckgo.com &\"\n               :command \"$BROWSER https://duckduckgo.com/?q={} &\"\n               :placeholder \"Search...\"\n               :timeout \"5s\"\n               :icon \"\") ; \n      (_luminquote :icon \"\" :quote \"All the space without you in it, is empty.\" :auth \" Iain Thomas\"))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/lumin/_modules.yuck",
    "content": "(defwidget _luminapps [one two three four five six icon_one icon_two icon_three icon_four icon_five icon_six]\n  (box :space-evenly false\n       :class \"lumin-apps-box\"\n       :orientation \"vertical\"\n       :spacing 30\n    (button :onclick one\n            :class \"lumin-app-btn lumin-app-btn-one\" icon_one)\n    (button :onclick two\n            :class \"lumin-app-btn lumin-app-btn-two\" icon_two)\n    (button :onclick three\n            :class \"lumin-app-btn lumin-app-btn-three\" icon_three)\n    (button :onclick four\n            :class \"lumin-app-btn lumin-app-btn-four\" icon_four)\n    (button :onclick five\n            :class \"lumin-app-btn lumin-app-btn-five\" icon_five)\n    (button :onclick six\n            :class \"lumin-app-btn lumin-app-btn-six\" icon_six)))\n\n(defwidget _lumininfo [?class]\n  (box :space-evenly false\n       :spacing 10\n       :class \"lumin-info-box\"\n    (_infobatnolbl :battery {EWW_BATTERY.BAT0.capacity}\n                   :status {EWW_BATTERY.BAT0.status}\n                   :charge \"\"\n                   :one \"\"\n                   :two \"\"\n                   :three \"\"\n                   :four \"\"\n                   :five \"\"\n                   :six \"\"\n                   :seven \"\")\n    (_infonetnolbl :strength net\n                   :offline \"\"\n                   :excellent \"\"\n                   :good \"\"\n                   :okay \"\"\n                   :slow \"\")))\n\n(defwidget _luminquote [icon quote auth]\n  (box :space-evenly false :class \"lumin-quote-box\" :spacing 10\n    (label :text icon :class \"lumin-quote-icon\")\n    (box :orientation \"vertical\" :class \"lumin-quote-box-inner\"\n      (label :text quote :class \"lumin-quote\")\n      (label :halign \"start\" :text auth :class \"lumin-quote-auth\"))))\n\n(defwidget _search [engine command placeholder timeout icon]\n  (box :space-evenly false \n       :class \"lumin-search-box\"\n    (input :onaccept command\n           :class \"lumin-search\"\n           :hexpand true\n           :timeout timeout\n           :value placeholder)\n    (button :onclick engine\n            :class \"lumin-search-button\"\n            :timeout timeout icon)))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/melody/_init.yuck",
    "content": "(include \"./src/yuck/melody/_modules.yuck\")\n(include \"./src/yuck/melody/_layout.yuck\")\n\n(defwindow melody :stacking \"bg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :x -70 :y -70 :width \"27%\" :height \"10%\" :anchor \"bottom right\")\n  (melody_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/melody/_layout.yuck",
    "content": "(defwidget melody_layout []\n  (box :class \"melody-layout-box\"\n       :space-evenly false\n       :spacing 20\n    (box :space-evenly false\n         :class \"melody-layout-box\"\n         :orientation \"vertical\"\n         :spacing 30\n      (_melodyplayer :title {pctl_sub['xesam:title']}\n                     :artist {pctl_sub['xesam:artist']})\n      (_melodyapps :one \"pushd ~;neovide;popd\"\n                   :two \"pushd ~;shotwell;popd\"\n                   :three \"pushd ~;nemo;popd\"\n                   :four \"pushd ~;gimp;popd\"\n                   :five \"pushd ~;st;popd\"\n                   :six \"qalculate-gtk &\"\n                   :one_icon \"\"\n                   :two_icon \"\"\n                   :three_icon \"\"\n                   :four_icon \"\"\n                   :five_icon \"\"\n                   :six_icon \"\"))\n    (_melodycover :status {pctl_sub.status}\n                  :bright {pctl_sub.bright}\n                  :dark {pctl_sub.dark}\n                  :cover_path {pctl_sub['mpris:artUrl']})))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/melody/_modules.yuck",
    "content": "(defwidget _melodyapps [\n  one two three four five six\n  one_icon two_icon three_icon four_icon five_icon six_icon\n]\n  (box :space-evenly false :class \"melody-apps-box\" :spacing 50\n    (button :class \"melody-apps-box-one\" :onclick one one_icon)\n    (button :class \"melody-apps-box-two\" :onclick two two_icon)\n    (button :class \"melody-apps-box-three\" :onclick three three_icon)\n    (button :class \"melody-apps-box-four\" :onclick four four_icon)\n    (button :class \"melody-apps-box-five\" :onclick five five_icon)\n    (button :class \"melody-apps-box-six\" :onclick six six_icon)))\n\n(defwidget _melodyplayer [title artist]\n  (box :class \"melody-player\" \n       :space-evenly false \n       :orientation \"vertical\" \n       :spacing 5\n       :halign \"end\"\n    (label :halign \"end\" :limit-width 20 :class \"melody-artist\" :text artist)\n    (label :halign \"end\" :limit-width 40 :class \"melody-title\" :text title)))\n\n(defwidget _melodycover [cover_path status bright dark]\n  (box :space-evenly false\n       :class \"melody-cover-box\"\n       :orientation \"vertical\"\n    (box :space-evenly false\n         :class \"melody-cover melody-cover-${status}\"\n         :style `background-image: url(\"${cover_path}\")`)\n    (label :class \"melody-cover-label\"\n           :text {status}\n           :style \"color: ${bright}; background-color: ${dark}\")))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/ocular/_init.yuck",
    "content": "(include \"./src/yuck/ocular/_modules.yuck\")\n(include \"./src/yuck/ocular/_layout.yuck\")\n\n(defwindow ocular :stacking \"bg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :y -10 :width \"20%\" :height \"25%\" :anchor \"center\")\n  (ocular_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/ocular/_layout.yuck",
    "content": "(defwidget ocular_layout []\n  (box :space-evenly false\n       :class \"ocular-layout-box\"\n       :halign \"center\"\n       :orientation \"vertical\"\n       :spacing 20\n    (box :class \"ocular-date-sundial-box\"\n         :space-evenly false\n         :spacing 15\n         :halign \"center\"\n      (_sundialinfo :class \"ocular\" :halign \"center\")\n      (label :class \"ocular-date-label\"\n             :text {time.pretty}))\n    (box :space-evenly false\n         :spacing 45\n      (_radialtime\n        :hour {time.hour}\n        :min {time.min}\n        :sec {time.sec})\n      (box :space-evenly false\n           :orientation \"vertical\"\n           :spacing 15\n        (_infobattery :battery {EWW_BATTERY.BAT0.capacity}\n                      :status {EWW_BATTERY.BAT0.status}\n                      :charge \"\"\n                      :one \"\"\n                      :two \"\"\n                      :three \"\"\n                      :four \"\"\n                      :five \"\"\n                      :six \"\"\n                      :seven \"\")\n        (_infonetwork :strength net\n                      :offline \"\"\n                      :excellent \"\"\n                      :good \"\"\n                      :okay \"\"\n                      :slow \"\")\n        (_infogeneric :level {EWW_RAM.used_mem_perc}\n                      :icon \"\")\n        (_infogeneric :level {EWW_CPU.avg}\n                      :icon \"\")\n        (_infotemp :level {EWW_TEMPS.COMPOSITE}\n                      :icon \"\")))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/ocular/_modules.yuck",
    "content": "(defwidget _infobattery [battery status one two three four five six seven charge ?class]\n  (box :class \"ocular-battery-box ${class}\"\n       :space-evenly false\n       :spacing 8\n    (label :class \"ocular-battery-icon ${class}\" :text {status == 'Charging' ? charge :\n      battery < 15 ? seven :\n        battery < 30 ? six :\n          battery < 45 ? five :\n            battery < 60 ? four :\n              battery < 75 ? three :\n                battery < 95 ? two : one})\n    (label :class \"ocular-battery-label ${class}\" :text \"${battery}%\")))\n\n(defwidget _infonetwork [strength offline excellent good okay slow ?class]\n  (box :class \"ocular-network-box ${class}\"\n       :space-evenly false\n       :spacing 8\n    (label :class \"ocular-network-icon ${class}\" :text {strength == \"\" ? offline :\n      strength < 26 ? slow :\n        strength < 51 ? okay :\n          strength < 76 ? good : excellent})\n    (label :class \"ocular-network-label ${class}\"\n           :text \"${strength == \"\" ? 0 : strength}%\")))\n\n(defwidget _infogeneric [level icon ?class]\n  (box :class \"ocular-generic-box\"\n       :space-evenly false\n       :spacing 8\n    (label :class \"ocular-generic-icon ${class}\" :text icon)\n    (label :class \"ocular-generic-label ${class}\" :text \"${round(level, 0)}%\")))\n\n(defwidget _infotemp [level icon ?class]\n  (box :class \"ocular-temp-box\"\n       :space-evenly false\n       :spacing 8\n    (label :class \"ocular-temp-icon ${class}\" :text icon)\n    (label :class \"ocular-temp-label ${class}\" :text \"${round(level, 0)}°C\")))\n\n(defwidget _radialtime [hour min sec]\n  (circular-progress :value {sec * 100 / 60}\n                     :valign \"center\"\n                     :vexpand true\n                     :thickness 25\n                     :class \"ocular-time-radial\" \"${hour}:${min}\"))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/origin/_init.yuck",
    "content": "(include \"./src/yuck/origin/_layout.yuck\")\n\n(defwindow origin :stacking \"bg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :x 60 :y 60 :width \"13%\" :height \"5%\" :anchor \"top left\")\n  (origin_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/origin/_layout.yuck",
    "content": "(defwidget origin_layout []\n  (box :space-evenly false\n       :class \"origin-layout-box\"\n       :spacing 20\n    (_profile :path \"./assets/profile.png\"\n              :size 50\n              :tooltip \"profile\"\n              :button-class \"origin-profile-button\"\n              :image-class \"origin-profile-image\")\n    (box :valign \"center\" :orientation \"vertical\" :space-evenly false :class \"origin-info-box\"\n      (label :halign \"start\" :class \"origin-greet\" :text \"Hey, ${username}.\")\n      (label :halign \"start\" :class \"origin-hostname\" :text \"${username}@${hostname}\"))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/power/_init.yuck",
    "content": "(include \"./src/yuck/power/_modules.yuck\")\n(include \"./src/yuck/power/_layout.yuck\")\n\n(defwindow power :stacking \"fg\"\n  :windowtype \"normal\"\n  :wm-ignore true\n  :geometry (geometry :width \"100%\" :height \"100%\")\n  (power_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/power/_layout.yuck",
    "content": "(defwidget power_layout []\n  (box :class \"power-layout-box\"\n       :space-evenly false\n       :orientation \"vertical\"\n       :style \"background-image: url('/home/dharmx/Pictures/walls/radium/output-1659958155.png')\"\n    (box :valign \"start\" :space-evenly false :spacing 25\n      (_sundialinfo :class \"power\" :halign \"end\" :hexpand true)\n      (_infobatnolbl :battery {EWW_BATTERY.BAT0.capacity}\n                     :status {EWW_BATTERY.BAT0.status}\n                     :charge \"\"\n                     :one \"\"\n                     :two \"\"\n                     :three \"\"\n                     :four \"\"\n                     :five \"\"\n                     :six \"\"\n                     :seven \"\"\n                     :class \"power-info-bat\")\n      (_infonetnolbl :strength net\n                     :offline \"\"\n                     :excellent \"\"\n                     :good \"\"\n                     :okay \"\"\n                     :slow \"\"\n                     :class \"power-info-net\")\n      (label :text \"|\" :class \"power-separator\")\n      (button :onclick \"eww close power\" :class \"power-close-button\" \"\"))\n    (box :space-evenly false\n         :hexpand true\n         :vexpand true\n      (box :spacing 15 :space-evenly false :valign \"end\" :halign \"start\"\n        (label :text \"\" :class \"power-label-icon\")\n        (label :text \"${time.hour}  ${time.min}\" \n               :class \"power-label power-label-time\"))\n      (_powermenu :shutdown \"sudo -A poweroff\" \n                  :reboot \"sudo -A reboot\" \n                  :logout \"sudo -A loginctl kill-session self\" \n                  :lock \"~/.bin/util/i3lock.sh maker\" \n                  :sleep \"sudo -A systemctl suspend\"\n                  :shutdown_icon \"\"\n                  :reboot_icon \"\"\n                  :logout_icon \"\"\n                  :lock_icon \"\"\n                  :sleep_icon \"\"))))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/power/_modules.yuck",
    "content": "(defwidget _powermenu [shutdown shutdown_icon reboot reboot_icon logout \n                       logout_icon lock lock_icon sleep sleep_icon]\n  (box :vexpand true \n       :hexpand true\n       :space-evenly false \n       :class \"power-box\" \n       :valign \"end\"\n       :halign \"end\"\n       :spacing 5\n    (button :class \"power-shutdown-button\" :onclick \"${shutdown} && eww close power\" shutdown_icon)\n    (button :class \"power-reboot-button\" :onclick \"${reboot} && eww close power\" reboot_icon)\n    (button :class \"power-logout-button\" :onclick \"${logout} && eww close power\" logout_icon)\n    (button :class \"power-lock-button\" :onclick \"${lock} && eww close power\" lock_icon)\n    (button :class \"power-sleep-button\" :onclick \"${sleep} && eww close power\" sleep_icon)))\n\n; vim:filetype=yuck\n"
  },
  {
    "path": "src/yuck/vertigo/_env.yuck",
    "content": "(deflisten vertigo_workspaces \"./src/shell/workspaces.zsh subscribe_desktop\")\n(deflisten vertigo_nodes \"./src/shell/workspaces.zsh subscribe_node\")\n\n(defvar vertigo_open false)\n(defvar vertigo_revealex false)\n(defvar vertigo_revealnd false)\n\n(defvar vertigo_remove \"./src/shell/workspaces.zsh remove\")\n(defvar vertigo_create \"./src/shell/workspaces.zsh create\")\n\n(defpoll vertigo_config :interval \"5000h\" :run-while false \"cat ewwrc\")\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/vertigo/_init.yuck",
    "content": "(include \"./src/yuck/vertigo/_env.yuck\")\n(include \"./src/yuck/vertigo/_label.yuck\")\n(include \"./src/yuck/vertigo/_reveal.yuck\")\n(include \"./src/yuck/vertigo/_modules.yuck\")\n(include \"./src/yuck/vertigo/_layout.yuck\")\n\n(defwindow vertigo\n  :stacking \"bg\"\n  :windowtype \"dock\"\n  :geometry (geometry :width \"4%\" :height \"100%\" :anchor \"left center\")\n  :reserve (struts :distance \"4%\" :side \"left\") \n  (vertigo_layout))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/vertigo/_label.yuck",
    "content": "(defwidget _label [vexpand text ?tooltip ?valign ?button-class ?label-class ?M ?L ?R]\n  (button :onmiddleclick M\n          :onclick L\n          :onrightclick R\n          :vexpand vexpand\n          :valign \"${valign == \"\" ? \"start\" : valign}\"\n          :class \"vertigo-button ${button-class}\" \n          :tooltip tooltip\n\n    (label :text text \n           :limit-width 2 \n           :class \"vertigo-label ${label-class}\")))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/vertigo/_layout.yuck",
    "content": "(defwidget vertigo_layout []\n  (box :orientation \"vertical\"\n       :space-evenly false\n       :class \"vertigo-layout-box\"\n    (box :space-evenly false :orientation \"vertical\" :spacing 10\n      (eventbox :onhover \"eww update vertigo_revealnd=true\"\n                :onhoverlost \"eww update vertigo_revealnd=false\"\n        (box :space-evenly false :orientation \"vertical\" :class \"\"\n          (button :onmiddleclick {vertigo_nodes.onmiddleclick}\n                  :class {vertigo_nodes.class}\n                  :tooltip {vertigo_nodes.tooltip} {vertigo_nodes.label})\n          (_revealnd :revealon vertigo_revealnd :config vertigo_config)))\n      (_label :text \"\"\n              :tooltip \"find\"\n              :vexpand false\n              :button-class \"vertigo-search-button\"\n              :L \"pushd ~;rofi -show;popd\"))\n    (eventbox :onscroll '[ {} = up ] || bspc desktop -f next; [ {} = down ] || bspc desktop -f prev'\n              :vexpand true\n      (scroll :height 370\n        (box :orientation 'vertical'\n             :class 'vertigo-box vertigo-desktop'\n             :space-evenly false\n             :tooltip 'workspaces'\n          (for workspace in vertigo_workspaces\n            (button :class {workspace.class}\n                    :tooltip {workspace.tooltip}\n                    :onclick {workspace.onclick} {workspace.label})))))\n    (eventbox :onhover \"eww update vertigo_revealex=true\"\n              :onhoverlost \"eww update vertigo_revealex=false\"\n      (box :space-evenly false :orientation \"vertical\"\n        (_vertigobat :critical \"暑\"\n                     :full \"\"\n                     :battery {EWW_BATTERY.BAT0.capacity})\n        (_time :time time\n               :tooltip \"time ${time.hour}:${time.min}\"\n               :button-class \"vertigo-time-button\"\n               :L \"eww open --toggle bolt\")\n        (_revealex :revealon vertigo_revealex)\n        (label :text \"\"\n               :class \"vertigo-separator\"))) \n    (_profile :M \"eww update vertigo_revealex=${!vertigo_revealex}\"\n                  :L \"eww open --toggle avatar\"\n                  :path profile\n                  :image-class \"vertigo-profile-image\"\n                  :button-class \"vertigo-profile-button\"\n                  :size \"50\"\n                  :tooltip \"profile\")))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/vertigo/_modules.yuck",
    "content": "(defwidget _time [time ?tooltip ?M ?L ?R ?button-class]\n  (button :onmiddleclick M \n          :onclick L \n          :onrightclick R\n          :class \"vertigo-button ${button-class}\" \n          :tooltip tooltip\n\n    (box :orientation \"vertical\"\n         :space-evenly false\n      (label :text {time.hour}\n             :class \"vertigo-time-format-first\") \n      (label :text {time.min}\n             :class \"vertigo-time-format-second\"))))\n\n(defwidget _vertigobat [critical full battery]\n  (_label :text {battery < 16 ? critical : battery > 94 ? full : battery}\n          :tooltip \"capacity: ${battery}\"\n          :vexpand true\n          :valign \"end\"\n          :button-class \"vertigo-battery-button\"))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "src/yuck/vertigo/_reveal.yuck",
    "content": "(defwidget _revealex [revealon]\n  (revealer :reveal revealon\n            :transition \"slidedown\"\n            :class \"vertigo-revealer\"\n\n    (box :orientation \"vertical\"\n         :class \"vertigo-reveal-box\"\n         :space-evenly false\n      (_label :text volume_status\n              :L vertigo_volume_toggle\n              :tooltip \"volume: ${volume_level}\"\n              :vexpand false\n              :button-class \"vertigo-volume-button ${volume_status == \"\" ? \"vertigo-volume-on\" : \"vertigo-volume-off\"}\")\n      (_label :text redshift\n              :tooltip \"nightmode\"\n              :vexpand false\n              :L \"[ $(pidof redshift) ] && pkill redshift || redshift &\"\n              :button-class \"vertigo-nightmode-button ${redshift == \"\" ? \"vertigo-nightmode-on\" : \"vertigo-nightmode-off\"}\")\n      (_label :text \"賂\"\n              :tooltip \"node\"\n              :button-class \"vertigo-workspace-plus-button\"\n              :vexpand false\n              :L vertigo_create\n              :R vertigo_remove)\n      (_label :text dunst\n              :tooltip \"notify\"\n              :vexpand false\n              :button-class \"vertigo-notify-button ${dunst == \"\" ? \"vertigo-notify-on\" : \"vertigo-notify-off\"}\"\n              :L \"[ $(dunstctl is-paused) = false ] && dunstctl set-paused true || dunstctl set-paused false\"\n              :M \"eww open --toggle disclose\")\n      (_label :text \"朗\"\n              :vexpand false\n              :tooltip \"todo\"\n              :button-class \"vertigo-todo-button\"))))\n\n(defwidget _revealnd [revealon config]\n  (revealer :reveal revealon\n            :transition \"slidedown\"\n            :class \"vertigo-revealer\"\n    (scroll :height 110 :vexpand true\n      (box :vexpand true :orientation \"vertical\"\n           :class \"vertigo-reveal-box\"\n           :space-evenly false\n            (for layout in {config.layouts}\n              (_label :text {layout.icon}\n                      :tooltip {layout.label}\n                      :vexpand false\n                      :button-class \"vertigo-${layout.label}\"\n                      :L {layout.command}))))))\n\n;; vim:ft=yuck\n"
  },
  {
    "path": "themes/radium.scss",
    "content": "$base00: #101317;\n$base01: #171C21;\n$base02: #1c2026;\n$base03: #20252b;\n\n$base04: #949494;\n$base05: #d4d4d5;\n$base06: #ffffff;\n\n$base07: #54ced6;\n$base08: #70c0ba;\n$base09: #7ab0df;\n$base10: #b77ee0;\n\n$base11: #f87070;\n$base12: #36c692;\n$base13: #ffe59e;\n$base14: #79dcaa;\n$base15: #c397d8;\n\n$shade00: #3d464e;\n$shade01: #2b3238;\n$shade02: #24292e;\n$shade03: #1f2429;\n$shade04: #1c2126;\n$shade05: #191e23;\n$shade06: #161b20;\n$shade07: #151a1f;\n$shade08: #13181d;\n$shade09: #11161b;\n$shade10: #0e1115;\n$shade11: #0c0f13;\n$shade12: #0a0d11;\n\n$normal: #273a4e;\n$critical: #471d1d;\n$low: #0c2d21;\n$other: #2c1033;\n\n// vim:ft=scss\n"
  }
]