Use power key as power control on macbook

This commit is contained in:
Jake Howard 2019-10-07 20:12:52 +01:00
parent 6ca2d663ff
commit 39df487f9c
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 9 additions and 1 deletions

View File

@ -39,6 +39,7 @@ bindsym $mod+Shift+g exec --no-startup-id gvim
bindsym Control+Shift+Escape exec --no-startup-id gnome-system-monitor
bindsym Control+Q exec --no-startup-id /bin/false
bindsym $mod+Shift+Delete exec --no-startup-id rofi-powermenu
bindcode 124 exec --no-startup-id rofi-powermenu
# Screenshots

View File

@ -15,8 +15,15 @@
enabled: true
state: started
- name: Make the FN key work the correct way`
- name: Make the FN key work the correct way
lineinfile:
path: /etc/modprobe.d/hid_apple.conf
line: options hid_apple fnmode=2
create: true
- name: Disable power key
lineinfile:
path: /etc/systemd/logind.conf
state: present
regexp: '^HandlePowerKey='
line: 'HandlePowerKey=ignore'