Skip to content

Instantly share code, notes, and snippets.

View zemax's full-sized avatar

Maxime Cousinou zemax

View GitHub Profile
@zemax
zemax / pseudo-dark-mode.sh
Last active December 17, 2019 15:44
macOS : Dark mode only for bar
# from https://apple.stackexchange.com/questions/337478/how-to-get-dark-menu-bar-and-dock-in-mojave-light-mode
# 1. Mode clair
defaults write -g com.apple.notificationcenterui -bool Yes
defaults write -g NSRequiresAquaSystemAppearance -bool Yes
# 2. Logout
# 3. Mode dark
@zemax
zemax / add-space.sh
Last active December 17, 2019 08:27
macOS : Add space in macOS dock
# from https://www.imore.com/add-space-your-mac-dock
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
/**
* Copy the text content of the active layer in the clipboard
* Author: Maxime Cousinou
*
* Installation:
* - Copy the script in your Photoshop/Presets/Scripts directory
* - Create an Action with a keyboard shorcut for quick access (cf http://www.tranberry.com/photoshop/photoshop_scripting/tips/script_shortcut.html)
**/
var activeLayer = app.activeDocument.activeLayer;
@zemax
zemax / WindowsMove.ahk
Last active July 2, 2024 17:48
An AutoHotKey script to move & resize windows screen when pressing Win + Alt + Left or Win + Alt + Right. Window moves from 33% Left > 50% Left > 66% Left > 66% Right > 50% Right > 33% Right
;********************************************************************************
; Move Windows by 1/3
;********************************************************************************
MoveCycle(Add) {
static SizeCycle = 0
SizeCycle := Mod(SizeCycle + Add, 6)
if (SizeCycle < 0) {
SizeCycle := SizeCycle + 6
}