1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00

Rename some enviroment variables

This commit is contained in:
Lilian Roller 2019-06-11 09:19:11 +02:00
parent 838d135df0
commit dd5bada307
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 9 additions and 15 deletions

View file

@ -37,8 +37,7 @@ Including an example of how to use your role (for instance, with variables passe
*`vars/main.yml`*
```bash
i3_desktop_env:
background: "~/wallpaper.jpg"
i3_desktop_background: "~/Bilder/wallpaper.jpg"
i3_packages_extra:
- ranger

View file

@ -24,14 +24,12 @@ i3_run_on_startup: []
# - foo
# - bar
## set default font size
i3:
font_size: 9
focus_follows_mouse: true
i3_font_size: 9
i3_focus_follows_mouse: true
# set i3lock options
i3lock_options: "i3lock --image=/home/{{ i3wm_user }}/.config/lockscreen.png --color 000000"
# use fancy background
i3_desktop_env:
background: "/home/{{ i3wm_user }}/.config/background.png"
i3_desktop_background: "/home/{{ i3wm_user }}/.config/background.png"
# install additional packages
i3_packages_extra:
- ranger

View file

@ -3,8 +3,7 @@
hosts: all
vars:
i3_desktop_env:
background: "~/wallpaper.jpg"
i3_desktop_background: "~/wallpaper.jpg"
i3_packages_extra:
- ranger

View file

@ -4,8 +4,8 @@ set $term terminator
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace {{ i3.font_size }}
focus_follows_mouse {% if i3.focus_follows_mouse %}yes{% else %}no{% endif %}
font pango:monospace {{ i3_font_size }}
focus_follows_mouse {% if i3_focus_follows_mouse | bool %}yes{% else %}no{% endif %}
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
@ -153,10 +153,8 @@ bar {
}
# Background
{% if i3_desktop_env is defined %}
{% if i3_desktop_env.background is defined %}
exec_always feh --bg-scale {{ i3_desktop_env.background}}
{% endif %}
{% if i3_desktop_background is defined %}
exec_always feh --bg-scale {{ i3_desktop_background }}
{% endif %}
# Setup Monitors