UmmIt 醬 XD
UmmItOSConfigurationKeybindings

Laptop Keybindings

Brightness, volume, and media control keys for laptop users

Laptop Keybindings

These keybindings are specifically designed for laptop users and provide control over hardware features like brightness, volume, and media playback.

Usually these keys only available on laptop users. but you also can check it out! to use is just press the key you can see on the laptop keybaord, a little icon you can see on the key.

These keybindings are configured in the laptop section of the configuration file:

Location: ./configs/hypr/hyprland/laptop.conf

Brightness Control

KeybindingActionDescription
Brightness UpIncrease BrightnessIncrease screen brightness by 1%
Brightness DownDecrease BrightnessDecrease screen brightness by 1%

Volume Control

KeybindingActionDescription
Volume UpIncrease VolumeIncrease audio volume by 1%
Volume DownDecrease VolumeDecrease audio volume by 1%
MuteToggle MuteMute/unmute audio output

Media Control

KeybindingActionDescription
Play/PauseToggle PlaybackPlay or pause current media
Previous TrackPreviousSkip to previous track
Next TrackNextSkip to next track

Special Functions

This are my custom keybindings for using Ollama instead of Copilot key.

KeybindingActionDescription
Alt Right + CopilotLaunch OllamaStart Ollama with Llama3.1 model in terminal

Copilot Key: This refers to the dedicated Copilot key found on some newer laptops. If your laptop doesn't have this key, you can modify the configuration to use a different key combination or just remote this keybindings.

Required Packages

For these keybindings to work properly, ensure these packages are installed:

PackagePurposeInstall Command
brightnessctlBrightness controlparu -S brightnessctl
playerctlMedia controlparu -S playerctl

Customization

To modify laptop-specific keybindings:

  1. Edit the configuration file
  2. Adjust the increment values (e.g., change 1% to 5% for faster changes)
  3. Add custom laptop-specific shortcuts
  4. Test the changes after reloading configuration

Example Custom Configuration

# Custom brightness control (5% increments)
bind = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%-

# Custom volume control (2% increments)
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+
bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-

Auto-Installation: The UmmItOS installation script automatically installs will detect your machine dose this are laptop or not. if it is laptop, it will install the required packages.

Found an issue? submit a pull request!
Don't be shy, your help is making this documentation better for everyone.

Edit on GitHub