1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00
Find a file
2019-06-10 21:56:11 +02:00
.github Create FUNDING.yml 2019-05-29 10:42:45 +02:00
defaults copy default images 2019-06-10 21:56:11 +02:00
files copy default images 2019-06-10 21:56:11 +02:00
meta Update LICENSE Information 2019-04-30 09:48:16 +02:00
molecule initial commit 2017-12-31 00:56:01 +01:00
tasks copy default images 2019-06-10 21:56:11 +02:00
templates improvement 2019-02-20 21:02:06 +01:00
tests Optimize playbook workflow without defined username 2019-04-24 14:49:17 +02:00
travis Optimize playbook workflow without defined username 2019-04-24 14:49:17 +02:00
vars copy default images 2019-06-10 21:56:11 +02:00
.gitignore initial commit 2017-12-31 00:56:01 +01:00
.travis.yml delete empty lines for ansible galaxy 2019-04-24 10:51:51 +02:00
.yamllint initial commit 2017-12-31 00:56:01 +01:00
LICENSE Update LICENCE: MIT 2019-05-29 10:52:06 +02:00
README.md Improved README 2019-05-29 10:55:59 +02:00

I3 Window Manager - ansible role

Install and deploy a basic configuration of I3 Window Manager via ansible.

Build Status

Get it directly from Ansible Galaxy

$ ansible-galaxy install do1jlr.ansible_role_i3wm

Requirements

No requirements.

Role Variables

For a good overview about possible variables, please have a look into defaults/main.yml.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

    - hosts: all
      vars_files:
        - vars/main.yml    
      roles:
        - { role: i3 }

vars/main.yml

    i3_desktop_env:
      background: "~/wallpaper.jpg"

    i3_packages_extra:
      - ranger

    i3_keybindings_extra:
      - keybinding:
        name: Volume (mute/unmute)
        key: $mod+F12
        exec: --no-startup-id amixer sset Master toggle
      - keybinding:
        name: Volue (default)
        key: $mod+Shift+F12
        exec: --no-startup-id amixer sset Master 40%

    i3_monitors:
      - monitor:
        id: 1
        output: "VGA-1"
        mode: "1920x1080"
        pos: "0x0"
        rotate: "normal"
        workspaces: [1,2,3,4,5,6]
      - monitor:
        id: 2
        output: "HDMI-1"
        mode: "1920x1080"
        pos: "1920x0"
        rotate: "normal"
        workspaces: [7,8,9,0]

    i3_applications:
      - application:
        class: "Firefox"
        name: "firefox"
        workspace: 1
        on_startup: false
      - application:
        class: "Code"
        name: "code"
        workspace: 7
        on_startup: true