mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Enable emptty for Void desktops
This commit is contained in:
8
ansible/roles/profile_desktop_i3/files/i3.desktop
Normal file
8
ansible/roles/profile_desktop_i3/files/i3.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name=i3
|
||||
Comment=improved dynamic tiling window manager
|
||||
Exec=i3
|
||||
TryExec=i3
|
||||
Type=Application
|
||||
DesktopNames=i3
|
||||
Keywords=tiling;wm;windowmanager;window;manager;
|
||||
5
ansible/roles/profile_desktop_i3/handlers/main.yml
Normal file
5
ansible/roles/profile_desktop_i3/handlers/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: Restart emptty
|
||||
ansible.builtin.command: sv restart emptty
|
||||
changed_when: true
|
||||
when: not ansible_check_mode
|
||||
@@ -96,6 +96,46 @@
|
||||
line: "password optional pam_gnome_keyring.so use_authtok"
|
||||
state: present
|
||||
|
||||
- name: Ensure emptty log directory exists
|
||||
tags: [packages, services, emptty]
|
||||
ansible.builtin.file:
|
||||
path: /var/log/emptty
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
|
||||
- name: Ensure emptty session directories exist
|
||||
tags: [packages, services, emptty]
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
loop:
|
||||
- /etc/emptty/xsessions
|
||||
- /etc/emptty/wayland-sessions
|
||||
|
||||
- name: Install allowed emptty X11 sessions
|
||||
tags: [packages, services, emptty]
|
||||
ansible.builtin.copy:
|
||||
src: i3.desktop
|
||||
dest: /etc/emptty/xsessions/i3.desktop
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
|
||||
- name: Configure emptty
|
||||
tags: [packages, services, emptty]
|
||||
ansible.builtin.template:
|
||||
src: emptty-conf.j2
|
||||
dest: /etc/emptty/conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
notify: Restart emptty
|
||||
|
||||
- name: Copy desktop dotfiles
|
||||
tags: [dotfiles, dotfiles:desktop]
|
||||
ansible.builtin.copy:
|
||||
|
||||
12
ansible/roles/profile_desktop_i3/templates/emptty-conf.j2
Normal file
12
ansible/roles/profile_desktop_i3/templates/emptty-conf.j2
Normal file
@@ -0,0 +1,12 @@
|
||||
TTY_NUMBER=7
|
||||
SWITCH_TTY=true
|
||||
DEFAULT_ENV=xorg
|
||||
DBUS_LAUNCH=false
|
||||
XINITRC_LAUNCH=true
|
||||
XORG_SESSIONS_PATH=/etc/emptty/xsessions
|
||||
WAYLAND_SESSIONS_PATH=/etc/emptty/wayland-sessions
|
||||
VERTICAL_SELECTION=true
|
||||
IDENTIFY_ENVS=true
|
||||
SELECT_LAST_USER=global
|
||||
LOGGING=rotate
|
||||
SESSION_ERROR_LOGGING=disabled
|
||||
Reference in New Issue
Block a user