error proof manual colors
This commit is contained in:
@@ -119,7 +119,7 @@
|
|||||||
return Palette(colors)
|
return Palette(colors)
|
||||||
|
|
||||||
def hyprpicker() -> Color:
|
def hyprpicker() -> Color:
|
||||||
ret = str(subprocess.run(["${pkgs.hyprpicker}/bin/hyprpicker", "-n", "-f", "rgb"], capture_output=True).stdout)[2:-3]
|
ret = str(subprocess.run(["bash", "-c", "${pkgs.hyprpicker}/bin/hyprpicker -n -f rgb | tail -n 1"], capture_output=True).stdout)[2:-3]
|
||||||
return Color([int(c) for c in ret.split(" ")])
|
return Color([int(c) for c in ret.split(" ")])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user