pez2001 / razer_chroma_drivers

A collection of Linux drivers for Razer Chroma devices, it supports all lighting modes and includes a daemon for advanced effects + gui configuration app
GNU General Public License v2.0
231 stars 31 forks source link

Macro Keys enabled on startup #122

Closed Deus-Rex closed 8 years ago

Deus-Rex commented 8 years ago

I use the macros for daily desktop use, so would prefer them being active on startup. Is there a script I could use or maybe a setting that I have missed?

terricain commented 8 years ago

I think this might have been asked before. I think @lah7 knows something, if not I can whip you up a script.

lah7 commented 8 years ago

Similar questions have been asked before, but got buried somewhere. There's two ways:

#!/usr/bin/env python3
import razer.daemon_dbus
daemon = razer.daemon_dbus.DaemonInterface()
daemon.marco_keys(True)

Original, but similar comments:

Deus-Rex commented 8 years ago

Sorry, I had a look but seems I wasn't thorough enough.

To be honest, and this is embarrassing, I only just realized that the preferences in the tray applet could be scrolled down to reveal more options. Never noticed the slim scrollbar that appears on hover.

So yup, found the setting. Thanks!

I tried creating a Python script a few weeks ago, but couldn't get it to work. I think I was typing 'macro_keys' instead. I should have looked closer at that, too.

Thanks, again!