diff --git a/files/i3.conf b/files/i3.conf index 3fa763d..d3d1d33 100644 --- a/files/i3.conf +++ b/files/i3.conf @@ -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 diff --git a/tasks/mac.yml b/tasks/mac.yml index 8b5b06e..8dbe4bf 100644 --- a/tasks/mac.yml +++ b/tasks/mac.yml @@ -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'