mirror of
https://github.com/roles-ansible/ansible_role_sway.git
synced 2024-08-16 13:49:49 +02:00
Rename some enviroment variables
This commit is contained in:
parent
838d135df0
commit
dd5bada307
4 changed files with 9 additions and 15 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue