Skip to content

Instantly share code, notes, and snippets.

View D3SOX's full-sized avatar
🏠
Working from home

Nico D3SOX

🏠
Working from home
View GitHub Profile
@D3SOX
D3SOX / aqara_cube_light_dimmer_side_aware.yaml
Last active April 10, 2025 16:49
Dim a light with an Aqara Cube (depending on the side it lays)
alias: Aqara Cube Light Dimmer (Side-Aware)
description: Dim a light with an Aqara Cube (depending on the side it lays)
triggers:
- entity_id: sensor.aqara_cube_action_angle
trigger: state
conditions:
- condition: template
value_template: >-
{{ trigger.to_state.state != 'unknown' and
trigger.to_state.state|float|abs > 5 }}
@D3SOX
D3SOX / aqara_cube_light_dimmer.yaml
Last active April 10, 2025 16:44
Dim a light with an Aqara Cube
blueprint:
name: Aqara Cube Light Dimmer
description: Adjust light brightness using Aqara Cube rotation
domain: automation
input:
cube_angle_sensor:
name: Aqara Cube Angle Sensor
description: The sensor that provides the rotation angle
selector:
entity:
@D3SOX
D3SOX / PIPEWIRE_RNNOISE.md
Last active August 17, 2024 16:22
PipeWire default mic RNNoise

Prerequisites

Your distribution must use PipeWire as default audio server. To confirm this run pactl info and make sure it includes a line similar to:

Server Name: PulseAudio (on PipeWire 0.3.83)

Install packages

For Arch: sudo pacman -S rnnoise noise-suppression-for-voice

@D3SOX
D3SOX / ULauncher-Solus.md
Last active April 14, 2020 09:26
Install ULauncher on Solus Distribution

How to install ULauncher on Solus

Please note that this will install the latest development build. This may be unstable but in my experience it it working fine.
Keep in mind that this will not install the program like on a officially supported distribution. You need to manually update it if there is a new version!
I hope that they will distribute a Snap/Flatpak/AppImage in the future so that the installation will be easier and it will be simpler to update.

Installing dependencies (some of them may be not required but it works with them)

If something does not work later there may be new dependencies
(See https://github.com/Ulauncher/Ulauncher#setup-development-environment)

@D3SOX
D3SOX / .hyper.js
Last active April 17, 2019 01:53
My hyper settings
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',