Remove hibernate on FreeBSD.

This commit is contained in:
Tom Alexander 2022-12-02 00:09:33 -05:00
parent 80083ff0cc
commit d2b6c627ae
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
6 changed files with 43 additions and 11 deletions

View File

@ -29,6 +29,7 @@ users:
- name: wheel - name: wheel
- name: video - name: video
- name: u2f - name: u2f
- name: operator # To be able to shutdown without root
authorized_keys: authorized_keys:
- yubikey - yubikey
- main_fido - main_fido

View File

@ -0,0 +1,30 @@
{
"label" : "lock",
"action" : "swaylock -c 000000",
"text" : "Lock",
"keybind" : "l"
}
{
"label" : "logout",
"action" : "kill -9 -1",
"text" : "Logout",
"keybind" : "e"
}
{
"label" : "shutdown",
"action" : "shutdown -p now",
"text" : "Shutdown",
"keybind" : "s"
}
{
"label" : "suspend",
"action" : "zzz",
"text" : "Suspend",
"keybind" : "u"
}
{
"label" : "reboot",
"action" : "shutdown -r now",
"text" : "Reboot",
"keybind" : "r"
}

View File

@ -13,6 +13,7 @@
- ".config/sway/config.d" - ".config/sway/config.d"
- ".config/xdg-desktop-portal-wlr" - ".config/xdg-desktop-portal-wlr"
- ".config/mako" - ".config/mako"
- ".config/wlogout"
- name: Copy files - name: Copy files
copy: copy:

View File

@ -1,13 +1,3 @@
- name: Create directories
file:
name: "{{ account_homedir.stdout }}/{{ item }}"
state: directory
mode: 0700
owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}"
loop:
- ".config/wlogout"
- name: Copy files - name: Copy files
copy: copy:
src: "files/{{ item.src }}" src: "files/{{ item.src }}"
@ -16,5 +6,5 @@
owner: "{{ account_name.stdout }}" owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}" group: "{{ group_name.stdout }}"
loop: loop:
- src: wlogout_layout - src: wlogout_layout_freebsd
dest: .config/wlogout/layout dest: .config/wlogout/layout

View File

@ -0,0 +1,10 @@
- name: Copy files
copy:
src: "files/{{ item.src }}"
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
mode: 0600
owner: "{{ account_name.stdout }}"
group: "{{ group_name.stdout }}"
loop:
- src: wlogout_layout_linux
dest: .config/wlogout/layout