dotfiles/.config/wired/wired.ron.cgt

118 lines
3.3 KiB
Text
Raw Normal View History

<!
-- Catppuccin Theme definitions
local text = "#cdd6f4"
local base = "#1e1e2e"
local mantle = "#181825"
local surface0 = "#313244"
local sky = "#89dceb"
local peach = "#fab387"
local red = "#f38ba8"
local teal = "#81c8be"
!>
2021-08-20 15:26:19 +02:00
(
2022-08-07 17:46:31 +02:00
notifications_spawn_paused: false,
2021-08-20 15:26:19 +02:00
max_notifications: 0,
timeout: 8000,
// 60 Hz
poll_interval: 16,
2022-04-17 14:21:58 +02:00
focus_follows: Window,
2021-08-20 15:26:19 +02:00
layout_blocks: [
(
name: "root",
parent: "",
hook: Hook(parent_anchor: TL, self_anchor: TL),
offset: Vec2(x: 25.0, y: 25.0),
params: NotificationBlock((
background_color: Color(hex: "<% mantle %>"),
border_color: Color(hex: "<% red %>"),
border_color_critical: Color(hex: "<% peach %>"),
border_color_low: Color(hex: "<% sky %>"),
2021-08-20 15:26:19 +02:00
border_rounding: 0.0,
border_width: 4.0,
gap: Vec2(x: 0.0, y: 12.0),
2022-04-21 12:39:21 +02:00
monitor: -1,
2021-08-20 15:26:19 +02:00
notification_hook: Hook(parent_anchor: BL, self_anchor: TL),
)),
),
(
name: "summary",
parent: "image",
hook: Hook(parent_anchor: TR, self_anchor: TL),
offset: Vec2(x: 0.0, y: 0.0),
params: ScrollingTextBlock((
color: Color(hex: "<% red %>"),
2021-08-20 15:26:19 +02:00
ellipsize: End,
font: "<% opt.font %> Bold 12",
2021-08-20 15:26:19 +02:00
lhs_dist: 25.0,
padding: Padding(left: 8.0, right: 8.0, top: 8.0, bottom: 4.0),
rhs_dist: 25.0,
scroll_speed: 0.2,
scroll_t: 0.0,
text: "%s",
width: (min: 500, max: 500),
)),
),
(
name: "body",
parent: "summary",
hook: Hook(parent_anchor: BL, self_anchor: TL),
offset: Vec2(x: 0.0, y: 0.0),
params: TextBlock((
text: "%b",
color: Color(hex: "<% text %>"),
2021-08-20 15:26:19 +02:00
ellipsize: End,
font: "<% opt.font %> Bold 12",
2021-08-20 15:26:19 +02:00
padding: Padding(left: 8.0, right: 8.0, top: 0.0, bottom: 8.0),
dimensions: (
2021-08-26 17:11:59 +02:00
width: (min: 500, max: 500),
2021-08-20 15:26:19 +02:00
height: (min: 0, max: 150),
),
)),
),
(
name: "image",
parent: "root",
hook: Hook(parent_anchor: TL, self_anchor: TL),
offset: Vec2(x: 0.0, y: 0.0),
params: ImageBlock((
filter_mode: Triangle,
image_type: Hint,
padding: Padding(left: 8.0, right: 0.0, top: 8.0, bottom: 8.0),
rounding: 0.0,
scale_height: 64,
scale_width: 64,
)),
),
2021-08-26 17:11:59 +02:00
(
name: "progress",
parent: "body",
hook: Hook(parent_anchor: BR, self_anchor: TR),
offset: Vec2(x: 0.0, y: 0.0),
2022-05-31 15:07:07 +02:00
render_criteria: [Or([Progress])],
2021-08-26 17:11:59 +02:00
params: ProgressBlock((
background_color: Color(hex: "#00000000"),
border_color: Color(hex: "<% surface0 %>"),
2021-08-26 17:11:59 +02:00
border_rounding: 0.0,
border_width: 0.4,
fill_color: Color(hex: "<% teal %>"),
2021-08-26 17:11:59 +02:00
fill_rounding: 0.0,
height: 10.0,
padding: Padding(left: 8.0, right: 8.0, top: 0.0, bottom: 8.0),
width: 500.0,
)),
),
2021-08-20 15:26:19 +02:00
],
shortcuts: ShortcutsConfig (
2021-08-21 18:25:35 +02:00
notification_action1_and_close: 1,
2021-08-20 15:26:19 +02:00
notification_close: 2,
notification_closeall: 3,
),
)