-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliases
58 lines (43 loc) · 1.55 KB
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
function open () {
xdg-open "$@">/dev/null 2>&1
}
function ls () { command ls --color=auto --group-directories-first "$@"; }
function lsl () {
ls -la --color=always $1 | command grep "^d" && ls -la $1 | command grep -v "^d"
}
function diff () { command diff --color=auto "$@"; }
function grep () { command grep "$@" --color=always; }
function ip () { command ip -color=auto "$@"; }
function pc () { sudo pacman --color always "$@"; }
function pacman () { command pacman --color always "$@"; }
duk ()
{
sudo du -k "$@" | sort -n
}
function compress () {
ffmpeg \
-i "$1" \
-vcodec h264 \
-acodec mp2 \
COMPRESSED-$1;
}
function ytd () { youtube-dl -f bestvideo+bestaudio --merge-output-format mkv --all-subs --cookies ~/.scripts/youtube.com_cookies.txt "$1"; }
function record () {
ffmpeg -y \
-video_size 1920x1080 \
-framerate 24 -f x11grab -i :0.0 \
-f pulse -ac 2 -i default \
$HOME/Screenshots/screenrecord_`date '+%Y-%m-%d_%H-%M-%S'`.mp4 \
&> /tmp/screenrecord_`date '+%Y-%m-%d_%H-%M-%S'`.log
}
alias sysconf="sudo nvim /etc/nixos/configuration.nix"
alias search="nix search nixpkgs"
alias matrix="tmatrix -c default -C yellow -s 60 -f 0.2,0.3 -g 10,20 -l 1,50 -t \"hello, argus.\""
alias umatrix="unimatrix -a -c yellow -f -s 95 -l aAcCgGkknnrR"
alias vim="nvim"
alias cageff="cage \"/bin/firefox -p Unconfigured\""
alias awesomedoc="firefox /usr/share/doc/awesome/doc/index.html & disown"
alias batt="cat /sys/class/power_supply/BAT0/capacity"
alias nf="neofetch"
alias fm="ranger"