Skip to content

Commit

Permalink
Configs:
Browse files Browse the repository at this point in the history
added more audio and video players
updated GNOME rules for GNOME3 (not sure if GNOME Shell is any better in terms of cgroups than gnome-panel, haven't tested that)
added UI rules for Pantheon Shell and Unity
added low-prio rules for BitTorrent clients
added high-prio rule for D-bus
added memory limit rules for GUI terminals with potentinally infinite scrollback
added high-prio rules for screencasters (can be used as a base for matching realtime video capture)
  • Loading branch information
Shnatsel committed Apr 19, 2012
1 parent 33143b9 commit 4599b7f
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 1 deletion.
5 changes: 5 additions & 0 deletions conf/simple.d/audio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ yauap user.media
ogg123 user.media
cmus user.media
lastfm user.media
beatbox user.media
noise user.media
aqualung user.media
audacious* user.media
guayadeque user.media
22 changes: 22 additions & 0 deletions conf/simple.d/bittorrent.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# torrent clients, downloaders, all that stuff
# TODO: find a way to do network scheduling
#maybe Trickle will work for that...
# I'm not completely sure what prio should I use for
# such things... let them be daemons for now.

# Multi-frontend
transmission* daemon.bg
deluge* daemon.bg
# qbittorrent has Qt and command-line UIs
qbittorrent* daemon.bg

# GNOME/GTK
flush daemon.bg
gnome-btdownload daemon.bg

# KDE/Qt
ktorrent daemon.bg

# TODO:
#bittornado and vuze are missing,
#because they use complicated name patterns.
6 changes: 6 additions & 0 deletions conf/simple.d/dbus.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# dbus-daemon powers interprocess communication, so it should be responsive.
dbus-daemon user.bg_high inherit=0

#TODO:
# Find out what do "dbus" processes do
# Consider realtime privileges
11 changes: 11 additions & 0 deletions conf/simple.d/gui-terminals.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# GUI terminals

# the problem about them is that when they're set to
# infinite line width, they may eat up all available RAM.

gnome-terminal user.poison reason=memory inherit=0
pantheon-terminal user.poison reason=memory inherit=0
konsole user.poison reason=memory inherit=0
yakuake user.poison reason=memory inherit=0
evilvte user.poison reason=memory inherit=0
guake user.poison reason=memory inherit=0
5 changes: 5 additions & 0 deletions conf/simple.d/pantheon.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Pantheon Shell

plank user.ui
wingpanel user.ui
slingshot user.ui
6 changes: 6 additions & 0 deletions conf/simple.d/screencasters.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# screencasters

kazam user.bg_high
eidete user.bg_high
cmd:ffmpeg*x11grab* user.bg_high
cmd:avconv*x11grab* user.bg_high
14 changes: 14 additions & 0 deletions conf/simple.d/ubuntu.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Ubuntu-specific stuff

# This file is created for elementary OS
# and incorporates rules useful for ubuntu
# and its derivatives

# aptdaemon is a notorious background resource hog
aptd daemon.bg

# makes LiveUSBs, usually lengthy process
usb-creator-* user.idle

# ubuntu's notification system
notify-osd user.ui
7 changes: 7 additions & 0 deletions conf/simple.d/unity.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Unity

unity-panel-service user.ui
unity-2d-* user.ui
unity-window-decorator user.ui
cmd:*/usr/lib/unity-lens-* user.ui
cmd:*/usr/lib/unity-scope-* user.ui
2 changes: 2 additions & 0 deletions conf/simple.d/video.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ totem user.media
kplayer user.media
kmplayer user.media
kaffeine user.media
audience user.media
xnoise user.media
2 changes: 1 addition & 1 deletion rules/gnome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

GnomeUI = {
name = "GnomeUI",
re_basename = "metacity|compiz|gnome-panel|gtk-window-decorator|nautilus",
re_basename = "metacity|mutter|compiz|gtk-window-decorator|gnome-panel|gnome-shell|nautilus",
--re_basename = "metacity",
check = function(self, proc)
local flag = ulatency.new_flag("user.ui")
Expand Down

0 comments on commit 4599b7f

Please sign in to comment.