Skip to content

About

A graphical settings app for the tiny-dfr Touch Bar daemon (Apple Silicon and T2 Macs on Linux)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiny-dfr-settings

A graphical settings app for tiny-dfr, the Touch Bar daemon used on Apple Silicon and Intel T2 Macs running Linux.

It edits /etc/tiny-dfr/config.toml so you don't have to:

  • Live preview of both Touch Bar layers (media keys and function keys)
  • Add, remove, reorder and edit buttons: text, icon, clock, battery, spacer
  • Pick the key or key combo each button sends, from the names tiny-dfr accepts
  • General options: default layer, outlines, pixel shift, brightness, font
  • Validates the config before writing it, and keeps a config.toml.bak

Build

Needs Rust, GTK 4.12+ and libadwaita 1.5+.

cargo build --release
./target/release/tiny-dfr-settings

Pressing Apply asks for your password through polkit (pkexec), writes the config, and starts tiny-dfr if it isn't running. tiny-dfr reloads the file on its own.

How it works

The app merges /usr/share/tiny-dfr/config.toml with /etc/tiny-dfr/config.toml the same way the daemon does, and writes the full result back to /etc. Options and button fields it doesn't know about are preserved; comments in an existing /etc file are not.

For testing without root, point it at other files:

TINY_DFR_USER_CONFIG=/tmp/test.toml cargo run

TINY_DFR_BASE_CONFIG does the same for the package defaults.

License

MIT

About

A graphical settings app for the tiny-dfr Touch Bar daemon (Apple Silicon and T2 Macs on Linux)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages