浏览代码

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 - x11-xserver-utils
- lightdm - lightdm
- lightdm-gtk-greeter - lightdm-gtk-greeter
- onboard
- yad - yad
- xbindkeys - xbindkeys
- onboard
- feh
notify: restart lightdm notify: restart lightdm


- include: mainentance.yml - include: mainentance.yml


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

@@ -2,5 +2,6 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
xset -dpms xset -dpms
xset s off xset s off
feh --bg-scale "{{display_manager_background_image_path}}"
xbindkeys -f /usr/local/share/mainentance/xbindkeys & 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}}" 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" "systemctl reboot"
Mod4 + r
Control + r
"systemctl poweroff" "systemctl poweroff"
Mod4 + p
Control + p

正在加载...
取消
保存