-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.py
36 lines (30 loc) · 1.08 KB
/
commands.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os
from typing import NamedTuple
class Command(NamedTuple):
name: str
command: str
description: str
def as_command_set_dict(self):
return {self.name: self.command}
open_calendar = Command(
"calendar",
f"kitty -d {os.path.expanduser('~/dev/project_calendar/')} -e pipenv run textual run src/app.py",
"Launch TUI calendar",
)
commands = [
Command("nvim", "kitty -e nvim", "Launch Neovim"),
Command("code", "code", "Launch VSCode"),
Command("browser", "qutebrowser", "Launch qutebrowser"),
Command("chrome", "google-chrome-stable", "Launch Chrome"),
Command(
"edge",
'microsoft-edge-stable --proxy-server="http://192.168.0.119:8899;https://192.168.0.119:8899"',
"Launch Edge using proxy",
),
Command("postman", "postman", "Launch Postman"),
Command("slack", "slack", "Launch Slack"),
Command("discord", "discord", "Launch Discord"),
Command("audio", "pavucontrol -t 5", "Launch Audio Settings"),
Command("spotify", "flatpak run com.spotify.Client", "Launch Spotify"),
open_calendar,
]