Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lukemarsden/luke-vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemarsden committed Jan 5, 2025
2 parents 4706151 + 8dd7fc1 commit 0551b85
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
shopt -s histappend
export PROMPT_COMMAND="history -a"

alias sagi='sudo apt-get install'
alias sagi='sudo apt-get install -y'
alias t='~/todo/todo.sh'
# Make a new line at the start of the file
alias todo="echo '0a
Expand Down
5 changes: 4 additions & 1 deletion fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
elif temp > 60:
f.write("level 2")
print("😎 2")
else:
elif temp > 55:
f.write("level 0")
print("🧊 0")
else:
f.write("disabled")
print("🧊🧊 disabled")
f.close()
15 changes: 15 additions & 0 deletions fan.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Fan
After=network.target

[Service]
Type=simple
User=root
Environment=PYTHONUNBUFFERED=1
ExecStart=/usr/bin/python3 /home/luke/luke-vimrc/fan.py
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

2 changes: 2 additions & 0 deletions thinkpad_acpi.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
options thinkpad_acpi fan_control=1

0 comments on commit 0551b85

Please sign in to comment.