Skip to content

Instantly share code, notes, and snippets.

View cassidyjames's full-sized avatar

Cassidy James Blaede cassidyjames

View GitHub Profile
@cassidyjames
cassidyjames / pm25-aqi-card.yml
Created May 24, 2024 18:03
US EPA PM2.5 AQI card with multiple sensors
type: custom:mini-graph-card
name: Kids Room
entities:
- entity: sensor.kids_room_pm2_5
- entity: sensor.kids_room_starkvind_pm2_5
show_fill: false
- entity: sensor.kids_room_vindstyrka_pm2_5
show_fill: false
animate: true
decimals: 0
@cassidyjames
cassidyjames / aqi-strings.jinja2
Last active May 23, 2024 20:01
US EPA PM2.5 Air Quality strings for Home Assistant
{% if states('sensor.indoor_pm2_5') | float <= 9.0 %}
Good
{% elif states('sensor.indoor_pm2_5') | float <= 35.4 %}
Moderate
{% elif states('sensor.indoor_pm2_5') | float <= 55.4 %}
Unhealthy for Sensitive Groups
{% elif states('sensor.indoor_pm2_5') | float <= 125.4 %}
Unhealthy
{% elif states('sensor.indoor_pm2_5') | float <= 225.4 %}
Very Unhealthy
@cassidyjames
cassidyjames / temp-chart.yaml
Created November 27, 2023 18:06
Temperature chart for Home Assistant
type: custom:mini-graph-card
name: Living Room
entities:
- entity: sensor.living_room_avg_temperature
- entity: sensor.living_room_thermostat_living_room_temperature
show_fill: false
- entity: sensor.closet_door_temperature
show_fill: false
animate: true
decimals: 0
@cassidyjames
cassidyjames / appcenter-remote.sh
Created June 24, 2022 19:44
Add elementary AppCenter Flatpak remote
#!/bin/sh
# Add elementary AppCenter Flatpak remote
# Open your Linux terminal/console app, and run:
flatpak remote-add --user --if-not-exists appcenter https://flatpak.elementary.io/repo.flatpakrepo
@cassidyjames
cassidyjames / framework-xrandr.txt
Created August 6, 2021 03:36
Notes for using xrandr on elementary OS for the Framework Laptop
## To add a sensible 1× resolution of 1500×1000:
gtf 1500 1000 60
# 1504x1000 @ 60.00 Hz (GTF) hsync: 62.10 kHz; pclk: 125.19 MHz
# Modeline "1504x1000_60.00" 125.19 1504 1600 1760 2016 1000 1001 1004 1035 -HSync +Vsync
xrandr --newmode "1504x1000_60.00" 125.19 1504 1600 1760 2016 1000 1001 1004 1035 -HSync +Vsync
xrandr --addmode eDP-1 "1504x1000_60.00"
@cassidyjames
cassidyjames / gist:5413a3ec621b6e484535bbe47dfed974
Created March 24, 2021 16:49
elementary Slack Sidebar (Dark)
#313131,#FAFAFA,#252525,#FFFFFF,#3B3B3B,#FFFFFF,#9BDB4D,#ED5353,#313131,#FFFFFF
@cassidyjames
cassidyjames / gist:90e29e9f89c769f781a259da687d48b2
Created March 24, 2021 16:42
elementary Slack Sidebar (Light)
#F1F1F1,#FAFAFA,#DFDFDF,#333333,#FBFBFB,#333333,#68B723,#C6262E,#EDEDED,#333333
@cassidyjames
cassidyjames / touchegg.conf
Last active November 2, 2020 20:50
A touchégg config I am trying out for elementary OS and big trackpads
<touchégg>
<settings>
<property name="animation_delay">150</property>
<property name="action_execute_threshold">20</property>
<property name="color">909090</property>
<property name="borderColor">FFFFFF</property>
</settings>
<application name="All">
<gesture type="SWIPE" fingers="3" direction="LEFT">
<action type="CHANGE_DESKTOP">
.foo {
background-image: linear-gradient(
to bottom,
@BLUEBERRY_500,
@BLUEBERRY_700
);
border-color: @BLUEBERRY_100;
color: white;
text-shadow: 0 1px alpha(@BLUEBERRY_900, 0.67);
}
.foo {
background: #552255;
color: white;
}