Just a simple systray applet to toggle facetimehd camera in MacBooks running Linux as needed using modprobe.
Because no one does it. Keeping the module loaded prevents few macs from going to sleep including mine and it is painful to enable and disable using terminal when I'm in a hurry to a meeting. I hope this will be helpful for someone out there.
Plus, this also increases the privacy
- First you need the facetimehd kernel module driver to be installed:
yay -S facetimehd-dkms # arch linux syntax- Disable it from loading at startup:
sudo vim /etc/modprobe.d/blacklist-facetimehd.conf # this will open the file with vimthen add following line to it.
blacklist facetimehd
- Rebuild the
initramfsand reboot the system:
mkinitcpio -P # arch linux syntax
reboot-
Install facetimehd toggle.
-
You can now run the applet and check the functionality.
- Create systemd unit:
mkdir -p ~/.config/systemd/user
vim ~/.config/systemd/user/facetimehd-toggle.serviceand add following,
[Unit]
Description=FaceTimeHD Toggle Tray
After=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/facetimehd-toggle
Restart=on-failure
[Install]
WantedBy=default.target
- Enable and start the service:
systemctl --user enable facetimehd-toggle.service
systemctl --user start facetimehd-toggle.service- Check status:
systemctl --user status facetimehd-toggle.service
-
Make sure you have hyprpolkit or another polkit agent setup.
-
Then just put below line into your hyprland config and you're done.
exec-once = env DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS <path/to/your/program>Aur Package is coming soon...
This project is Licensed under MIT license.