waybar: organize config

This commit is contained in:
2025-08-03 23:23:59 +02:00
parent cc10c92af6
commit 25a07767cf
6 changed files with 160 additions and 745 deletions

View File

@@ -287,10 +287,18 @@ def main():
os.system(f'notify-send "Color theme changed" "Catppuccin Mocha - {flavor}"')
if not app or app == 'fastfetch':
ans = input("execute \"exec fish\"? [y/N]: ").strip().lower()
if ans in ('y', 'yes'):
os.system('fish')
# def is_interactive_shell() -> bool:
# return sys.stdin.isatty() and sys.stdout.isatty()
# def is_fish() -> bool:
# import psutil
# parent = psutil.Process().parent()
# return parent is not None and 'fish' in parent.name().lower()
# if not app or app == 'fastfetch' \
# and is_interactive_shell() \
# and is_fish():
# os.system('fish')
if __name__ == "__main__":