mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-26 16:53:44 +02:00
16 lines
358 B
Python
Executable file
16 lines
358 B
Python
Executable file
#!/usr/bin/env python3
|
|
import gi
|
|
gi.require_version('Gtk', '3.0')
|
|
from gi.repository import Gtk
|
|
import sys
|
|
|
|
def fetch(icon_name):
|
|
icon_theme = Gtk.IconTheme.get_default()
|
|
icon = icon_theme.lookup_icon(icon_name, 48, 0)
|
|
if icon:
|
|
return icon.get_filename()
|
|
else:
|
|
return
|
|
|
|
if __name__ == "__main__":
|
|
print(fetch(sys.argv[1]))
|