-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
cr3eperall edited this page Aug 31, 2024
·
3 revisions
Note
This is just an example configuration file with comments.
You should use dynisland default-config
to create the configuration file and to check for new config options.
Config(
loaded_modules: ["all"],
layout: "SimpleLayout",
general_style_config: (
minimal_height: 40, // minimum height for the activities, this is the forced height for minimal and compact mode
minimal_width: 60, // minimum width for the activities, this is the forced width for the minimal mode
blur_radius: 6.0, // the final blur radius when an activity transitions to another mode
enable_drag_stretch: false, // whether to enable stretching the widgets by dragging
),
layout_configs: {
"SimpleLayout": (
orientation_horizontal: true, // the direction of the container: true -> horizontal, false -> vertical
window_position: (
layer: ("Top"), // the layer shell layer: can be Background, Bottom, Top or Overlay, case sensitive
h_anchor: ("Center"), // the horizontal anchor: can be Start, Center or End, case sensitive
v_anchor: ("Start"), // same but for the vertical anchor
margin_x: 0, // distance from the h_anchor edge
margin_y: 0, // distance from the v_anchor edge
exclusive_zone: -1, // reserve space for this bar, set to -1 to put it on top of other bars
monitor: "", // monitor name (for example "DP-1" or "HDMI-A-1")
layer_shell: true, // whether to use a regular window or a layer shell, this is mostly for debugging
),
auto_minimize_timeout: 5000, // when the mouse leaves the activity in expanded or overlay mode, after this timeout it will be put back to compact mode, set to -1 to disable
),
},
module_config: { // per module config key-value pair, see the module page for the config options
// Example
// "ClockModule": (
// format_24h: true,
// hour_hand_color: "white",
// minute_hand_color: "white",
// tick_color: "lightgray",
// circle_color: "lightgray",
// ),
},
debug: None, // debug options, see src/config.rs for options
)