瀏覽代碼

changes in mainentance mode

master
父節點
當前提交
c1d154886d
共有 3 個檔案被更改,包括 7 行新增5 行删除
  1. +2
    -1
      tasks/main.yml
  2. +1
    -0
      templates/mainentance-xsession.sh.j2
  3. +4
    -4
      templates/mainentance.xbindkeys.j2

+ 2
- 1
tasks/main.yml 查看文件

@@ -21,9 +21,10 @@
- x11-xserver-utils
- lightdm
- lightdm-gtk-greeter
- onboard
- yad
- xbindkeys
- onboard
- feh
notify: restart lightdm

- include: mainentance.yml


+ 1
- 0
templates/mainentance-xsession.sh.j2 查看文件

@@ -2,5 +2,6 @@
{{ ansible_managed | comment }}
xset -dpms
xset s off
feh --bg-scale "{{display_manager_background_image_path}}"
xbindkeys -f /usr/local/share/mainentance/xbindkeys &
exec yad --no-buttons --no-escape --image-on-top --center --borders 50 --image="{{display_manager_mainentance_icon}}" --text="{{display_manager_mainentance_text}}"

+ 4
- 4
templates/mainentance.xbindkeys.j2 查看文件

@@ -1,6 +1,6 @@
"dm-tool switch-to-greeter"
Mod4 + Escape
# "dm-tool switch-to-greeter"
# Mod4 + Escape
"systemctl reboot"
Mod4 + r
Control + r
"systemctl poweroff"
Mod4 + p
Control + p

Loading…
取消
儲存