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
2022-04-11 18:07:30 +02:00
.github update github actions 2022-04-11 17:51:43 +02:00
defaults fix yaml linting 2021-02-26 17:31:17 +01:00
files Update i3bar errors 2021-11-08 19:30:22 +01:00
meta update meta info 2021-09-07 14:56:16 +02:00
molecule Rename some enviroment variables 2019-06-11 09:19:11 +02:00
tasks improve permissions... 2021-11-15 00:28:35 +01:00
templates remove compton 2021-02-26 18:21:59 +01:00
tests Optimize playbook workflow without defined username 2019-04-24 14:49:17 +02:00
travis Update travis 2019-06-11 09:37:23 +02:00
vars improve permissions... 2021-11-15 00:28:35 +01:00
.gitignore initial commit 2017-12-31 00:56:01 +01:00
.yamllint fix yaml linting 2021-02-26 17:31:17 +01:00
LICENSE Update LICENCE: MIT 2019-05-29 10:52:06 +02:00
README.md improeve README 2022-04-11 17:57:56 +02:00

I3 Window Manager - ansible role

Install and deploy a basic configuration of I3 Window Manager via ansible.
Optionally configure your resolution, which applications will be bound to which screen and what will be included in the autostart.
If you want to use wayland instead of xorg, think about using sway as window manager. The corresponding ansible is located on github.com/roles-ansible/role-sway.

MIT License MIT License

Get it directly from Ansible Galaxy

$ ansible-galaxy install do1jlr.i3wm

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:

    - name: install i3wm on localhost
      hosts: localhost
      vars_files:
        - vars/main.yml
      roles:
        - {role: do1jlr.i3wm, tags[i3,i3wm]}

vars/main.yml

    # background image
    i3_desktop_background: "~/Bilder/wallpaper.jpg"

    # you want additional keybindings?
    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%

    # how your monitors are configured
    i3_monitors:
      - monitor:
        id: 1
        output: "HDMI-A-0"
        mode: "1920x1080"
        pos: "0x0"
        rotate: "normal"
        workspaces: [0,1,2,3,4,5,6]
      - monitor:
        id: 2
        output: "DisplayPort-0"
        mode: "1920x1080"
        pos: "1920x0"
        rotate: "normal"
        workspaces: [7,8,9]

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

    # lock your screen after 3 hours
    enable_lock_after_time: true