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`* *`vars/main.yml`*
```bash ```bash
i3_desktop_env: i3_desktop_background: "~/Bilder/wallpaper.jpg"
background: "~/wallpaper.jpg"
i3_packages_extra: i3_packages_extra:
- ranger - ranger

View file

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

View file

@ -3,8 +3,7 @@
hosts: all hosts: all
vars: vars:
i3_desktop_env: i3_desktop_background: "~/wallpaper.jpg"
background: "~/wallpaper.jpg"
i3_packages_extra: i3_packages_extra:
- ranger - 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 # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. # is used in the bar {} block below.
font pango:monospace {{ i3.font_size }} font pango:monospace {{ i3_font_size }}
focus_follows_mouse {% if i3.focus_follows_mouse %}yes{% else %}no{% endif %} focus_follows_mouse {% if i3_focus_follows_mouse | bool %}yes{% else %}no{% endif %}
# Use Mouse+$mod to drag floating windows to their wanted position # Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod
@ -153,10 +153,8 @@ bar {
} }
# Background # Background
{% if i3_desktop_env is defined %} {% if i3_desktop_background is defined %}
{% if i3_desktop_env.background is defined %} exec_always feh --bg-scale {{ i3_desktop_background }}
exec_always feh --bg-scale {{ i3_desktop_env.background}}
{% endif %}
{% endif %} {% endif %}
# Setup Monitors # Setup Monitors