This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on alacritty_win() | |
set _running to (application "Alacritty" is running) | |
tell application "Alacritty" to activate | |
tell application "System Events" | |
repeat while (name of first application process whose frontmost is true) is not "alacritty" | |
delay 0.05 | |
end repeat | |
set _alacritty to first application process whose frontmost is true | |
-- If Alacritty was running, create a new window to run command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
# vim: ft=python | |
# | |
# tag.py | |
# | |
# Copyright (c) 2015 Dean Jackson <deanishe@deanishe.net> | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
# | |
# Copyright (c) 2016 Dean Jackson <deanishe@deanishe.net> | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# | |
# Created on 2016-12-19 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
pkgs=() | |
packages() { | |
while read ln; do | |
echo -n "$( echo $ln | cut -d " " -f2 ) " | |
done | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ObjC.import('stdlib') | |
ObjC.import('CoreGraphics'); | |
// Move mouse cursor to specified position | |
function moveMouse(x, y) { | |
var pos = $.CGPointMake(x, y); | |
var event = $.CGEventCreateMouseEvent(null, $.kCGEventMouseMoved, pos, $.kCGMouseButtonLeft); | |
$.CGEventPost($.kCGHIDEventTap, event); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# encoding: utf-8 | |
# | |
# rename_workflow | |
# | |
# Copyright (c) 2015 Dean Jackson <deanishe@deanishe.net> | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# | |
# Created on 2015-08-02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# encoding: utf-8 | |
# | |
# Copyright © 2015 deanishe@deanishe.net | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# | |
# Created on 2015-10-10 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# encoding: utf-8 | |
# | |
# Copyright © 2015 Dean Jackson <deanishe@deanishe.net> | |
# | |
# MIT Licence. See http://opensource.org/licenses/MIT | |
# | |
# Created on 2015-04-20 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Instead of watching YouTube videos in your browser, stream them in | |
# QuickTime Player (or VLC/MPlayer etc.) | |
# | |
# youtube-dl supports hundreds of websites, so it will probably work | |
# for a lot of video sites. | |
# See https://rg3.github.io/youtube-dl/ | |
# Get URL of current tab in browser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Wrapper for the toggle_alfred_theme.py script at | |
# https://gist.github.com/deanishe/ce442c3a768adedc9c39 | |
# (where this script also comes from) | |
# | |
# The purpose of this wrapper is to enable you to update the Python script | |
# without having to edit the script to change the settings each time. You keep | |
# them in here instead, and this script should hopefully prove dumb enough | |
# to require little updating... |
NewerOlder