Skip to content
Permalink
Tree: 5fe8ce1c1c
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
100 lines (91 sloc) 2.75 KB
# Configuration file for xsuspender.
#
# Sections represent rules windows are matched with.
# Find full documentation in xsuspender(1) manual.
#
# [Example]
# # Window matching rules. Some can be left blank.
# # Intersection of non-blanks applies.
# match_wm_class_contains = SomeApplication
# match_wm_class_group_contains = ...
# match_wm_name_contains = Part of Some Window Title
#
# # Seconds to wait before suspending after window loses focus.
# suspend_delay = 10
#
# # Resume suspended process every this many seconds …
# resume_every = 50
#
# # … for this many seconds.
# resume_for = 5
#
# # Before suspending, execute this shell script. If it fails,
# # abort suspension.
# exec_suspend = echo "suspending window $XID of process $PID"
#
# # Before resuming, execute this shell script. Resume the
# # process regardless script failure.
# exec_resume = echo resuming ...
#
# # Whether to send SIGSTOP / SIGCONT signals or not. If false,
# # just the exec_* scripts are run.
# send_signals = true
#
# # Also suspend descendant processes that match this regex.
# suspend_subtree_pattern = .
#
# # Whether to apply the rule only when on battery power.
# only_on_battery = true
#
# # Whether to auto-apply rules when switching to battery
# # power even if the window(s) didn't just lose focus.
# auto_suspend_on_battery = true
#
#
# Values set in the Default section are inherited and overridden
# by other sections below.
[Default]
suspend_delay = 5
resume_every = 50
resume_for = 5
send_signals = true
only_on_battery = true
auto_suspend_on_battery = true
# Preset configuration for some common software.
[Chromium]
suspend_delay = 10
match_wm_class_contains = chromium
suspend_subtree_pattern = chromium
[Firefox]
suspend_delay = 10
match_wm_class_contains = Navigator
match_wm_class_group_contains = Firefox
suspend_subtree_pattern = \/(firefox|plugin-container)
[JetBrains IDEs]
match_wm_class_group_contains = jetbrains-
[VirtualBox]
match_wm_class_contains = VirtualBox
match_wm_name_contains = - Oracle VM
exec_suspend = VBoxManage controlvm "$(ps -o args= -q $PID | sed -E 's/.*--startvm ([^ ]+).*/\1/')" pause
exec_resume = VBoxManage controlvm "$(ps -o args= -q $PID | sed -E 's/.*--startvm ([^ ]+).*/\1/')" resume
send_signals = false
resume_every = 0
only_on_battery = false
[qBittorrent]
match_wm_class_contains = qbittorrent
resume_every = 5
resume_for = 1
suspend_delay = 60
#[MyApplication]
#match_wm_name_contains =
#match_wm_class_contains =
#match_wm_class_group_contains =
#suspend_delay = 10
#resume_every = 50
#resume_for = 5
#exec_suspend =
#exec_resume =
#suspend_subtree_pattern =
#send_signals = true
#only_on_battery = true
#auto_suspend_on_battery = true
You can’t perform that action at this time.