Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mlalkaka
mlalkaka / toggle-night-light
Created March 10, 2019 07:44
Script to toggle GNOME Night Light
#!/bin/sh
setting_path=org.gnome.settings-daemon.plugins.color
setting_key=night-light-enabled
current_value="$(gsettings get $setting_path $setting_key)"
if [ $current_value = "false" ]; then
gsettings set $setting_path $setting_key true
else
@mlalkaka
mlalkaka / ue-roll.sh
Last active October 30, 2022 11:31
Power on and off a UE Roll via Bluetooth using GATT and SPP
#!env sh
mac=C0:28:8D:00:2A:A8
function ue_on() {
handle=0x0003
value=b469218dd9e701
gatttool -b $mac --char-write-req --handle=$handle --value $value
}