DankMaterialShell StockManager Plugin
April 3, 2026 Β· View on GitHub
A real-time A-share stock quote monitoring plugin for DankMaterialShell.
π¨π³ English | δΈζ
Features
- π Live Quotes β Automatically refreshes stock data every 30 seconds
- π Gain/Loss Display β Red for gain, green for loss, clear at a glance
- π Multi-Stock Monitoring β Monitor multiple stocks simultaneously
- π± DankBar Integration β Shows Shanghai Composite Index change in the status bar
- π Price Alert β Set custom threshold for each stock, get notified when triggered
Screenshot

Keyboard Shortcuts
Fβ Search / Add StockEβ Toggle Edit ModeRβ Refresh DataDelete/Backspaceβ Remove StockEnterβ Pin / Unpin Stockj/k(orβ/β) β Navigate ListShift+j/k(orShift+β/β) β Move Stock Position1-5β Sort by Name / Code / Price / Change / Percent
Data Source
Real-time A-share market data is fetched from the Tencent Finance API.
Displayed Fields
- Name β Stock name
- Last β Latest price
- Change β Price change (points)
- Change % β Percentage change
API Field Mapping
Tencent stock API response data mapping:
parts[3]β Current priceparts[4]β Previous close priceparts[31]β Price changeparts[32]β Change percentage
Dependencies
- curl β Fetch stock data
- iconv β Convert GBK to UTF-8
Author
Changelog
v1.2.3 (2026-04-03)
- β Bar Configuration Simplification: Removed explicit barThickness and config bindings, using default Quickshell behavior for cleaner code.
v1.2.2 (2026-02-10)
- β Price Alert Threshold: Set custom alert threshold for each stock to receive system notifications.
- β Alert Settings: Double-click stock item to open alert settings dialog (enable switch + threshold).
- β Configure on Add: Set alert settings when adding new stocks.
- β System Notifications: Using notify-send with custom icon support.
- β Multi-language Notifications: Notification content supports English/Chinese.
- β Smart Notifications: Each stock triggers notification only once per day to avoid spam.
v1.2.1 (2026-02-06)
- β Stock Detail Popup: Click on any stock to view detailed information.
v1.2.0 (2026-02-01)
- β Trend Charts: Added sparklines to visualize price history in the list view.
- β Advanced Customization: Support for custom trend colors (Up/Down), status bar scrolling, and configurable refresh intervals.
- β Display Modes: Toggle between Percent/Amount and various Name formats (Pinyin/Hanzi).
- β Improved Interaction: Swipe gestures to Pin/Delete stocks.
- β Keyboard Shortcuts: Comprehensive keyboard control for navigation, sorting, and editing.
- β Enhanced Add Dialog: Search by stock code, name, or pinyin.
v1.1.0 (2026-01-30)
- β Code refactoring with modular architecture
- β Separated data management and UI components
- β Unified utility function library
- β Performance optimizations, reduced unnecessary re-renders
- β Improved code maintainability
v1.0.0 (2026-01-14)
- β Real-time quote display
- β Gain/loss color highlighting
- β DankBar integration to show Shanghai Composite Index
- β Auto refresh mechanism
- β JSON-based configuration support
License
MIT License - See LICENSE file for details