Skip to content

Commit 22e916e

Browse files
committed
various cleanups & tweaks
1 parent 42c84af commit 22e916e

12 files changed

Lines changed: 57 additions & 130 deletions

File tree

roles/developer/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@
5252
loop:
5353
- csvkit # csv manipulation tools
5454
- posting # terminal based api client
55+
- python-dotenv # for loading environment variables from .env files
5556
- pywal16 # generate and change colorschemes based on wallpapers

roles/dotfiles/files/.mackup/bin-scripts.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ name = Local User Bin Scripts
44
[configuration_files]
55
.local/bin/select-wallpaper.sh
66
.local/bin/switch-audio-source.sh
7+
.local/bin/toggle-light.sh
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# What protocol to use when performing git operations. Supported values: ssh, https
2+
git_protocol: https
3+
# What editor gh should run when creating issues, pull requests, etc. If blank, will refer to environment.
4+
editor:
5+
# When to interactively prompt. This is a global config that cannot be overridden by hostname. Supported values: enabled, disabled
6+
prompt: enabled
7+
# A pager program to send command output to, e.g. "less". Set the value to "cat" to disable the pager.
8+
pager:
9+
# Aliases allow you to create nicknames for gh commands
10+
aliases:
11+
co: pr checkout
12+
# The path to a unix socket through which send HTTP connections. If blank, HTTP traffic will be handled by net/http.DefaultTransport.
13+
http_unix_socket:
14+
# What web browser gh should use when opening URLs. If blank, will refer to environment.
15+
browser:
16+
version: "1"

roles/dotfiles/files/Mackup/.config/karabiner/karabiner.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"key_code": "delete_forward",
155155
"modifiers": { "mandatory": [] }
156156
},
157-
"to": [{ "shell_command": "PATH=/opt/homebrew/bin:/usr/bin:/bin:~/.local/share/mise/installs/python/3.14.0/bin:$PATH ~/.local/bin/toggle-light" }],
157+
"to": [{ "shell_command": "PATH=/opt/homebrew/bin:/usr/bin:/bin:~/.local/share/mise/installs/python/3.14.0/bin:$PATH ~/.local/bin/toggle-light.sh" }],
158158
"type": "basic"
159159
}
160160
]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[settings]
2+
idiomatic_version_file_enable_tools = []
3+
4+
[tools]
5+
node = "24"
6+
python = "3"
7+
ruby = "3"

roles/dotfiles/files/Mackup/.local/bin/alacritty-color-export.sh

Lines changed: 0 additions & 115 deletions
This file was deleted.

roles/dotfiles/files/Mackup/.local/bin/backup-to-drive.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python
2+
3+
import http.client
4+
import json
5+
import os
6+
from dotenv import load_dotenv
7+
8+
load_dotenv()
9+
10+
conn = http.client.HTTPConnection(os.getenv(
11+
"HOME_ASSISTANT_HOST"), int(os.getenv("HOME_ASSISTANT_PORT")))
12+
13+
payload = json.dumps({
14+
"entity_id": "light.wiz_rgbww_tunable_710a10"
15+
})
16+
headers = {
17+
'Content-Type': 'application/json',
18+
'Authorization': f"Bearer {os.getenv('HOME_ASSISTANT_TOKEN')}"
19+
}
20+
conn.request("POST", "/api/services/light/toggle", payload, headers)
21+
res = conn.getresponse()
22+
data = res.read()
23+
24+
print(data.decode("utf-8"))

roles/dotfiles/files/Mackup/.tool-versions

Lines changed: 0 additions & 3 deletions
This file was deleted.

roles/dotfiles/files/Mackup/Library/Application Support/BraveSoftware/Brave-Browser/Default/Preferences

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)