Browse Source

mainentance xbindkeys

master
Markus Katharina Brechtel 7 years ago
parent
commit
1c0c8e8065
3 changed files with 13 additions and 0 deletions
  1. +6
    -0
      tasks/mainentance.yml
  2. +1
    -0
      templates/mainentance-xsession.sh.j2
  3. +6
    -0
      templates/mainentance.xbindkeys.j2

+ 6
- 0
tasks/mainentance.yml View File

@@ -26,3 +26,9 @@
dest: /usr/local/share/mainentance/xsession dest: /usr/local/share/mainentance/xsession
mode: u=rwx,g=rx,o=rx mode: u=rwx,g=rx,o=rx
notify: restart lightdm notify: restart lightdm

- name: mainentance xbindkeys
template:
src: mainentance.xbindkeys.j2
dest: /usr/local/share/mainentance/xbindkeys
notify: restart lightdm

+ 1
- 0
templates/mainentance-xsession.sh.j2 View File

@@ -2,4 +2,5 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
xset -dpms xset -dpms
xset s off xset s off
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}}"

+ 6
- 0
templates/mainentance.xbindkeys.j2 View File

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

Loading…
Cancel
Save