|
@@ -500,13 +500,17 @@ xop() {
|
500
|
500
|
# Common clipboard operations with fixnl() on top
|
501
|
501
|
#
|
502
|
502
|
local op=$1
|
503
|
|
- local file=${2:-/dev/stdin}
|
|
503
|
+ local arg=${2:-/dev/stdin}
|
504
|
504
|
case $op in
|
505
|
|
- oo) xclip -selection clipboard -o | fixnl ;;
|
506
|
|
- o) xclip -o | fixnl ;;
|
507
|
|
- ii) fixnl -c | xclip -selection clipboard -i ;;
|
508
|
|
- i) fixnl -c | xclip -i ;;
|
509
|
|
- esac <"$file"
|
|
505
|
+ aa) <<<"$arg" fixnl -c | xclip -selection clipboard -i ;;
|
|
506
|
+ a) <<<"$arg" fixnl -c | xclip -i ;;
|
|
507
|
+ ii) <"$arg" fixnl -c | xclip -selection clipboard -i ;;
|
|
508
|
+ i) <"$arg" fixnl -c | xclip -i ;;
|
|
509
|
+ oo) <"$arg" xclip -selection clipboard -o | fixnl ;;
|
|
510
|
+ o) <"$arg" xclip -o | fixnl ;;
|
|
511
|
+ *) return 2 ;;
|
|
512
|
+ esac
|
|
513
|
+}
|
510
|
514
|
xdl() {
|
511
|
515
|
#
|
512
|
516
|
# Download URL from primary clipboard to path $1
|
|
@@ -799,9 +803,10 @@ alias lsblk='lsblk -o +UUID,LABEL'
|
799
|
803
|
alias pstree='pstree -h'
|
800
|
804
|
alias virsh='virsh --connect qemu:///system'
|
801
|
805
|
alias wttr='curl -s "wttr.in/?1&n&q"'
|
802
|
|
-alias xaa='xclip -o | audit2allow'
|
803
|
806
|
alias xi='xop i'
|
804
|
807
|
alias xii='xop ii'
|
|
808
|
+alias xa='xop a'
|
|
809
|
+alias xaa='xop aa'
|
805
|
810
|
alias xo='xop o'
|
806
|
811
|
alias xoo='xop oo'
|
807
|
812
|
alias reboot="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl reboot"
|