From 8453bb64d330ba4bbb268e2593e95a86477eec1c Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sun, 23 Nov 2025 19:20:09 +0530 Subject: Dot File for niri Desktop --- kitty/kitty-themes/.tools/windowid.swift | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 kitty/kitty-themes/.tools/windowid.swift (limited to 'kitty/kitty-themes/.tools/windowid.swift') diff --git a/kitty/kitty-themes/.tools/windowid.swift b/kitty/kitty-themes/.tools/windowid.swift deleted file mode 100755 index 1dc95e6fd..000000000 --- a/kitty/kitty-themes/.tools/windowid.swift +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/swift -import Foundation -import Cocoa -import CoreGraphics.CGWindow - -let windows : NSArray = CGWindowListCopyWindowInfo(CGWindowListOption.excludeDesktopElements, kCGNullWindowID)! as NSArray - -let search_for_app = CommandLine.arguments[1] -let search_for_win = CommandLine.arguments[2] - -for window in windows { - let window = window as! NSDictionary - - let app_name = window[kCGWindowOwnerName] as! String - let window_name = window[kCGWindowName] as? String - - if app_name == search_for_app && window_name == search_for_win { - print("\(window[kCGWindowNumber]!)") - } -} -- cgit v1.2.3