Skip to main content
Version: 1.4

Keybinds & IPC

██████╗ ███╗   ███╗███████╗
██╔══██╗████╗ ████║██╔════╝
██║  ██║██╔████╔██║███████╗
██║  ██║██║╚██╔╝██║╚════██║
██████╔╝██║ ╚═╝ ██║███████║
╚═════╝ ╚═╝     ╚═╝╚══════╝

DankMaterialShell provides comprehensive IPC (Inter-Process Communication) functionality that allows external control of the shell through command-line commands. All IPC commands follow the format:

dms ipc call <target> <function> [parameters...]

Core Controls

audio

Manage audio output and input devices.

FunctionDescriptionParameterssetvolume <percentage>Set output volumepercentage (0-100)increment <step>Increase output volumestep (default: 5)decrement <step>Decrease output volumestep (default: 5)muteToggle output mute-setmic <percentage>Set microphone volumepercentage (0-100)micmuteToggle microphone mute-cycleoutputCycle through audio output devices-statusGet current audio status-

Examples:

dms ipc call audio setvolume 50
dms ipc call audio increment 10
dms ipc call audio mute
dms ipc call audio cycleoutput

brightness

Control display brightness for internal and external displays.

FunctionDescriptionParametersset <percentage> [device]Set brightness levelpercentage (1-100), device (optional)increment <step> [device]Increase brightnessstep, device (optional)decrement <step> [device]Decrease brightnessstep, device (optional)statusGet current brightness status-listList all brightness devices-enableExponential [device]Enable exponential brightness modedevice (optional, uses current if not specified)disableExponential [device]Disable exponential brightness modedevice (optional, uses current if not specified)toggleExponential [device]Toggle exponential brightness modedevice (optional, uses current if not specified)

Examples:

dms ipc call brightness set 80
dms ipc call brightness increment 10 ""
dms ipc call brightness decrement 5 "intel_backlight"
dms ipc call brightness disableExponential "backlight:intel_backlight"
dms ipc call brightness toggleExponential

night

Night mode (gamma/color temperature) control.

FunctionDescriptionParameterstoggleToggle night mode on/off-enableEnable night mode-disableDisable night mode-statusGet night mode status-temperature [value]Get/set color temperaturevalue in Kelvin (2500-6000, optional)automation [mode]Get/set automation mode"manual", "time", or "location" (optional)schedule <start> <end>Set time-based schedulestart time (HH:MM), end time (HH:MM)location <lat> <lon>Set location coordinateslatitude, longitude

Examples:

dms ipc call night toggle
dms ipc call night temperature 4000
dms ipc call night automation time
dms ipc call night schedule 20:00 06:00
dms ipc call night location 40.7128 -74.0060

mpris

Media player control via MPRIS interface.

FunctionDescriptionlistList all available media playersplayStart playbackpausePause playbackplayPauseToggle play/pausepreviousSkip to previous tracknextSkip to next trackstopStop playback

Examples:

dms ipc call mpris playPause
dms ipc call mpris next

lock

Screen lock control and status.

FunctionDescriptionlockLock the screen immediatelydemoShow lock screen demo (doesn't lock)isLockedCheck if screen is locked

Examples:

dms ipc call lock lock
dms ipc call lock isLocked

inhibit

Idle inhibitor control to prevent automatic sleep/lock.

FunctionDescriptiontoggleToggle idle inhibit stateenableEnable idle inhibit (prevent sleep)disableDisable idle inhibit (allow sleep)

Examples:

dms ipc call inhibit toggle
dms ipc call inhibit enable

Wallpaper & Profile

wallpaper

Wallpaper management with support for global and per-monitor configurations.

Global Wallpaper Functions

FunctionDescriptionParametersgetGet current wallpaper path-set <path>Set wallpaperpath to image fileclearClear all wallpapers-nextCycle to next wallpaper-prevCycle to previous wallpaper-

Per-Monitor Functions

FunctionDescriptionParametersgetFor <screen>Get wallpaper for monitormonitor name (e.g., "DP-2")setFor <screen> <path>Set wallpaper for monitormonitor name, path to imagenextFor <screen>Cycle to next wallpapermonitor nameprevFor <screen>Cycle to previous wallpapermonitor name

Examples:

# Global wallpaper mode
dms ipc call wallpaper set /path/to/image.jpg
dms ipc call wallpaper next

# Per-monitor wallpaper mode
dms ipc call wallpaper setFor DP-2 /path/to/image1.jpg
dms ipc call wallpaper setFor eDP-1 /path/to/image2.jpg
dms ipc call wallpaper nextFor eDP-1

# Clear and return to global mode
dms ipc call wallpaper clear

Note: When per-monitor mode is enabled, legacy global functions will return error messages directing you to use the per-monitor equivalents.

profile

User profile image management.

FunctionDescriptionParametersgetImageGet current profile image path-setImage <path>Set profile imagepath to image fileclearImageClear profile image-

Examples:

dms ipc call profile setImage /path/to/avatar.png
dms ipc call profile clearImage

Appearance Controls

theme

Theme mode control (light/dark mode switching).

FunctionDescriptiontoggleToggle between light and dark themeslightSwitch to light themedarkSwitch to dark themegetModeGet current theme mode

Examples:

dms ipc call theme toggle
dms ipc call theme dark

bar

Control individual bars using flexible selectors.

FunctionDescriptionParametersreveal <selector> <value>Show a barselector + valuehide <selector> <value>Hide a barselector + valuetoggle <selector> <value>Toggle bar visibilityselector + valuestatus <selector> <value>Get bar visibility statusselector + valueautoHide <selector> <value>Enable auto-hide modeselector + valuemanualHide <selector> <value>Disable auto-hide modeselector + valuetoggleAutoHide <selector> <value>Toggle auto-hide modeselector + valuegetPosition <selector> <value>Get bar positionselector + valuesetPosition <selector> <value> <position>Set bar positionselector + value + position (top, bottom, left, right)

Selectors:

Examples:

# By index
dms ipc call bar hide index 0
dms ipc call bar reveal index 1
dms ipc call bar toggle index 0

# By name
dms ipc call bar toggle name "Main Bar"
dms ipc call bar status name "Secondary"

# By ID
dms ipc call bar reveal id abc123

# Auto-hide controls
dms ipc call bar autoHide index 0
dms ipc call bar manualHide name "Main Bar"
dms ipc call bar toggleAutoHide index 1

# Position controls
dms ipc call bar getPosition index 0
dms ipc call bar getPosition id default
dms ipc call bar setPosition index 0 top
dms ipc call bar setPosition id default left

dock

Dock visibility and behavior control.

FunctionDescriptionrevealShow the dockhideHide the docktoggleToggle dock visibilitystatusGet dock visibility statusautoHideEnable auto-hide modemanualHideDisable auto-hide modetoggleAutoHideToggle auto-hide mode

Examples:

dms ipc call dock toggle
dms ipc call dock hide
dms ipc call dock reveal
dms ipc call dock status

# Auto-hide controls
dms ipc call dock autoHide
dms ipc call dock manualHide
dms ipc call dock toggleAutoHide

widget

Control bar widget popouts, menus, and visibility (including plugins).

FunctionDescriptionParameterstoggle <widgetId>Toggle widget popout visibilitywidget IDopenWith <widgetId> <mode>Open widget popout in a specific modewidget ID, modetoggleWith <widgetId> <mode>Toggle widget popout in a specific modewidget ID, modeopenQuery <widgetId> <query>Open widget popout with a pre-filled search querywidget ID, query texttoggleQuery <widgetId> <query>Toggle widget popout with a pre-filled search querywidget ID, query textlistList all registered widget IDs with visibility state-status <widgetId>Get widget popout visibility statuswidget IDvisibility <widgetId>Get widget visibility statewidget IDreveal <widgetId>Force widget to be visiblewidget IDhide <widgetId>Force widget to be hiddenwidget IDreset <widgetId>Clear visibility override, return to normal behaviorwidget ID

Examples:

dms ipc call widget list
dms ipc call widget toggle clock
dms ipc call widget status weather

# Open widget popout in a specific mode (e.g., launcher tabs)
dms ipc call widget openWith launcherButton all
dms ipc call widget openWith launcherButton files
dms ipc call widget openWith launcherButton apps
dms ipc call widget openWith launcherButton plugins
dms ipc call widget toggleWith launcherButton files

# Open widget popout with a pre-filled search query
dms ipc call widget openQuery launcherButton "browser"
dms ipc call widget toggleQuery launcherButton "settings"

# Control widget visibility on the bar
dms ipc call widget visibility weather
dms ipc call widget hide weather
dms ipc call widget reveal weather
dms ipc call widget reset weather

Notes:

These targets control various modal windows and overlays.

spotlight

Application launcher modal with search capabilities.

FunctionDescriptionParametersopenShow launcher-closeHide launcher-toggleToggle launcher visibility-openQuery <query>Show launcher with searchsearch texttoggleQuery <query>Toggle launcher with searchsearch text

Examples:

dms ipc call spotlight toggle
dms ipc call spotlight openQuery browser
dms ipc call spotlight toggleQuery "!"

Other Modals

All these modals support open, close, and toggle functions:

Examples:

dms ipc call clipboard toggle
dms ipc call notifications open
dms ipc call notifications clearAll
dms ipc call notifications dismissAllPopups
dms ipc call notifications toggleDoNotDisturb
dms ipc call notifications getDoNotDisturb
dms ipc call processlist open
dms ipc call powermenu toggle
dms ipc call control-center toggle
dms ipc call notepad open

settings

Settings modal with additional read/write access to configuration values.

FunctionDescriptionParametersopenShow settings modal-openWith <tab>Open settings to specific tabtab IDcloseHide settings modal-toggleToggle settings modal-toggleWith <tab>Toggle settings to specific tabtab IDfocusOrToggleFocus settings if open, otherwise toggle-focusOrToggleWith <tab>Focus/toggle to specific tabtab IDtabsList available tab IDs-get <key>Get a setting valuesetting key nameset <key> <value>Set a setting valuesetting key, new value

Available Tab IDs:

Examples:

dms ipc call settings toggle
dms ipc call settings openWith theme
dms ipc call settings toggleWith dock
dms ipc call settings tabs
dms ipc call settings set showSeconds true
dms ipc call settings set opacity 0.9

Note: The set function supports boolean, number, and string values. Objects and arrays are not currently supported.

dash

Dashboard popup with multiple tabs.

FunctionDescriptionParametersopen [tab]Show dashboardtab: "", "overview", "media", "weather"closeHide dashboard-toggle [tab]Toggle dashboardtab

Examples:

dms ipc call dash toggle ""
dms ipc call dash open overview
dms ipc call dash toggle media
dms ipc call dash open weather

file

File browser controls for selecting wallpapers and profile images.

FunctionDescriptionParametersbrowse <type>Open file browser"wallpaper" or "profile"

Examples:

dms ipc call file browse wallpaper
dms ipc call file browse profile

dankdash

DankDash wallpaper browser control.

FunctionDescriptionwallpaperToggle DankDash wallpaper browser

Examples:

dms ipc call dankdash wallpaper

welcome

First-launch welcome wizard with feature overview, system diagnostics, and configuration quick links.

FunctionDescriptionParametersopenShow wizard at Welcome page-doctorShow wizard at System Check page-page <num>Show wizard at specific page0=Welcome, 1=Doctor, 2=Complete

Pages:

Examples:

dms ipc call welcome open
dms ipc call welcome doctor
dms ipc call welcome page 2

Settings Integration: Available in Settings → About → Tools as "Show Welcome" and "System Check" buttons.

System Utilities

niri

Requires niri 25.11+

Screenshot functionality for the niri compositor. Captures are opened in your configured editor for markup and annotation.

FunctionDescriptionscreenshotInteractive selection screenshotscreenshotScreenCapture entire screenscreenshotWindowCapture focused window

Examples:

dms ipc call niri screenshot
dms ipc call niri screenshotScreen
dms ipc call niri screenshotWindow

Configuration:

Set the DMS_SCREENSHOT_EDITOR environment variable to choose your preferred screenshot editor backend:

# Use Swappy (default)
export DMS_SCREENSHOT_EDITOR=swappy

# Use Satty
export DMS_SCREENSHOT_EDITOR=satty

Requirements: niri compositor and your chosen screenshot editor (Swappy or Satty) must be installed.

keybinds

Dynamic keybinds cheatsheet modal that works with multiple providers.

FunctionDescriptionParametersopen <provider>Show keybinds modalprovider name (e.g., "hyprland", "sway", "mangowc")openWithPath <provider> <path>Show keybinds modal with custom config pathprovider name, path to configcloseHide keybinds modal-toggle <provider>Toggle keybinds modal visibilityprovider nametoggleWithPath <provider> <path>Toggle keybinds modal with custom config pathprovider name, path to config

Examples:

dms ipc call keybinds toggle hyprland
dms ipc call keybinds toggle sway
dms ipc call keybinds toggle mangowc
dms ipc call keybinds open tmux

# With custom config paths
dms ipc call keybinds openWithPath hyprland /custom/path/to/hypr
dms ipc call keybinds toggleWithPath sway /etc/sway/config

Supported Providers:

The keybinds modal supports all providers available through the dms keybinds CLI:

The modal automatically parses configuration files and displays keybinds organized by category with optional subcategories. See the Keybinds & Cheatsheets documentation for more details on providers and creating custom cheatsheets.

window-rules

niri only

Window rules editor modal for managing compositor window rules.

FunctionDescriptionopenOpen the window rules editorcloseClose the window rules editortoggleToggle window rules editor visibility

Examples:

dms ipc call window-rules open
dms ipc call window-rules close
dms ipc call window-rules toggle
note

This feature is only available on the niri compositor.

workspace-rename

Niri and Hyprland only

Rename the currently active workspace via a dialog.

FunctionDescriptionopenOpen the workspace rename dialog

Examples:

dms ipc call workspace-rename open

Note: Returns an error if running on an unsupported compositor.

outputs

Monitor output profile management for switching between display configurations.

FunctionDescriptionParameterslistProfilesList all available output profiles-currentGet the currently active profile-setProfile <name>Switch to a specific output profileprofile namestatusGet current output configuration status-refreshRefresh output configuration-

Examples:

# List available profiles
dms ipc call outputs listProfiles

# Check current profile
dms ipc call outputs current

# Switch to a specific profile
dms ipc call outputs setProfile "docked"
dms ipc call outputs setProfile "laptop-only"

# Get output status
dms ipc call outputs status

# Refresh configuration
dms ipc call outputs refresh
note

This feature is only available on niri, Hyprland, and MangoWC compositors.

hypr

Hyprland-only features

Hyprland-specific workspace overview control.

FunctionDescriptionopenOverviewShow Hyprland workspace overviewcloseOverviewHide Hyprland workspace overviewtoggleOverviewToggle Hyprland workspace overview visibility

Examples:

dms ipc call hypr toggleOverview

Workspace Overview:

The workspace overview shows all your workspaces across all monitors with live window previews:

Note: All hypr functions return HYPR_NOT_AVAILABLE if not running Hyprland.

plugins

Manage plugins at runtime - useful for development and troubleshooting.

FunctionDescriptionParameterslistList all available plugins with status-status <pluginId>Check if a plugin is loadedplugin IDreload <pluginId>Hot-reload a plugin without restartingplugin IDenable <pluginId>Enable a disabled pluginplugin IDdisable <pluginId>Disable a loaded pluginplugin ID

Examples:

# See what plugins are available
dms ipc call plugins list

# Check if a specific plugin is running
dms ipc call plugins status myPlugin

# Hot-reload during development (no shell restart needed)
dms ipc call plugins reload myPlugin

# Toggle plugins on/off
dms ipc call plugins enable myPlugin
dms ipc call plugins disable myPlugin

systemupdater

System updater external check request.

FunctionDescriptionupdatestatusTrigger system update check

Examples:

dms ipc call systemupdater updatestatus

desktopWidget

Control desktop widget instances (clocks, system monitors, etc.).

FunctionDescriptionParameterslistList all widget instances with ID, type, name, and status-status <instanceId>Get widget status (enabled, overlay, clickThrough, etc.)instance IDenable <instanceId>Enable the widgetinstance IDdisable <instanceId>Disable the widgetinstance IDtoggleEnabled <instanceId>Toggle widget enabled/disabledinstance IDtoggleOverlay <instanceId>Toggle show on overlay layerinstance IDsetOverlay <instanceId> <bool>Set overlay visibilityinstance ID, true/falsetoggleClickThrough <instanceId>Toggle click-through modeinstance IDsetClickThrough <instanceId> <bool>Set click-through modeinstance ID, true/falsetoggleSyncPosition <instanceId>Toggle position sync across screensinstance IDsetSyncPosition <instanceId> <bool>Set position sync across screensinstance ID, true/false

Examples:

# List all desktop widgets
dms ipc call desktopWidget list

# Get widget status
dms ipc call desktopWidget status dw_1234567890_abc123

# Toggle overlay visibility (useful for keybinds)
dms ipc call desktopWidget toggleOverlay dw_1234567890_abc123

# Enable click-through mode
dms ipc call desktopWidget setClickThrough dw_1234567890_abc123 true

# Toggle position sync
dms ipc call desktopWidget toggleSyncPosition dw_1234567890_abc123

Notes:

toast

Display toast notifications for user feedback and scripted alerts.

FunctionDescriptionParametersinfo <message>Show info toast (1.5s)message textinfoWith <message> <details> <command> <category>Info toast with extrasmessage, details, command, categorywarn <message>Show warning toast (3s)message textwarnWith <message> <details> <command> <category>Warning toast with extrasmessage, details, command, categoryerror <message>Show error toast (5s)message texterrorWith <message> <details> <command> <category>Error toast with extras (8s, expandable)message, details, command, categoryhideHide current toast-dismiss <category>Dismiss toasts by categorycategory namestatusGet current toast state-

Examples:

# Simple messages
dms ipc call toast info "Build complete"
dms ipc call toast warn "Disk space low"
dms ipc call toast error "Connection failed"

# With details (expandable in UI)
dms ipc call toast errorWith "Git push failed" "Permission denied (publickey)" "git push origin main" "git"

# With category for later dismissal
dms ipc call toast warnWith "Downloading update..." "" "" "updater"
dms ipc call toast dismiss "updater"

# Check current state
dms ipc call toast status

# Force hide
dms ipc call toast hide

Notes:

Scripting and Automation

IPC commands are designed for integration with keybindings, scripts, and automation tools.

Time-based Automation

#!/bin/bash
# Toggle night mode based on time of day
hour=$(date +%H)
if [ $hour -ge 20 ] || [ $hour -le 6 ]; then
dms ipc call night enable
else
dms ipc call night disable
fi

Status Checking

# Check if screen is locked before performing action
if dms ipc call lock isLocked | grep -q "false"; then
dms ipc call notifications open
fi

Conditional Logic

# Increase brightness only if below threshold
current=$(dms ipc call brightness status | grep -oP '\d+')
if [ "$current" -lt 50 ]; then
dms ipc call brightness set 50
fi

Return Values

Most IPC functions return string messages indicating:

Functions that return void (like media controls) execute the action but don't provide feedback. Check the application state through other means if needed.

Next Steps

See compositor-specific keybinding configuration in your compositor's documentation to integrate these IPC commands with your workflow.