Giter Site home page Giter Site logo

floatdock--'s Introduction

FloatDock : Mac 悬浮 Dock

版本:2.4

  1. 增加了状态栏icon功能.

版本:1.5

  1. 创建多个浮动 dock, 可以右键增加 APP、把 APP 拖动到 dock 上、从收藏列表中添加 APP。
  2. 收藏 APP 并且为 APP 创建全局快捷键, 支持单个快捷键打开多个 APP。
  3. ⌘↑和⌘↓调整所有 dock 透明度,最低为0,背景透明度初始值为0.5。⌘F打开收藏页面。
  4. 生成 Mac APP 置顶代码,例如右键正在运行状态中的 Simulator,点击 ‘置顶LLDB’ ,然后打开terminal,输入 'lldb' 回车,粘贴回车,输入 Mac 密码回车。然后 Simulator 就可以置顶运行了。

代码如下:

lldb // 进入lldb 
process attach --pid 20993 // 获取指定的线程
e NSApplication $app = [NSApplication sharedApplication]; //获取APP
e NSWindow $win = $app.windows[0];// 获取指定的window
e [$win setLevel: 3];// 置顶window
exit // 退出lldb
y  // 确认

假如有多个正在运行的 Simulator window, 注意修改 ‘e NSWindow $win = $app.windows[0]; ’ 中的0对应指定的 window 序号即可。

  1. 暂时不支持 Mac10.14,手边没有测试机器。

使用截图

floatdock--'s People

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.