/usr/home/jens/Development/ansible/roles/conky on deathbolt.927589452.space at Mi. 13 März 2019 17:47:16 CET
This commit is contained in:
commit
5cc0bb4985
4 changed files with 94 additions and 0 deletions
28
tasks/conky.yml
Normal file
28
tasks/conky.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- name: install prequsites
|
||||
package:
|
||||
name: conky
|
||||
state: present
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
|
||||
- name: generate directories
|
||||
file:
|
||||
state: directory
|
||||
dest: "{{ home_path }}/{{ current_user}}/.config/conky"
|
||||
owner: "{{ current_user }}"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
|
||||
- name: generate conkyrc
|
||||
template:
|
||||
src: conkyrc.j2
|
||||
dest: "{{ home_path }}/{{ current_user}}/.config/conky/conky.conf"
|
||||
owner: "{{ current_user }}"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
|
||||
|
||||
7
tasks/main.yml
Normal file
7
tasks/main.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- include_tasks: "{{ item }}"
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
loop:
|
||||
- conky.yml
|
||||
16
tasks/vars.yml
Normal file
16
tasks/vars.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- debug:
|
||||
msg: "{{ansible_distribution}}-{{ansible_distribution_major_version}}-{{ansible_distribution}}"
|
||||
verbosity: 0
|
||||
|
||||
- name: Load OS specific vars, if available
|
||||
include_vars: "{{ lookup('first_found', params)}}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- '{{ansible_distribution}}-{{ansible_distribution_major_version}}.yml'
|
||||
- '{{ansible_distribution}}.yml'
|
||||
- '{{ansible_os_family}}.yml'
|
||||
- default.yml
|
||||
paths:
|
||||
- 'vars'
|
||||
43
templates/conkyrc.j2
Normal file
43
templates/conkyrc.j2
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{{ ansible_managed | comment }}
|
||||
|
||||
# i will probably keep running i3wm
|
||||
# https://www.reddit.com/r/i3wm/comments/4x8tif/i3_and_conky_in_the_background/own_window yes
|
||||
own_window_class Conky
|
||||
own_window_type override
|
||||
background yes
|
||||
# https://faq.i3wm.org/question/3829/conky-on-desktop.1.html
|
||||
# conky config battery indicator
|
||||
alignment top_left
|
||||
background no
|
||||
border_width 1
|
||||
cpu_avg_samples 2
|
||||
default_color white
|
||||
default_outline_color white
|
||||
default_shade_color white
|
||||
draw_borders no
|
||||
draw_graph_borders yes
|
||||
draw_outline no
|
||||
draw_shades no
|
||||
use_xft yes
|
||||
xftfont DejaVu Sans Mono:size=10
|
||||
gap_x 25
|
||||
gap_y 25
|
||||
minimum_size 5 5
|
||||
net_avg_samples 2
|
||||
double_buffer yes
|
||||
out_to_console no
|
||||
out_to_stderr no
|
||||
extra_newline no
|
||||
own_window yes
|
||||
own_window_class Conky
|
||||
own_window_type override
|
||||
stippled_borders 0
|
||||
update_interval 1.0
|
||||
uppercase no
|
||||
use_spacer none
|
||||
show_graph_scale no
|
||||
show_graph_range no
|
||||
|
||||
|
||||
TEXT
|
||||
${battery BAT1} ${battery_bar BAT1} ${battery_short BAT1}
|
||||
Loading…
Add table
Add a link
Reference in a new issue