Skip to content

Commit 91781d3

Browse files
committed
feat: Schema validations plus default config and md for reference
1 parent 7fa7e09 commit 91781d3

File tree

7 files changed

+869
-135
lines changed

7 files changed

+869
-135
lines changed
Lines changed: 171 additions & 135 deletions
Original file line numberDiff line numberDiff line change
@@ -1,190 +1,226 @@
1-
# Example configuration file for HyDE
2-
# Environment variables should be on top
3-
# Add your custom configuration in '~/.config/hyde/config.toml'
1+
# HyDE Configuration File
2+
# This file contains default values for all configuration options
3+
# Generated from schema
44

5-
"$schema" = "./schema.json"
6-
7-
WARP_ENABLE_WAYLAND = 1
5+
"$schema" = "https://raw.githubusercontent.com/HyDE-Project/HyDE/refs/heads/master/Configs/.local/share/hyde/schema/config.toml.json"
86

7+
# Wallpaper configuration.
98
[wallpaper]
10-
custom_paths = ["$HOME/Pictures/Wallpapers"]
11-
backend = "swww"
12-
9+
custom_paths = [] # List of paths to search for wallpapers.
10+
backend = "swww" # Wallpaper backend, requires 'wallpaper.<backend>.sh' as handler script in $PATH
11+
# swwwallselect.sh configuration.
1312
[wallpaper.swww]
14-
framerate = 60
15-
duration = 1
16-
transition_next = "grow"
17-
transition_prev = "outer"
18-
transition_default = "grow"
13+
framerate = 60 # Transition framerate.
14+
duration = 1 # Transition duration.
15+
transition_next = "grow" # Transition type for next wallpaper.
16+
transition_prev = "outer" # Transition type for previous wallpaper.
17+
transition_default = "grow" # Transition type for default wallpaper.
1918

20-
[rofi]
21-
scale = 10
2219

20+
# Global rofi configuration.
21+
[rofi]
22+
scale = 10 # Rofi default scaling.
23+
# 'hyprlock.sh select' configuration.
2324
[rofi.hyprlock]
24-
scale = 10
25+
scale = 10 # Scaling for hyprlock.
2526

27+
# 'animation.sh select' configuration.
2628
[rofi.animation]
27-
scale = 8
29+
scale = 10 # Scaling for animation.
2830

31+
# glyph-picker.sh configuration.
2932
[rofi.glyph]
30-
scale = 8
33+
scale = 10 # Scaling for glyph picker.
3134

35+
# rofilaunch.sh configuration.
3236
[rofi.launch]
33-
scale = 5
37+
scale = 5 # Scaling for launch.
38+
drun_args = [] # Additional arguments for drun mode.
39+
run_args = [] # Additional arguments for run mode.
40+
window_args = [] # Additional arguments for window mode.
41+
filebrowser_args = [] # Additional arguments for filebrowser mode.
3442

43+
# cliphist.sh configuration.
3544
[rofi.cliphist]
36-
scale = 8
45+
scale = 10 # Scaling for cliphist.
3746

47+
# swwwallselect.sh configuration.
3848
[rofi.wallpaper]
39-
scale = 8
49+
scale = 10 # Scaling for wallpaper.
4050

51+
# emoji-picker.sh configuration.
4152
[rofi.emoji]
42-
style = 2
43-
scale = 8
53+
style = 1 # Style for emoji picker.
54+
scale = 10 # Scaling for emoji picker.
4455

56+
# themeselect.sh configuration.
4557
[rofi.theme]
46-
scale = 6
58+
scale = 6 # Scaling for theme selector.
4759

48-
[rofi.keybind.hint]
49-
delimiter = "\t"
50-
width = "40em"
51-
height = "40em"
52-
line = 16
53-
54-
[rofi.bookmark]
55-
file = "$HOME/.config/hyde/bookmarks.lst"
56-
57-
[rofi.search]
58-
file = "$HOME/.config/hyde/search.lst"
5960

61+
# wlogout configuration.
6062
[wlogout]
61-
style = 2
63+
style = 2 # Style for wlogout.
6264

65+
# batterynotify.sh configuration.
6366
[battery.notify]
64-
timer = 120
65-
notify = 1140
66-
interval = 5
67-
dock = true
68-
67+
timer = 120 # Timer for battery notifications.
68+
notify = 1140 # Notification threshold.
69+
interval = 5 # Interval for battery notifications.
70+
dock = true # Dock status for battery notifications.
71+
# Thresholds for battery notifications.
6972
[battery.notify.threshold]
70-
full = 90
71-
critical = 10
72-
low = 20
73-
unplug = 80
73+
full = 90 # Full battery threshold.
74+
critical = 10 # Critical battery threshold.
75+
low = 20 # Low battery threshold.
76+
unplug = 100 # Unplug battery threshold.
7477

78+
# Commands to execute for battery notifications.
7579
[battery.notify.execute]
76-
unplug = ""
77-
low = ""
78-
critical = "systemctl suspend"
79-
charging = ""
80-
discharging = ""
80+
unplug = "" # Command to execute when unplugged.
81+
low = "" # Command to execute when battery is low.
82+
critical = "systemctl suspend" # Command to execute when battery is critical.
83+
charging = "" # Command to execute when charging.
84+
discharging = "" # Command to execute when discharging.
85+
8186

82-
[keybind.hint]
87+
# keybind_hint.sh configuration.
88+
[rofi.keybind.hint]
89+
delimiter = " " # Delimiter for keybind hints.
90+
width = "40em" # Width for keybind hints.
91+
height = "40em" # Height for keybind hints.
92+
line = 16 # Number of lines for keybind hints.
8393

94+
# screenshot.sh configuration.
8495
[screenshot]
85-
annotation_tool = "swappy"
86-
annotation_pre_command = []
87-
annotation_post_command = [""]
96+
annotation_tool = "satty" # Annotation tool for screenshots.
97+
annotation_pre_command = [] # Pre command for annotation tool.
98+
annotation_post_command = [""] # Post command for annotation tool.
99+
100+
# Bookmark configuration.
101+
[rofi.bookmark]
88102

103+
# Search configuration.
104+
[rofi.search]
105+
106+
# wallbash configuration.
89107
[wallbash]
90-
skip_template = [""]
108+
skip_template = [""] # Templates to skip when using wallbash.
91109

110+
# waybar configuration.
92111
[waybar]
93-
font = "JetBrainsMono Nerd Font"
94-
scale = 30
112+
font = "JetBrainsMono Nerd Font" # Font for waybar.
113+
scale = 10 # Total scaling for waybar.
114+
icon_size = 10 # Icon size for waybar.
95115

116+
# Weather configuration.
96117
[weather]
97-
temperature_unit = "c"
98-
time_format = "24h"
99-
windspeed_unit = "km/h"
100-
show_icon = true
101-
show_location = true
102-
show_today = true
103-
forecast_days = 3
104-
location = ""
105-
118+
temperature_unit = "c" # Temperature unit ('c' or 'f').
119+
time_format = "24h" # Time format ('12h' or '24h').
120+
windspeed_unit = "km/h" # Windspeed unit ('km/h' or 'mph').
121+
show_icon = true # Show the weather icon in waybar.
122+
show_location = true # Show the location in waybar.
123+
show_today = true # Show detailed description of today in tooltip.
124+
forecast_days = 3 # Number of days to show forecast (0-3).
125+
location = "" # Location/coordinates string for the weather output.
126+
127+
# 'cava.sh stdout' configuration.
106128
[cava.stdout]
107-
max_instances = 1
108-
bar = "▁▂▃▄▅▆▇█"
109-
width = 20
110-
range = 7
111-
standby = "🎶"
129+
max_instances = 1 # Maximum number of cava instances.
130+
bar = "▁▂▃▄▅▆▇█" # Bar characters for cava.
131+
width = 20 # Width of the cava output.
132+
range = 7 # Number of bars minus one.
133+
standby = "🎶" # Standby character for cava.
112134

135+
# 'cava.sh hyprlock' configuration.
113136
[cava.hyprlock]
114-
max_instances = 1
115-
bar = "🌑🌒🌓🌔🌕🌖🌗🌘"
116-
width = 20
117-
range = 7
118-
standby = "🎶"
137+
max_instances = 1 # Maximum number of cava instances.
138+
bar = "▁▂▃▄▅▆▇█" # Bar characters for cava.
139+
width = 20 # Width of the cava output.
140+
range = 7 # Number of bars minus one.
141+
standby = "🎶" # Standby character for cava.
119142

143+
# 'cava.sh waybar' configuration.
120144
[cava.waybar]
121-
max_instances = 1
122-
bar = "▁▂▃▄▅▆▇█"
123-
width = 20
124-
range = 7
125-
standby = "🎶"
145+
max_instances = 1 # Maximum number of cava instances.
146+
bar = "▁▂▃▄▅▆▇█" # Bar characters for cava.
147+
width = 20 # Width of the cava output.
148+
range = 7 # Number of bars minus one.
149+
standby = "🎶" # Standby character for cava.
126150

151+
# Hypr configuration.
127152
[hypr.config]
128-
sanitize = ['.*rgba\(.*,*,*,*,']
153+
sanitize = [".*rgba\(.*,.*,.*,.*\)"] # List of regex to sanitize in the theme.config.
129154

155+
# volumecontrol.sh configuration.
130156
[volume]
131-
notify = true
132-
steps = 5
133-
boost = false
134-
boost_limit = 150
157+
notify = true # Enable notifications for volume control.
158+
steps = 5 # Number of steps to increase/decrease volume.
159+
boost = false # Enable volume boost.
160+
boost_limit = 120 # Volume boost limit.
135161

162+
# brightnesscontrol.sh configuration.
136163
[brightness]
137-
notify = true
138-
steps = 5
164+
notify = true # Enable notifications for brightness control.
165+
steps = 5 # Number of steps to increase/decrease brightness.
139166

167+
# sysmonlaunch.sh configuration.
140168
[sysmonitor]
141-
execute = "btop"
142-
commands = [
143-
"btop",
144-
"htop",
145-
"top",
146-
]
169+
execute = "" # Default command to execute.
170+
commands = [""] # Fallback command options.
147171

172+
# Notification script configuration.
148173
[notification]
149-
font = "mononoki Nerd Font"
150-
font_size = 8
174+
font = "mononoki Nerd Font" # Font for notifications.
175+
font_size = 10 # Font size for notifications.
151176

177+
# Hyprland configuration.
152178
[hyprland]
153-
browser = "firefox"
154-
editor = "code"
155-
explorer = "dolphin"
156-
idle = "hypridle"
157-
lockscreen = "lockscreen.sh"
158-
quickapps = "kitty"
159-
terminal = "kitty"
160-
bar = "waybar"
161-
color_scheme = "prefer-light"
162-
gtk_theme = "Wallbash-Gtk"
163-
icon_theme = "Tela-circle-dracula"
164-
cursor_size = 24
165-
cursor_theme = "Bibata-Modern-Ice"
166-
button_layout = "appmenu:minimize,maximize,close"
167-
document_font_size = 10
168-
font = "Canterell"
169-
font_antialiasing = "rgba"
170-
font_hinting = "full"
171-
font_size = 10
172-
monospace_font = "CaskaydiaCove Nerd Font Mono"
173-
monospace_font_size = 9
174-
background_path = "$HYPRLOCK_BACKGROUND"
175-
176-
[hyprland-start]
177-
apptray_bluetooth = "blueman-applet"
178-
auth_dialogue = "polkitkdeauth.sh"
179-
bar = "hyde-shell waybar --watch"
180-
battery_notify = "batterynotify.sh"
181-
dbus_share_picker = "dbus-update-activation-environment --systemd --all"
182-
idle_daemon = "hypridle"
183-
image_clipboard = "wl-paste --type image --watch cliphist store"
184-
network_manager = "nm-applet --indicator"
185-
notifications = "swaync"
186-
removable_media = "udiskie --no-automount --smart-tray"
187-
systemd_share_picker = "systemctl --user import-environment QT_QPA_PLATFORMTHEME WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
188-
text_clipboard = "wl-paste --type text --watch cliphist store"
189-
wallpaper = "$scrPath/wallpaper.sh --global"
190-
xdg_portal_reset = "resetxdgportal.sh"
179+
browser = "firefox" # Browser.
180+
editor = "code" # Editor.
181+
explorer = "dolphin" # File manager.
182+
idle = "hypridle" # Idle manager.
183+
lockscreen = "lockscreen.sh" # Lockscreen.
184+
terminal = "kitty" # Terminal.
185+
quickapps = "kitty" # Quick apps.
186+
bar = "waybar" # Bar.
187+
color_scheme = "prefer-dark" # Color scheme.
188+
gtk_theme = "Wallbash-Gtk" # GTK theme.
189+
icon_theme = "Tela-circle-dracula" # Icon theme.
190+
cursor_size = 24 # Cursor size.
191+
cursor_theme = "Bibata-Modern-Ice" # Cursor theme.
192+
button_layout = "" # Button layout. (gtk only)
193+
document_font_size = 10 # Document font size.
194+
font = "Canterell" # Font.
195+
font_antialiasing = "rgba" # Font antialiasing.
196+
font_hinting = "full" # Font hinting.
197+
font_size = 10 # Font size.
198+
monospace_font = "CaskaydiaCove Nerd Font Mono" # Monospace font.
199+
monospace_font_size = 9 # Monospace font size.
200+
background_path = "" # LockScreen's Background path.
201+
202+
# Hyprland start configuration.
203+
[hyprland_start]
204+
apptray_bluetooth = "blueman-applet" # Bluetooth applet.
205+
auth_dialogue = "polkitkdeauth.sh" # Authentication dialogue.
206+
bar = "hyde-shell waybar --watch" # Bar.
207+
battery_notify = "batterynotify.sh" # Battery notification script.
208+
dbus_share_picker = "dbus-update-activation-environment --systemd --all" # DBus share picker.
209+
idle_daemon = "hypridle" # Idle daemon.
210+
image_clipboard = "wl-paste --type image --watch cliphist store" # Image clipboard.
211+
network_manager = "nm-applet --indicator" # Network manager.
212+
notifications = "swaync" # Notifications.
213+
removable_media = "udiskie --no-automount --smart-tray" # Removable media manager.
214+
systemd_share_picker = "systemctl --user import-environment QT_QPA_PLATFORMTHEME WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" # Systemd share picker.
215+
text_clipboard = "wl-paste --type text --watch cliphist store" # Text clipboard.
216+
wallpaper = "$scrPath/wallpaper.sh --global" # Wallpaper script.
217+
xdg_portal_reset = "resetxdgportal.sh" # XDG portal reset script.
218+
219+
# mediaplayer.py configuration.
220+
[mediaplayer]
221+
prefix_playing = "" # Prefix for playing media.
222+
prefix_paused = " " # Prefix for paused media.
223+
max_length = 70 # Max length of song and artist string.
224+
standby_text = " Music" # To display on standby.
225+
artist_track_separator = "  " # Separator symbols to display between artist and track.
226+

0 commit comments

Comments
 (0)