aboutsummaryrefslogtreecommitdiff
path: root/components/functions
diff options
context:
space:
mode:
Diffstat (limited to 'components/functions')
-rw-r--r--components/functions/FvwmExpose0
-rw-r--r--components/functions/Gather4
-rw-r--r--components/functions/Mixer10
-rw-r--r--components/functions/NotificationAreaManager-trayer-srg32
4 files changed, 43 insertions, 3 deletions
diff --git a/components/functions/FvwmExpose b/components/functions/FvwmExpose
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/components/functions/FvwmExpose
diff --git a/components/functions/Gather b/components/functions/Gather
new file mode 100644
index 0000000..ed13afe
--- /dev/null
+++ b/components/functions/Gather
@@ -0,0 +1,4 @@
+DestroyFunc gather
+AddToFunc gather
++ I All (!PlacedByFvwm) MoveToScreen
+
diff --git a/components/functions/Mixer b/components/functions/Mixer
index 260faeb..eec5b65 100644
--- a/components/functions/Mixer
+++ b/components/functions/Mixer
@@ -1,14 +1,18 @@
DestroyFunc Change-Volume-Up
AddToFunc Change-Volume-Up
-+ I exec amixer set Master 10%+ >/dev/null
++ I exec pactl set-sink-volume '@DEFAULT_SINK@' +10% >/dev/null
DestroyFunc Change-Volume-Down
AddToFunc Change-Volume-Down
-+ I exec amixer set Master 10%- >/dev/null
++ I exec pactl set-sink-volume '@DEFAULT_SINK@' -10% >/dev/null
DestroyFunc Mixer-Volume-Toggle
AddToFunc Mixer-Volume-Toggle
-+ I exec amixer set Master toggle >/dev/null
++ I exec pactl set-sink-mute '@DEFAULT_SINK@' toggle >/dev/null
+
+DestroyFunc Mixer-Input-Toggle
+AddToFunc Mixer-Input-Toggle
++ I exec pactl set-source-mute '@DEFAULT_SOURCE@' toggle >/dev/null
DestroyFunc Mixer-Show
AddToFunc Mixer-Show
diff --git a/components/functions/NotificationAreaManager-trayer-srg b/components/functions/NotificationAreaManager-trayer-srg
new file mode 100644
index 0000000..795ce41
--- /dev/null
+++ b/components/functions/NotificationAreaManager-trayer-srg
@@ -0,0 +1,32 @@
+# Support for trayer-srg
+# Written by: Dominique Michel <dominique_libre@users.sourceforge.net>
+# for FVWM-Crystal, 2013
+#
+# Version with parameters instead of the environment
+
+# Trayer Syntax:
+# NotificationAera [widthtype <request|pixel|percent>] [heighttype <request|pixel|percent>] \
+# [height <size>] [edge <left|right|top|bottom|none>] [align <left|right|center>] \
+# [margin <n pixels>] [distance <n pixels>] [width <size>]
+
+AddToFunc ExitFunction I Exec exec killall trayer
+
+# Settings of Trayer {{{1
+DestroyFunc FvwmTrayerPanel
+AddToFunc FvwmTrayerPanel
++ I Exec exec trayer-srg \
+--SetDockType false \
+--widthtype $[0] \
+--heighttype $[1] \
+--height $[2] \
+--edge $[3] \
+--align $[4] \
+--transparent true \
+--alpha $[TrayerAlpha] \
+--tint $[TrayerTint] \
+--margin $[5] \
+--distance $[6] \
+$[7] $[infostore.SILENT]
++ I Style trayer-srg !Title, !Icon
+
+# vim:ft=fvwm