This file contains hidden or 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
osascript -e 'tell application "system events" to keystroke return' | |
osascript -e 'tell application "system events" to keystroke "password"' | |
osascript -e 'tell application "system events" to keystroke return' |
This file contains hidden or 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 | |
high=$(xrandr | grep 'VGA-1 connected 1680x1050' | cut -c 1-25) | |
low=$(xrandr | grep 'VGA-1 connected 1440x900' | cut -c 1-24) | |
if [ "$high" == "VGA-1 connected 1680x1050" ]; then | |
xrandr -s 1440x900 #&& sed -i 's/^//' ~/.conky/conkyrc | |
fi | |
if [ "$low" == "VGA-1 connected 1440x900" ]; then |
This file contains hidden or 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
# To play a station from bookmarks: play_station group station | |
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.play_station Imported 'LBC UK' | |
#To stop playing: | |
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.stop | |
#To get player state i.e. song title info etc: | |
qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state |
This file contains hidden or 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
# set to yes if you want Conky to be forked in the background | |
background yes | |
# Use Xft? | |
use_xft yes | |
# Xft font when Xft is enabled | |
xftfont Trebuchet MS:size=11 | |
# Text alpha when using Xft |
This file contains hidden or 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
# set to yes if you want Conky to be forked in the background | |
background yes | |
# Use Xft? | |
use_xft yes | |
# Xft font when Xft is enabled | |
xftfont Trebuchet MS:size=11 | |
# Text alpha when using Xft |
This file contains hidden or 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
[ | |
{ | |
"group" : "Imported", | |
"image" : "", | |
"stations" : [ | |
{ | |
"image" : "~/.config/radiotray-ng/bookmark_icons/lbc", | |
"name" : "LBC UK", | |
"url" : "http://media-ice.musicradio.com/LBCUK.m3u" | |
}, |
This file contains hidden or 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
ffmpeg -v quiet -f x11grab -video_size 1920x1080 -i :0 -f alsa -i default -c:v libx264 -vf scale=1280x720 -b:v 1280K -minrate 2560K -maxrate 2560K -bufsize 1280K -c:a ac3 -b:a 384K -ac 2 -strict -2 "video.mkv" |
This file contains hidden or 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
# Increase or decrease audio via commandline by percent + or - | |
amixer -D pulse sset Master 5%- |
This file contains hidden or 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 | |
current=$(pacmd list-sinks |grep active) | |
#switch to speakers | |
if [[ $current == *"headphones"* ]]; then | |
pacmd set-sink-port 0 analog-output-lineout | |
amixer -c 0 sset "Auto-Mute Mode" Disabled | |
#switch to headphones | |
elif [[ $current == *"lineout"* ]]; then |
This file contains hidden or 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 | |
sudo ufw reset | |
sudo ufw default deny incoming | |
sudo ufw default deny outgoing | |
sudo ufw allow 1714:1764/udp | |
sudo ufw allow 1714:1764/tcp | |
sudo ufw allow 22/tcp | |
sudo ufw allow 5556/tcp | |
sudo ufw allow 5558/tcp |
OlderNewer