update from master
|
@ -3,9 +3,14 @@ layout: page
|
|||
---
|
||||
# Docker Widget
|
||||
|
||||
The widget allows to manage containers, namely start/stop/pause/unpause:
|
||||
[![GitHub issues by-label](../awesome-wm-widgets/assets/img/screenshots/docker-widgetttps://img.shields.io/github/issues-raw/streetturtle/awesome-wm-widgets/docker)](../awesome-wm-widgets/assets/img/screenshots/docker-widgetttps://github.com/streetturtle/awesome-wm-widgets/labels/docker)
|
||||
![Twitter URL](../awesome-wm-widgets/assets/img/screenshots/docker-widgetttps://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fstreetturtle%2Fawesome-wm-widgets%2Fedit%2Fmaster%2Fdocker-widget)
|
||||
|
||||
![screenshot](../awesome-wm-widgets/assets/img/screenshots/docker-widget/docker.gif)
|
||||
The widget allows to manage docker containers, namely start/stop/pause/unpause:
|
||||
|
||||
<p align="center">
|
||||
<img src="https://github.com/streetturtle/awesome-wm-widgets/raw/master/docker-widget/docker.gif"/>
|
||||
</p>
|
||||
|
||||
## Customization
|
||||
|
||||
|
|
|
@ -0,0 +1,74 @@
|
|||
---
|
||||
layout: page
|
||||
---
|
||||
# Logout widget
|
||||
|
||||
Widget which allows to perform lock, reboot, log out, power off and sleep actions. It can be called either by a shortcut, or by clicking on a widget in wibar.
|
||||
|
||||
<p align="center">
|
||||
<img src="https://github.com/streetturtle/awesome-wm-widgets/raw/master/experiments/logout-widget/screenshot.gif" alt="screenshot">
|
||||
</p>
|
||||
|
||||
# Installation
|
||||
|
||||
Clone this (if not cloned yet) and the [awesome-buttons](../awesome-wm-widgets/assets/img/screenshots/logout-widgetttps://github.com/streetturtle/awesome-buttons) repos under **./.config/awesome/**
|
||||
|
||||
```bash
|
||||
cd ./.config/awesome/
|
||||
git clone https://github.com/streetturtle/awesome-wm-widgets
|
||||
git clone https://github.com/streetturtle/awesome-buttons
|
||||
```
|
||||
Then
|
||||
|
||||
- to show by a shortcut - define a shortcut in `globalkeys`:
|
||||
|
||||
```lua
|
||||
local logout = require("awesome-wm-widgets.experiments.logout-widget.logout")
|
||||
...
|
||||
globalkeys = gears.table.join(
|
||||
...
|
||||
awful.key({ modkey }, "l", function() logout.launch() end, {description = "Show logout screen", group = "custom"}),
|
||||
```
|
||||
|
||||
- to show by clicking on a widget in wibar - add widget to the wibar:
|
||||
|
||||
```lua
|
||||
local logout = require("awesome-wm-widgets.experiments.logout-widget.logout")
|
||||
|
||||
s.mytasklist, -- Middle widget
|
||||
{ -- Right widgets
|
||||
layout = wibox.layout.fixed.horizontal,
|
||||
...
|
||||
logout.widget{},
|
||||
...
|
||||
```
|
||||
|
||||
# Customisation
|
||||
|
||||
| Name | Default | Description |
|
||||
|---|---|---|
|
||||
| `icon` | `power.svg` | If used as widget - the path to the widget's icon |
|
||||
| `bg_color` | `beautiful.bg_normal` | The color the background of the |
|
||||
| `accent_color` | `beautiful.bg_focus` | The color of the buttons |
|
||||
| `text_color` | `beautiful.fg_normal` | The color of text |
|
||||
| `phrases` | `{'Goodbye!'}` | The table with phrase(s) to show, if more than one provided, the phrase is chosen randomly |
|
||||
| `onlogout` | `function() awesome.quit() end` | Function which is called when the logout button is pressed |
|
||||
| `onlock` | `function() awful.spawn.with_shell("systemctl suspend") end` | Function which is called when the lock button is pressed |
|
||||
| `onreboot` | `function() awful.spawn.with_shell("reboot") end` | Function which is called when the reboot button is pressed |
|
||||
| `onsuspend` | `function() awful.spawn.with_shell("systemctl suspend") end` | Function which is called when the suspend button is pressed |
|
||||
| `onpoweroff` | `function() awful.spawn.with_shell("shutdown now") end` | Function which is called when the poweroff button is pressed |
|
||||
|
||||
Some color themes for inspiration:
|
||||
|
||||
![nord](../awesome-wm-widgets/assets/img/screenshots/logout-widgetogout-nord.png)
|
||||
![outrun](../awesome-wm-widgets/assets/img/screenshots/logout-widgetogout-outrun.png)
|
||||
![dark](../awesome-wm-widgets/assets/img/screenshots/logout-widgetogout-dark.png)
|
||||
|
||||
```lua
|
||||
logout.launch{
|
||||
bg_color = "#261447", accent_color = "#ff4365", text_color = '#f706cf', -- outrun
|
||||
-- bg_color = "#0b0c10", accent_color = "#1f2833", text_color = '#66fce1', -- dark
|
||||
-- bg_color = "#3B4252", accent_color = "#88C0D0", text_color = '#D8DEE9', -- nord
|
||||
phrases = {"exit(0)", "Don't forget to be awesome.", "Yippee ki yay!"},
|
||||
}
|
||||
```
|
|
@ -3,6 +3,9 @@ layout: page
|
|||
---
|
||||
# Weather widget
|
||||
|
||||
[![GitHub issues by-label](../awesome-wm-widgets/assets/img/screenshots/weather-widgetttps://img.shields.io/github/issues-raw/streetturtle/awesome-wm-widgets/weather)](../awesome-wm-widgets/assets/img/screenshots/weather-widgetttps://github.com/streetturtle/awesome-wm-widgets/labels/weather)
|
||||
|
||||
|
||||
Widget showing current, hourly and daily weather forecast.
|
||||
|
||||
<p align="center">
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-pull-request"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line></svg>
|
After Width: | Height: | Size: 382 B |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
|
After Width: | Height: | Size: 308 B |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 26 KiB |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ECEFF4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-power"><path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line></svg>
|
After Width: | Height: | Size: 303 B |
After Width: | Height: | Size: 168 KiB |
After Width: | Height: | Size: 127 KiB |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#D8DEE9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>
|
After Width: | Height: | Size: 264 B |
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#D8DEE9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><polyline points="18 15 12 9 6 15"></polyline></svg>
|
After Width: | Height: | Size: 263 B |