快速切换 macOS 上截屏的阴影

2016 年 9 月 3 日
 sox

这只是几句简单的命令行:

关掉阴影:

$ defaults write com.apple.screencapture disable-shadow -bool false

开启阴影:

$ defaults write com.apple.screencapture disable-shadow -bool true

查看是不是开启了阴影:

$ defaults read com.apple.screencapture disable-shadow

每次更改之后你需要重启系统 UI:

$ killall SystemUIServer

NPM 包:

$ npm install -g toggle-screencapture-shadow-cli

$ toggle-screencapture-shadow

GitHub:

https://github.com/egoist/toggle-screencapture-shadow-cli

2964 次点击
所在节点    分享创造
12 条回复
ynyounuo
2016 年 9 月 3 日
……
我以为是用什么语言实现了模仿窗口阴影
/t/293920
viko16
2016 年 9 月 3 日
…这都能写三个库
sox
2016 年 9 月 4 日
@viko16 当你经常写的时候你会体会到好处
11
2016 年 9 月 4 日
这还要依赖个第三方库。。。
sox
2016 年 9 月 4 日
@11 唉,仔细看了再回复很难吗😂 那些库都是我写的
Sunyanzi
2016 年 9 月 4 日
这不是 shell 脚本该干的事吗 ...
sox
2016 年 9 月 4 日
@Sunyanzi 你可以用任何脚本, who cares
hronro
2016 年 9 月 4 日
这个不该是一个 alias 就能搞定嘛。。。😅
sox
2016 年 9 月 4 日
@hronro 你来写一下一个 alias 怎么切换状态
rayps
2016 年 9 月 4 日
这个不错,我跟楼主有一样的需求。有些人可能不能理解因为他们不需要。
rayps
2016 年 9 月 4 日
用 alias 也可以的,但是要设置一个 shadow-on 和 shadow-off ,另外我觉得 toggle-screencapture-shadow 太长了,所以我设置了一个 alias: tss
hronro
2016 年 9 月 4 日
@sox 那就写两个咯:)

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/303714

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX