Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macunha1/awesomewm-memory-notifier
Simple and minimalistic memory (RAM) pop-up notifier for AwesomeWM.
https://github.com/macunha1/awesomewm-memory-notifier
List: awesomewm-memory-notifier
awesomewm awesomewm-memory-notifier notifier ram
Last synced: 4 months ago
JSON representation
Simple and minimalistic memory (RAM) pop-up notifier for AwesomeWM.
- Host: GitHub
- URL: https://github.com/macunha1/awesomewm-memory-notifier
- Owner: macunha1
- License: unlicense
- Created: 2018-10-13T16:31:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T08:50:27.000Z (over 4 years ago)
- Last Synced: 2024-04-22T14:04:08.540Z (10 months ago)
- Topics: awesomewm, awesomewm-memory-notifier, notifier, ram
- Language: Lua
- Homepage:
- Size: 256 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-awesomewm-modules-widgets-and-libraries - AwesomeWM Memory Notifier plug-in
- awesome-awesomewm-modules-widgets-and-libraries - AwesomeWM Memory Notifier plug-in
README
AwesomeWM Memory Notifier plug-in
Simple and minimalistic Memory (RAM) notifier for AwesomeWM.
Using [Wibox widget piechart](https://awesomewm.org/apidoc/widgets/wibox.widget.piechart.html) to display memory usage in GB and percentage.![Screenshot](/screenshot.png?raw=true "Screenshot")
RAM notifier plugin code was initially based on [deficient/calendar](https://github.com/deficient/calendar.git),
displaying a small text using [Naughty](https://awesomewm.org/doc/api/libraries/naughty.html).Later it evolved into a pie chart notification using [streetturtle](https://github.com/streetturtle/awesome-wm-widgets/blob/master/ram-widget/ram-widget.lua) implementation as an inspiration.
### Installation
Drop the plugin code into your AwesomeWM config folder. e.g.:
```bash
[[ -d ~/.config/awesome/plugins ]] || mkdir ~/.config/awesome/plugins
cd ~/.config/awesome/plugins
git clone https://github.com/macunha1/awesomewm-memory-notifier ~/.config/awesome/plugins/memory-notifier
```If your AwesomeWM config is a git repository, you can add as a submodule with
``` bash
cd ~/.config/awesomegit submodule add -b master \
-f --name memory-plugin \
https://github.com/macunha1/awesomewm-memory-notifier \
plugins/memory-notifiergit submodule sync --recursive .
```### Usage
And then import the plugin into your `rc.lua`:
```lua
-- load the widget code
local memory_widget = require("plugins.memory-notifier")-- attach it as popup to your memory widget:
mem_widget({
colors = {
theme.fg_focus,
theme.bg_normal,
theme.fg_normal,
},
font = theme.font, -- not supported
fg = theme.fg_normal,
bg = theme.bg_focus,border_width = theme.border_width,
border_color = theme.border_color
}):attach(ram_wid)
```### Requirements
* [awesome 4.0](http://awesome.naquadah.org/). May work on 3.5 with minor changes.