add scripts and config
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
tmp = os.popen("lutris -ojl").read()
|
||||
games = json.loads(tmp)
|
||||
|
||||
gameslist = ""
|
||||
concat = ""
|
||||
for item in games:
|
||||
gameslist = gameslist + concat + item["name"]
|
||||
concat = "\n"
|
||||
|
||||
tmp = subprocess.getoutput("echo \"" + gameslist + "\" | wofi -n -d -p \"Select Game:\"")
|
||||
|
||||
for item in games:
|
||||
if item["name"] == tmp:
|
||||
subprocess.Popen(["lutris","lutris:rungameid/" + str(item["id"])])
|
||||
break
|
||||
Reference in New Issue
Block a user