l3d.i3wm
I3ウィンドウマネージャー - Ansibleロール
=========================================
Ansibleを使用して、I3ウィンドウマネージャーの基本的な設定をインストールおよび展開します。
オプションで解像度、アプリケーションがどの画面にバインドされるか、そしてオートスタートに何が含まれるかを設定できます。
Xorgの代わりにWaylandを使用したい場合は、ウィンドウマネージャーとしてswayを使用することを検討してください。その関連のAnsibleはgithub.com/roles-ansible/role-swayにあります。
Ansible Galaxyから直接インストール
$ ansible-galaxy install roles-ansible.i3wm
ロール変数
使用可能な変数についての良い概要は、defaults/main.yml
を参照してください。
使用例
- name: localhostにi3wmをインストール
hosts: localhost
vars_files:
- vars/main.yml
roles:
- {role: roles-ansible.i3wm, tags[i3, i3wm]}
vars/main.yml
# i3wm設定用のユーザーリスト
i3wm_user_list:
- user: "alice"
home: "/home/alice"
- user: "bob"
home: "/home/bob"
# 背景画像
i3_desktop_background: "~/Bilder/wallpaper.jpg"
# 追加のキー割り当てが欲しいですか?
i3_keybindings_extra:
- keybinding:
name: 音量 (ミュート/ミュート解除)
key: $mod+F12
exec: --no-startup-id amixer sset Master toggle
- keybinding:
name: 音量 (デフォルト)
key: $mod+Shift+F12
exec: --no-startup-id amixer sset Master 40%
# モニターの設定方法
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]
# スタートアップアプリケーション
i3_applications:
- application:
class: "Firefox"
name: "firefox"
workspace: 1
on_startup: false
- application:
class: "Code"
name: "code"
workspace: 7
on_startup: true
# 90分後に画面をロック
enable_lock_after_time: true
files/rofi/dracula_dark.rasi
# 複数のi3blocksオプションを有効にする
i3_i3blocks_options:
weather: true
audio_volume: true
wifisignal: true
ipaddress: true
clock: true
battery: true
ddate: true
# rofiテーマを選択
i3_rofi_config_file: 'files/rofi/dracula_dark.rasi'
要件
このAnsibleロールの一部にはcommunity.general
コレクションが必要です。
次のコマンドでインストールできます:
ansible-galaxy collection install -r requirements.yml --upgrade
プロジェクトについて
Install and configure i3wm on common linux distibutions (https://i3wm.org/)
インストール
ansible-galaxy install l3d.i3wm
ライセンス
mit
ダウンロード
546
所有者
Ansible roles provide a framework for fully independent, or interdependent collections of variables,tasks,files,templates &modules. Here we maintain some. enjoy