mirror of
https://github.com/LazoCoder/Pokemon-Terminal
synced 2025-01-25 02:25:02 +00:00
19 lines
596 B
Python
19 lines
596 B
Python
import os
|
|
|
|
from adapter.base import TerminalAdapterInterface
|
|
|
|
|
|
class Tilix(TerminalAdapterInterface):
|
|
setting_key = "com.gexperts.Tilix.Settings"
|
|
setting_field = "background-image"
|
|
|
|
def set_pokemon(self, pokemon):
|
|
command = 'gsettings set %s %s "%s"'
|
|
os.system(command.format(self.setting_key,
|
|
self.setting_field,
|
|
pokemon.get_path()))
|
|
|
|
def clear(self):
|
|
command = 'gsettings set %s %s'
|
|
os.system(command.format(self.setting_key,
|
|
self.setting_field))
|