Saturday, December 4, 2021

Recent Questions - Ask Different

Recent Questions - Ask Different


How to reclaim free space for APFS after freeing it on Bootcamp?

Posted: 04 Dec 2021 05:40 PM PST

I have a fairly old macbook (2016) with a 256Gb hard drive running Catalina 10.15.7 on which I've set up Bootcamp splitting the disk roughly in half at the time.

Recently, I've decided to upgrade to BigSur and found out that I'm out of disk space to do so, the update says that about 25Gb is needed and since I had enough space on Bootcamp for my needs I've partitioned its size to be less, sure enough running into jinxing my APFS partition which is happily answered here on this helpful website :)

That freed up about 35Gb space on the disk, enough for my update, but I now cannot find a way to merge it with the original MacOS container:

SSDpartition

I would like to keep both Bootcamp and the existing MacOS intact, just add the free space to the existing 'Macintosh HD' as on the picture above and then proceed with my system upgrade. After browsing some further helpful answers here and here I now realize that this might just be harder than it looks because I don't have free space to clone any of the 2 partitions I want to keep if I go that way, and the sudo diskutil apfs resizeContainer disk0s3 0 does not work for me since the Free Space precedes the MacOS container (there is also a FAT32 container likely related to Bootcamp right at the beginning of the disk) and returns the following error:

Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space  

Free Space is disk0s2 then followed by the MacOS space disk0s3 and finally the Bootcamp space disk0s4 and all together it looks like one big ugly this:

DiskOverall DiskStructure

So is it even possible? Will I have to use an external hard drive to clone any of the 2 existing systems out, format, and then clone them back in? Or is there an easier way with some helpful diskutil or gpt commands that I'm not aware of?

Mounting smb shares on mac using a script

Posted: 04 Dec 2021 05:21 PM PST

I have a 2010 mac pro which I'm still using as my main workstation running High Sierra. I use it in combination with my laptop (which is much more recent), where I'm running Linux.

Whenever I work on my Linux one of the first things I do is run a script that mounts all my smb shares in 1 run, and - most importantly - don't timeout when I don't use them:

#!/bin/bash  mount -t cifs -o username=someone,dir_mode=0777,file_mode=0777,password=somepassword "//someserver/FinishedDownloads" "/mnt/someserver/FinishedDownloads/"  mount -t cifs -o username=someone,dir_mode=0777,file_mode=0777,password=somepassword "//someserver/Backup" "/mnt/someserver/Backup/"  mount -t cifs -o username=someone,dir_mode=0777,file_mode=0777,password=somepassword "//someserver/Pictures" "/mnt/someserver/Pictures/"  mount -t cifs -o username=someone,dir_mode=0777,file_mode=0777,password=somepassword "//someserver/Personal pictures" "/mnt/someserver/Personal pictures/"  mount -t cifs -o username=someone,dir_mode=0777,file_mode=0777,password=somepassword "//someserver/Audiobooks" "/mnt/someserver/Audiobooks/"  

I would love to duplicate this feat on OsX, but I don't seem to get it to run. Can anyone help me and tell me which commands I should use?

Bootcamp- your device ran into a problem and needs to restart

Posted: 04 Dec 2021 04:36 PM PST

Have had many successful USB Windows 10 installs before. Not sure what's going on here. I have tried creating the USB with a PC using Rufus, Hasleo, and windows media creation tool. No matter, same error - upon first boot on my macbook, it tells me that the device ran into a problem and needs to restart. Is this an issue with my mac installation?

make Mail plugin open without disabling SIP

Posted: 04 Dec 2021 03:57 PM PST

Through several OS and Apple Mail updates, I have been successful in using Xcode to build and keep updated this plugin for Apple Mail, called MBI, which puts a count of your unread messages in the menu bar — despite lacking relevant programming skills to actually understand what I am doing. But having just updated to Monterey and upgraded my computer to an M1 Macbook Pro, the plug-in is now regularly disabled by Mail unless I disable System Integrity Protection (which permits it to run) — which I do not want to do (and which in turn disables the ability to run iPad apps on the Mac). Any help would be appreciated.

Process causing significant battery drain during sleep (MBP 14)

Posted: 04 Dec 2021 03:26 PM PST

This process com.apple.dasd:0:com.apple.bluetoooth.CBMetric is causing ~20 percent battery drain while my computer is put on sleep overnight

every 15 minutes this is sending a wake request and I can see in my CPU usage history the same 15 minutes the CPU spikes. I have disabled bluetooth wake from sleep setting and I am still getting the drain.

Does anyone have any ideas what that process is doing? Thanks!

Bootable USB drive with Kali linux don't show in boot menu mac OS

Posted: 04 Dec 2021 03:15 PM PST

I did a bootable USB drive with Kali linux Live Boot (kali-linux-2021.3a-live-arm64.iso) from this website: https://www.kali.org/get-kali/#kali-live on Macbook air (mac OS Big Sur) and following this instructions: https://www.kali.org/docs/usb/live-usb-install-with-mac/

Firstly, I erased the USB drive from Disk Utility and choose format it MS-DOS(FAT).

Secondly, I prepared it from terminal and after I finished the steps I restarted the macbook and press the option key. All I can see it's macintosh, I don't see the kali linux :(

I opened the USB drive NO NAME and it contains 2 folders: 1.boot (Contains folder grub and in it's file grub.cfg); 2.EFI (Contains folder boot and in it's file bootaa64.efi);

Also, I get info from USB drive and thers is bootabe = No. Is that problem from it? Mentioned that the USB size is 32GB.

I attached some printscreens to see everything I said. I am waiting your answers.

Thank you. enter image description here enter image description here enter image description here enter image description here enter image description here

Cannot block site z1.fm from etc hosts

Posted: 04 Dec 2021 03:14 PM PST

When I try to block some websites on terminal by editing a bad address int /etc/hosts file it works in safari.

But when I try to do it with z1.fm, it doesn't. When you type the website on internet, it redirects you to z2.fm. Both z1.fm and z2.fm are the same website.

I tried to type all forms of "z1.fm" , with https/www, without, tried z2.fm.. I cleared cache, restarted my mac. Nothing worked. Example:

ˋˋˋ 127.0.0.1 z1.fm 127.0.0.1 www.z1.fm 127.0.0.1 z2.fm 127.0.0.1 www.z2.fm ˋˋˋ

Is there a way i can fully block this site? I am using MacBook Air M1 MacOS Big Sur 11.6, Safari Version 15.0 (16612.1.29.41.4, 16612).

How iOS apps keep track of me across reinstallations?

Posted: 04 Dec 2021 03:05 PM PST

I installed app MyApp on iOS 15, I uninstalled it and then reinstalled it, the app still recognized my phone. How did it do that?

  • iCloud backup is not enabled for this app.
  • App data was lost after reinstallation, but it did recognize my phone.
  • I did not allow apps to 'Ask to Track'.
  • The app limits what you can do with the same phone probably to prevent abuse.

Was the app fingerprinting my phone, or did it have access to some device specific identifers?

Why does Safari's "Prevent Website Tracking" cause missing history after duck duck go

Posted: 04 Dec 2021 02:41 PM PST

In Safari, I have Duck Duck Go as the default search engine. After searching from the "smart search" toolbar (i.e. where the URL is displayed), a Duck Duck Go search results page is shown. If I click one of the links on the results page, that website is not recorded properly in Safari History log. It records the Duck Duck Go search URL, but includes the downstream website's home tag (i.e. website name/description). See screenshot.

If I turn off "Prevent cross site tracking" in the Safari preferences, the normal website history is shown correctly.

Any ideas why? Is this a bug or feature?

Screenshot

Open the nth app on the Dock

Posted: 04 Dec 2021 02:27 PM PST

In Windows, you can open the nth application on the taskbar by doing Windows key + n. How do you do this on a Mac (keyboard shortcut)?

Grayed out setting in Home app for HomePod

Posted: 04 Dec 2021 12:32 PM PST

Not sure if this is ios 15 thing. A lot of setting for my Homepod inside the Home app are grayed out, including 'Personal requests'. I can't change them. What's causing that? How do I change them?

Public IP on MacBook keeps changing randomly though there is no VPN

Posted: 04 Dec 2021 06:24 PM PST

I have a MacBook Pro and it recently went in for repair for battery replacement. Ever since I got it back, I have been noticing that some streaming platforms are not working or showing content from different locations.

To investigate this, I have tried to check my public IP Address and found out that it is showing an IP address from a different country. I have been testing it out on https://ipleak.net/ and https://www.whatismyip.com/my-ip-information/ and I'm getting different public IP on both.

I have tried this on my other devices that are connected to the same network and all of those devices are showing consistent information. I have also tested my laptop on various networks, and it the public IP is always from a random country only on my laptop.

Essentially, my laptop is behaving as if it is on VPN even though there is no VPN setup at all.

I have attached screenshots from different websites for the same. I am not in Hong Kong but it is currently showing Hong Kong as my location and websites like Hotstar are showing me Hong Kong related content. It sometimes shows Singapore / USA as well. I am actually in India.

Please help me understand this issue. I have tried resetting the network settings on my Mac but there is no use.

Result from whatismyip.com

Result from ipleak.net

Some Additional Details:

raghava@MacBook-Pro ~ % scutil  > show State:/Network/Global/IPv4  <dictionary> {    PrimaryInterface : en0    PrimaryService : B9DF3F22-52B6-4B9A-B3BA-3D229089DEFA    Router : 10.0.0.1  }  > show State:/Network/Interface/en0/IPv4  <dictionary> {    Addresses : <array> {      0 : 10.0.0.60    }    BroadcastAddresses : <array> {      0 : 10.0.1.255    }    SubnetMasks : <array> {      0 : 255.255.254.0    }  }  > exit  raghava@MacBook-Pro ~ % curl ip.me  8.17.206.231  
raghava@MacBook-Pro ~ % ifconfig -a  lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384      options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>      inet 127.0.0.1 netmask 0xff000000       inet6 ::1 prefixlen 128       inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1       inet 127.94.0.1 netmask 0xff000000       inet 192.0.2.2 netmask 0xffffff00       nd6 options=201<PERFORMNUD,DAD>  gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280  stf0: flags=0<> mtu 1280  ap1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500      options=400<CHANNEL_IO>      ether 3a:f9:d3:98:7d:95       media: autoselect      status: inactive  en5: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      ether ac:de:48:00:11:22       inet6 fe80::aede:48ff:fe00:1122%en5 prefixlen 64 scopeid 0x5       nd6 options=201<PERFORMNUD,DAD>      media: autoselect (100baseTX <full-duplex>)      status: active  en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500      options=460<TSO4,TSO6,CHANNEL_IO>      ether 82:4c:5b:e8:54:01       media: autoselect <full-duplex>      status: inactive  en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500      options=460<TSO4,TSO6,CHANNEL_IO>      ether 82:4c:5b:e8:54:00       media: autoselect <full-duplex>      status: inactive  en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500      options=460<TSO4,TSO6,CHANNEL_IO>      ether 82:4c:5b:e8:54:05       media: autoselect <full-duplex>      status: inactive  en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      options=6463<RXCSUM,TXCSUM,TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>      ether 38:f9:d3:98:7d:95       inet 10.0.0.60 netmask 0xfffffe00 broadcast 10.0.1.255      inet6 fe80::18b2:3e8b:e936:73ff%en0 prefixlen 64 secured scopeid 0x9       nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active  en4: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500      options=460<TSO4,TSO6,CHANNEL_IO>      ether 82:4c:5b:e8:54:04       media: autoselect <full-duplex>      status: inactive  awdl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500      options=400<CHANNEL_IO>      ether 76:83:f6:f7:00:c7       inet6 fe80::7483:f6ff:fef7:c7%awdl0 prefixlen 64 scopeid 0xb       nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active  bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      options=63<RXCSUM,TXCSUM,TSO4,TSO6>      ether 82:4c:5b:e8:54:01       Configuration:          id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0          maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200          root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0          ipfilter disabled flags 0x0      member: en1 flags=3<LEARNING,DISCOVER>              ifmaxaddr 0 port 6 priority 0 path cost 0      member: en2 flags=3<LEARNING,DISCOVER>              ifmaxaddr 0 port 7 priority 0 path cost 0      member: en3 flags=3<LEARNING,DISCOVER>              ifmaxaddr 0 port 8 priority 0 path cost 0      member: en4 flags=3<LEARNING,DISCOVER>              ifmaxaddr 0 port 10 priority 0 path cost 0      nd6 options=201<PERFORMNUD,DAD>      media: <unknown type>      status: inactive  llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500      options=400<CHANNEL_IO>      ether 76:83:f6:f7:00:c7       inet6 fe80::7483:f6ff:fef7:c7%llw0 prefixlen 64 scopeid 0xd       nd6 options=201<PERFORMNUD,DAD>      media: autoselect      status: active  utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380      inet6 fe80::d16a:f386:528c:2238%utun1 prefixlen 64 scopeid 0xf       nd6 options=201<PERFORMNUD,DAD>  utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000      inet6 fe80::5ddc:1cc6:c5da:7b45%utun2 prefixlen 64 scopeid 0x10       nd6 options=201<PERFORMNUD,DAD>  utun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000      inet6 fe80::ce81:b1c:bd2c:69e%utun3 prefixlen 64 scopeid 0x11       nd6 options=201<PERFORMNUD,DAD>  utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280      inet 172.16.0.2 --> 172.16.0.2 netmask 0xffffffff       inet6 fe80::aede:48ff:fe00:1122%utun0 prefixlen 64 scopeid 0x12       inet6 fd01:5ca1:ab1e:82d7:cc89:cdfc:467d:b81e prefixlen 128       nd6 options=201<PERFORMNUD,DAD>  

I ran traceroute at https://www.whatsmyip.org/traceroute/ and below is the result

Traceroute

How can I transfer text conversations from my Mac to my iPhone?

Posted: 04 Dec 2021 02:21 PM PST

I accidentally deleted a text conversation off my iPhone, but still have the messages on my Mac. Is there any way I can transfer the text conversation from my Mac to my iPhone? I don't have it backed up on iCloud/iTunes which is why that's not an option.

Merge partition on external hard drive

Posted: 04 Dec 2021 09:38 AM PST

I wanted to format and merge 2 partitions on my external hard drive. I used the command :

diskutil erasevolume "Free Space" "" /dev/disks4s4.   

But now I lost 30go on 2TB and I can't merge the 30go I deleted.

So now it looks like this:

/dev/disk4 (external, physical):     #:                       TYPE NAME                    SIZE       IDENTIFIER     0:      GUID_partition_scheme                        *2.0 TB     disk4     1:                        EFI ⁨EFI⁩                     209.7 MB   disk4s1     2:                  Apple_HFS ⁨Maxtor⁩                  299.6 GB   disk4s2                      (free space)                         134.3 MB   -     3:       Microsoft Basic Data ⁨Donné⁩                   1.7 TB     disk4s3                      (free space)                         30.9 GB    -  

How can I merge the 30,9go to "Donné" which is in ExFat without losing data in "Donné"

diskutil no longer gives PID of dissenting process?

Posted: 04 Dec 2021 03:08 PM PST

I recently got a new mac and simultaneously upgraded from Mojave to Monterey.

Formerly, when I ran diskutil unmountDisk <disk here>, if there was a dissenting process, it would provide me with the PID of the dissenter, e.g.,

$ diskutil unmountDisk disk4  Unmount of disk4 failed: at least one volume could not be unmounted  Unmount was dissented by PID 293  

But now this useful information seems to be nowhere to be found, i.e., the result of the above command is now simply

$ diskutil unmountDisk disk4  Unmount of disk4 failed: at least one volume could not be unmounted  

I'm wondering if there is still any way to recover the PID of the dissenting process(es) programmatically, whether through diskutil or some other tool. Thanks!

Copy and Flatten directory contents with zsh

Posted: 04 Dec 2021 03:55 PM PST

I have a directory tree, where each subdirectory contains several different filetypes, I want to copy one particular filetype from each of the subdirectory, but I need to flatten the results, so that they all end up in one directory - only copying the newly added files and preserving permissions I have been using cp under zsh, with the following command line

cp -np **/*.ftype ../destination  

Which has worked brilliantly up until now. However, I've just reached a limit, I'm not sure if it's the number of directories in the source directory (currently 217) or the total number of directories / desired files, (somewhere between 2672 and 2690) but suddenly I'm getting the error argument list too long: cp

I was hoping to use something like cp -np [A-Ma-m]**/*.ftype ../destination and split the job into parts, but I get no matches found: [A-Ma-m]**/*.ftype even though I know I have directories starting with the these ranges.

I've also tried

find Base_dir/ -iname '*.ftype' | xargs -J% cp -np % ../destination   

but it seems to break the directories at each point that there's a space character in the name, so it copies nothing.

I'm sure I'm doing something silly wrong, but any help would be appreciated.

Time Machine without any external disks

Posted: 04 Dec 2021 11:36 AM PST

So, for various security reasons my company doesn't allow attaching backup drives or doing any external backups -- mostly we have cloud things and use git for backup. But Time Machine lets me use the SSD and local storage for backups.

enter image description here

So I'd like to use Time Machine to just let me revert to recent things (like a file I accidentally delete or similar). Is there any way to configure that?

Color management via VNC?

Posted: 04 Dec 2021 10:06 AM PST

We want to share a Mojave Client via VNC to a Grahic Agency. We ran about the question, how the color informations are transmitted. We normally do color management with a calibrated monitor locally.

I didn't find helpful information on how VCN transmits color information.

Can someone give me a hint on this?

Apple Business Manager and Apple Developer Program

Posted: 04 Dec 2021 05:01 PM PST

My team developed custom application for a company, and now we are trying to deploy the application to the employee owned devices. We decided to use the Apple Business Manager and some MDM solution for managing the devices.

1.Using the Apple Developer Program is the only way to make the application available on the Apple Business Manager account for further distribution, is this correct?

2.Once the application is distributed, from the Apple Developer Account to the Apple Business Manager, in case there are no updates needed for the application, there is no need to renew the Apple Developer account and pay the fee. Meaning the application will still be available for distribution and using on the Apple Business Manager Account. Is this also correct?

Fixing macOS Big Sur Finder SIDEBAR width prefs from command line?

Posted: 04 Dec 2021 06:06 PM PST

My default sidebar width in Big Sur is too small. While I can click/drag to make folders look wider, that fix only works for folders that I open. If any application calls a new window to open - say for picking a file to attach or upload - the default windows that open render differently and my sidebar shortcuts once again can't be fully seen.

When I drill down into those prefs via CLI to change them, there seem to be about a dozen places in the finder's preferences file that mention the sidebar width:

defaults read com.apple.finder | grep SidebarWidth          SidebarWidth = 174;          SidebarWidth = 221;          SidebarWidth = 221;      "FK_SidebarWidth" = 294;              SidebarWidthTenElevenOrLater = 217;      NSNavSidebarWidth = 120;          SidebarWidth = 178;      SidebarWidth = 260;          SidebarWidth = 135;                  SidebarWidth = 248;              SidebarWidth = 0;          SidebarWidth = 221;  

I'll spare sharing the entire Finder preferences file as it's ginormous, sooo: I have questions!

  1. Am I working with the right preference file?
  2. Which of these mentions is the right one?

Thanks, all.

For @pion, here's the full code pull you'd requested:

WindowState =     (          BROw,                  {              EntryPoint = "file://localhost/Volumes/Mac%20OS%20X%20Install%20DVD/";              ScrollPosition =             {                  h = 0;                  v = 0;              };              ShowToolbar = 0;              SidebarWidth = 0;              Target = "file://localhost/Volumes/Mac%20OS%20X%20Install%20DVD/";              ViewHeight = 420;              ViewStyle = icnv;              WindowBounds =             {                  bottom = 590;                  left = 597;                  right = 1122;                  top = 170;              };          }      );  

Kali Linux bootable USB not showing up in boot menu

Posted: 04 Dec 2021 02:06 PM PST

I am using a 2018 MBA running Big Sur

I wanted to create a persistent bootable USB with Kali Linux and have followed the exact instructions as given in this article: https://medium.com/macoclock/install-kali-linux-live-usb-with-persistence-using-macos-b1574c996491

However after powering on and pressing the option key, the bootable USB does not show up. This is partition containing the OS:

enter image description here

Here, it shows Bootable "No" but I don't know why. Also this partition is not mounted and Big Sur isn't allowing me to mount it as well and shows an error.

enter image description here

I am not sure what the issue is here and would be extremely grateful if someone helped out

Safari Developer Menu Disabled

Posted: 04 Dec 2021 12:36 PM PST

Why would my "Show Safari Develop menu" option be grayed out and not clickable? I've tried to find steps to enable it, but they all simply say click on the checkbox. Do I need to log in and change permission settings somewhere?

Safari Version 13.1.2 (14609.3.5.1.5) running on a Macbook Air macOS Mojave version 10.14.6 (18G6020)

enter image description here

How do I clear the application used to open a file, i.e. set it to none

Posted: 04 Dec 2021 03:04 PM PST

When you double click a file the finder will select an application to open it with. What it's going to do can be viewed in the file's info panel. You can change it there too. Viewing some files you'll notice that they report the selected application as None.

I want to set a file's preferred application to none. But how? The option of clearing the preference back to None is not offered in the Info panel.

The two files I want to do this to are part of a set of files N files, half with no extension and half with an extension for which no application has registered any interest. So presumably something set a preference for the two files. I want to remove that preference.

Maybe this is done with lsregister, but I think that's only handling the wildcards. Maybe this is done with an extended attribute on the file; but xattr doesn't show anything.

Change Mac Keyboard Identifier after keyboard replacement

Posted: 04 Dec 2021 10:13 AM PST

I replaced my MacBook Pro (Retina, 15-inch, Early 2013) keyboard. The U.S keyboard layout is mapped incorrectly now. It seems to be a problem with the keyboard identifier ID (maybe its Bundle ID). It looks like to be Japanese now but I need to change it back to english (I can't achieve this by changing input source and keyboard layout).

Time Machine Consolidation Schedule

Posted: 04 Dec 2021 11:39 AM PST

So Time Machine keeps hourly backups for a day and dailies for a week and weeks until disk full. The problem is that I am paranoid and concerned about discovering that I made changes to a file over time in the past and that I want the version that disappeared between weekly backups. (Yes, yes, I use git and other version control solutions for many things but I like to be paranoid and hate things I can't configure myself).

Is it possible to change how long hourly and daily backups are kept for and if so where?

For iTerm2, how do I make the working directory appear in the window title?

Posted: 04 Dec 2021 11:36 AM PST

I recently switched to iTerm2 from the default Terminal app and have a usability issue.

On Terminal, the working directory you are in shows up on the title bar along with the process and pixel size. For example, when you click on Window to switch between different Terminal sessions, you'd see: working_directory - process - pixel_size.

On iTerm2, unfortunately only the process shows in the title bar. So if I'm working in multiple iTerm2 windows on different directories, I can't easily differentiate which is which when I click on Window to choose one. I know I can easily switch between iTerm2 windows once I select one, but I'd like to identify exactly which window I want right away. (By the way, I use Witch, and Command-tabbing doesn't help either because here again only the process shows up on the list).

Any suggestions? I looked through all the preferences and didn't see anything. Creating profiles isn't exactly what I'm after--I'd just like to see the current working directory in iTerm2 window titles.

How to remove or disable a default keyboard layout?

Posted: 04 Dec 2021 09:36 AM PST

Is it possible to remove or disable one of OS X Lion's default keyboard layouts?

I'm using a custom keyboard layout, and now that I managed to set it as the system-wide default keyboard layout, I'd like to be able to uncheck or remove the built-in "U.S." keyboard layout that came with OS X. Here's a screenshot — note that the checkbox is disabled:

Screenshot

In OS X 10.9, this preference pane has been redesigned, but still there's no way to "remove" the built-in "U.S." keyboard layout:

Screenshot

Since I never use the U.S. keyboard layout, I'd love to get rid of it, i.e. remove it from the Input menu in the menu bar. How can I do this?


Update: Daniel's answer doesn't really answer this question, but it does offer some valuable information regarding this problem:

Mac OS X seems to require at least one keyboard layout that the system recognizes as a "Latin character" layout to be selected.

Assuming this is accurate information (thanks, Daniel!), the question could be rephrased as follows:

How to make OS X consider a custom keyboard to be a Latin character layout?


Update: I just came across something that might help.

How can I rebind Caps lock to delete/backspace?

Posted: 04 Dec 2021 09:32 AM PST

I tried using DoubleCommand, but it doesn't let you hold down caps lock, and pressing it causes caps lock light to be enabled/disabled. Ideally I want caps lock to never be enabled and for the key to behave exactly as though it were the delete key.

Another problem that DoubleCommand has is that every second press just toggles the light, and doesn't delete a character.

No comments:

Post a Comment