Acer C720 Omarchy Configuration
The Acer C720 Chromebook has a top row of function keys that can be mapped to different Omarchy functions. Things like browser forward/back buttons, volume, and brightness.
Prerequisites
Install swayosd and ydotool for function key support.
yay -S swayosd ydotool
Configurations
There are a number of configurations to make in order for the function keys to...function.
~/.config/hypr/autostart.conf
# Extra autostart processes
# exec-once = uwsm app -- my-service
+exec-once = sudo -b ydotoold --socket-path="/run/user/$(id -u)/.ydotool_socket" --socket-own="$(id -u):$(id -g)"
~/.config/hypr/bindings.conf
# Overwrite existing bindings, like putting Omarchy Menu on Super + Space
# unbind = SUPER, SPACE
# bindd = SUPER, SPACE, Omarchy menu, exec, omarchy-menu
+# Acer C720 Function keys
+bindd = , F1, Browser Back, exec, ydotool key 158:1 158:0
+bindd = , F2, Browser Forward, exec, ydotool key 159:1 159:0
+bindd = , F3, Browser Refresh, exec, ydotool key 173:1 173:0
+bindd = , F4, Fullscreen, fullscreen, 0
+bindd = ALT, F4, Full width, fullscreen, 1
+
+# Screenshots
+bindd = , F5, Screenshot of region, exec, omarchy-cmd-screenshot
+bindd = SHIFT, F5, Screenshot of window, exec, omarchy-cmd-screenshot window
+bindd = CTRL, F5, Screenshot of display, exec, omarchy-cmd-screenshot output
+
+# Screen recordings
+bindd = ALT, F5, Screen record a region, exec, omarchy-cmd-screenrecord region
+bindd = ALT SHIFT, F5, Screen record a region with audio, exec, omarchy-cmd-screenrecord region audio
+bindd = CTRL ALT, F5, Screen record display, exec, omarchy-cmd-screenrecord output
+bindd = CTRL ALT SHIFT, F5, Screen record display with audio, exec, omarchy-cmd-screenrecord output audio
+
+# Brightness
+bindd = , F6, Brightness Down, exec, swayosd-client --brightness lower
+bindd = , F7, Brightness Down, exec, swayosd-client --brightness raise
+
+# Volume
+bindd = , F8, Mute Volume, exec, swayosd-client --output-volume mute-toggle
+bindd = , F9, Volume Down, exec, swayosd-client --output-volume lower
+bindd = , F10, Volume Up, exec, swayosd-client --output-volume raise
~/.config/hypr/input.conf
# Enable touchpad gestures for changing workspaces
# See https://wiki.hyprland.org/Configuring/Gestures/
+gesture = 3, horizontal, workspace