Add power manager config to dotfiles

This commit is contained in:
Jake Howard 2019-05-26 12:11:26 +01:00
parent 91dd471ed2
commit 828db9f0eb
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="brightness-switch-restore-on-exit" type="int" value="1"/>
<property name="brightness-switch" type="int" value="0"/>
<property name="show-tray-icon" type="bool" value="true"/>
<property name="brightness-on-battery" type="uint" value="120"/>
<property name="brightness-level-on-battery" type="uint" value="80"/>
<property name="dpms-on-battery-sleep" type="uint" value="60"/>
<property name="dpms-on-battery-off" type="uint" value="0"/>
<property name="blank-on-battery" type="int" value="30"/>
<property name="blank-on-ac" type="int" value="0"/>
<property name="dpms-on-ac-sleep" type="uint" value="0"/>
<property name="dpms-on-ac-off" type="uint" value="0"/>
<property name="lid-action-on-battery" type="uint" value="1"/>
<property name="logind-handle-lid-switch" type="bool" value="true"/>
<property name="lid-action-on-ac" type="uint" value="1"/>
<property name="general-notification" type="bool" value="false"/>
<property name="brightness-level-on-ac" type="uint" value="77"/>
<property name="sleep-button-action" type="uint" value="1"/>
<property name="hibernate-button-action" type="uint" value="2"/>
<property name="handle-brightness-keys" type="bool" value="false"/>
<property name="power-button-action" type="uint" value="3"/>
<property name="critical-power-action" type="uint" value="3"/>
<property name="critical-power-level" type="uint" value="7"/>
<property name="inactivity-sleep-mode-on-battery" type="uint" value="1"/>
<property name="inactivity-on-battery" type="uint" value="60"/>
<property name="brightness-on-ac" type="uint" value="9"/>
</property>
</channel>

View file

@ -36,3 +36,10 @@
src: ./files/tlp.conf src: ./files/tlp.conf
dest: /etc/default/tlp dest: /etc/default/tlp
mode: 0644 mode: 0644
- name: Install XFCE4 power manager config
copy:
src: ./files/xfce4-power-manager.xml
dest: "{{ home }}/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml"
owner: "{{ user }}"
mode: 0644