Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Script that either brings the app to focus or launches it.
if [[ $# -eq 0 ]] ; then
echo 'Please provide an app name'
exit 0
fi
APP=$@
APP_PID=$(xdotool search --class $APP | tail -n1)

Keybase proof

I hereby claim:

  • I am takikoo on github.
  • I am tko (https://keybase.io/tko) on keybase.
  • I have a public key ASC__3YCX8IJfRNIVkXCzRjB-26VZzvK5Fiyy5UJPINsPAo

To claim this, I am signing this object:

@takikoo
takikoo / README.md
Last active February 26, 2024 07:10
Export bookmarks from Google Chrome with a batch script

Export chrome bookmarks

This is a script to export bookmarks from the web browser Google Chrome to a users home drive in a Windows environment with clients and domain controllers. Most of the script comes from this article

Instruction

  • Double-click on the bat-file.
  • Go the home drive on the users new computer.
  • Double-click on openChromeFolder.bat which will take you to the chrome directory on that machiene.
  • Copy the file Bookmarks to the newly opened window.