mirror of
https://github.com/unman/shaker.git
synced 2025-07-02 18:17:00 -04:00
Multimedia - Shutdown multimedia qubes after 3 idle minutes.
Refresh packages before installation.
This commit is contained in:
parent
40bc29b0e6
commit
7d0383ac5a
2 changed files with 10 additions and 3 deletions
|
@ -47,6 +47,9 @@ multimedia-features:
|
|||
- appemenus-dispvm: True
|
||||
- disable:
|
||||
- service.cups
|
||||
- enable:
|
||||
- service.shutdown-idle
|
||||
|
||||
|
||||
media-present-id:
|
||||
qvm.present:
|
||||
|
|
|
@ -13,6 +13,10 @@ update_sources:
|
|||
- flags: [ 'IGNORECASE', 'MULTILINE' ]
|
||||
{% endif %}
|
||||
|
||||
base_packages:
|
||||
pkg.uptodate:
|
||||
- refresh: True
|
||||
|
||||
vlc.packages:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
|
@ -126,6 +130,6 @@ apt-get clean:
|
|||
|
||||
trim_idleness:
|
||||
file.replace:
|
||||
- name: /usr/lib/python3/dist-packages/qubesidle/idleness_monitor.py
|
||||
- pattern: TIMEOUT_SECONDS = 15
|
||||
- repl: TIMEOUT_SECONDS = 3
|
||||
- name: /lib/python3/dist-packages/qubesidle/idleness_monitor.py
|
||||
- pattern: '15 \* 60'
|
||||
- repl: '3 * 60'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue