mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
feat: add niri
This commit is contained in:
parent
55c51028af
commit
9ca077bc1e
1 changed files with 11 additions and 0 deletions
11
konawall/environments/niri.py
Normal file
11
konawall/environments/niri.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import subprocess
|
||||
import dbus
|
||||
import time
|
||||
from konawall.module_loader import add_environment
|
||||
|
||||
@add_environment("niri_setter")
|
||||
def set_wallpapers(files: list, displays: list):
|
||||
for i in range(len(displays)):
|
||||
display_name = displays[i].name
|
||||
command = ["swww", "img", "-o", display_name, files[i]]
|
||||
subprocess.run(command)
|
||||
Loading…
Add table
Add a link
Reference in a new issue