nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
403 stars 24 forks source link

ansible script to install nwg-displays on debian #65

Open ronsmits opened 1 month ago

ronsmits commented 1 month ago

The following expects sway already installed (apt install -y sway), then with ansible playbook run this playbook:

- hosts: localhost
  become: yes

  pre_tasks:
  - name: upgrade OS
    apt:
      upgrade: yes
      update_cache: yes
    changed_when: False

  tasks:
    - name: install needed packages
      apt:
        name: "{{ packages }}"
        state: present
      vars:
        packages:
        - python3-setuptools
        - python3-gi
        - gir1.2-gtk-3.0
        - libgtk-layer-shell-dev
        - python3-i3ipc
        - python3-build
        - python3-installer
        - python3-wheel

    - name: clone nwg-displays
      git:
        repo: "https://github.com/nwg-piotr/{{ item }}.git"
        dest: /tmp/{{ item }}
        update: false
      loop:
        - nwg-displays

    - name: install nwg-displays
      become: yes
      command: ./install.sh
      args:
        chdir: /tmp/nwg-displays
nwg-piotr commented 1 month ago

What do you expect me to do? I have nothing to do with Debian packaging.

ronsmits commented 1 month ago

I am a fervent debian user and I wanted at least nwg-displays to be used. I posted this as a helpful hint for other people, You can remove or close this ticket if you dont like it ;)

nwg-piotr commented 1 month ago

OK, let it stay where it is. We still have no Wiki here, alas. Thank you for contribution.