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 | |
if test $(date '+%H') -ge 22 || test $(date '+%H') -le 5; then | |
if expr $(date '+%M') % 2 && /usr/local/bin/brightness -l|grep -q 'active, awake, online'; then | |
cvol=$(osascript -e 'output volume of (get volume settings)') | |
#curb=$(brightness -l|tail -1|cut -d' ' -f4) | |
finishat=$(expr $(date '+%s') + 60) | |
while test $(date '+%s') -lt $finishat; do | |
#brightness 0 | |
osascript -e "set volume output volume 0" | |
pmset displaysleepnow |
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
// ==UserScript== | |
// @name Slack tab title asterisk remover | |
// @namespace http://roman.chernobelskiy/ | |
// @version 0.2 | |
// @description Permanently keeps the asterisk out of slack's tab title. | |
// @author Roman Chernobelskiy | |
// @match https://app.slack.com/* | |
// @grant none | |
// ==/UserScript== |