This document details all available actions you can assign to keys in your config.yml.
Run a shell command in a detached process.
- "EXECUTE_COMMAND": ["firefox"]
- "EXECUTE_COMMAND": ["dolphin", "/home"]- Behavior: Runs in background using
nohup. Output is discarded. Independent of the StreamDock process.
Smart launcher: launches if closed, focuses if open.
Simple String:
- "LAUNCH_APPLICATION": "firefox"Desktop File (Recommended):
- "LAUNCH_APPLICATION":
desktop_file: "org.kde.kate.desktop" # Searches /usr/share/applications/Advanced:
- "LAUNCH_APPLICATION":
command: ["firefox", "--new-window"]
class_name: "firefox" # Class to search for
match_type: "contains" # "contains" or "exact"
force_new: true # Ignore existing windows, always launch newSimulate keyboard shortcuts.
- "KEY_PRESS": "CTRL+C"
- "KEY_PRESS": "CTRL+ALT+T"
- "KEY_PRESS": "SUPER+L"- Modifiers: CTRL, ALT, SHIFT, SUPER
Type a string of text.
- "TYPE_TEXT": "user@example.com"
- "TYPE_TEXT": "MySecurePassword123"Switch the active layout.
Simple:
- "CHANGE_LAYOUT": "Media_Layout"With Options:
- "CHANGE_LAYOUT":
layout: "Settings_Layout"
clear_all: true # Wipes screen before switchingSend MPRIS media commands to any active media player (Spotify, VLC, Rhythmbox, etc.). The player is discovered dynamically at press time via the D-Bus session bus. If no media player is running, the action is a silent no-op.
- "DBUS": {"action": "play_pause"} # Toggle play/pause
- "DBUS": {"action": "next"} # Skip to next track
- "DBUS": {"action": "previous"} # Go to previous track
- "DBUS": {"action": "stop"} # Stop playback
- "DBUS": {"action": "volume_up"} # System volume +5%
- "DBUS": {"action": "volume_down"} # System volume -5%
- "DBUS": {"action": "mute"} # Toggle system muteAdjust the StreamDock's screen brightness.
- "DEVICE_BRIGHTNESS_UP": "" # +10%
- "DEVICE_BRIGHTNESS_DOWN": "" # -10%Dynamically update the icon of the current key.
- "CHANGE_KEY_IMAGE": "../img/mute_on.png"Dynamically update the text label of the current key. Supports overlays if an icon is specified.
Simple String:
- "CHANGE_KEY_TEXT": "Muted"Advanced (Overlay):
- "CHANGE_KEY_TEXT":
text: "Muted"
text_color: "red"
icon: "../img/mute_on.png" # Optional overlay
text_position: "bottom" # OptionalPause execution sequence (useful for multi-step macros).
- "WAIT": 0.5 # Wait 0.5 secondsYou can list multiple actions to create a macro:
on_press_actions:
- "TYPE_TEXT": "git status"
- "KEY_PRESS": "RETURN"
- "WAIT": 1.0
- "TYPE_TEXT": "git pull"