From 4f32e05e5305fdc8523762abf4c181b048da9ec7 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 21 Nov 2022 01:10:36 +0100 Subject: [PATCH] Set program title to fgg. chmod -x on fgg.rb. --- fgg | 6 ++++++ fgg.rb | 0 2 files changed, 6 insertions(+) mode change 100755 => 100644 fgg.rb diff --git a/fgg b/fgg index 6fb403e..ee2468e 100755 --- a/fgg +++ b/fgg @@ -36,8 +36,14 @@ import json import pathlib import os import requests +import sys import time +# Set the title for Linux and macOS. +sys.stdout.write("\x1b]2;fgg\x07") +# Set the title for Windows. +os.system("fgg") + __version__ = "0.1.0" flickr_api_key = os.environ['FLICKR_API_KEY'] diff --git a/fgg.rb b/fgg.rb old mode 100755 new mode 100644