Skip to content

Instantly share code, notes, and snippets.

First install with package manager apt install lirc kodi inputlirc ir-keytable

Get all input devices cat /proc/bus/input/devices

Get more information about infrared device udevadm info -a -p $(udevadm info -q path -n /dev/input/event6)

Test to see input from remote (must make sure lirc is not running and both devices set to none with dpkg-reconfigure lirc)

@Quacky2200
Quacky2200 / gist:bba7f767df4ccf124ce8c904d91e8528
Created January 14, 2017 12:57
Spotify Web Player .desktop right-click unity menu extensions
[Desktop Action PlayPause]
Name=Play/Pause
Exec=dbus-send --type=method_call --session --dest=org.mpris.MediaPlayer2.spotifywebplayer /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
[Desktop Action Next]
Name=Next
Exec=dbus-send --type=method_call --session --dest=org.mpris.MediaPlayer2.spotifywebplayer /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
[Desktop Action Previous]
Name=Previous
@Quacky2200
Quacky2200 / test-conversion.js
Created January 9, 2017 09:58
Try to convert freedesktop-notifications from dbus-native to dbus
/*
Freedesktop.org Notifications
Copyright (c) 2015 - 2016 Cédric Ronvel
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights