mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2024-12-13 22:12:32 +00:00
25 lines
686 B
Python
25 lines
686 B
Python
import os
|
|
|
|
from . import TerminalProvider as _TProv
|
|
|
|
|
|
class TilixProvider(_TProv):
|
|
setting_key = "com.gexperts.Tilix.Settings"
|
|
setting_field = "background-image"
|
|
|
|
def is_compatible() -> bool:
|
|
return "TILIX_ID" in os.environ
|
|
|
|
def change_terminal(self, path: str):
|
|
command = 'gsettings set {} {} "{}"'
|
|
os.system(command.format(self.setting_key,
|
|
self.setting_field,
|
|
path))
|
|
|
|
def clear(self):
|
|
command = 'gsettings set {} {}'
|
|
os.system(command.format(self.setting_key,
|
|
self.setting_field))
|
|
|
|
def __str__():
|
|
return "Tilix"
|