Use power key as power control on macbook
This commit is contained in:
parent
6ca2d663ff
commit
39df487f9c
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue