Skip to content

Commit

Permalink
desktop: auto commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kovetskiy committed Jul 2, 2020
1 parent f1f70c4 commit 69a17eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions bin/pmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

cd /var/cache/pacman/pkg/

pacman "${@}" --print --print-format "%l" \
| grep -E -o -e "(ht|f)tp[s]?://[^\']+" \
| aria2c --human-readable=true -c -s16 -k1M -x16 -j16 -t10 --connect-timeout=10 --file-allocation=none -i /dev/stdin

pacman "${@}"
2 changes: 1 addition & 1 deletion bin/telegram-desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ xd_class="telegram-desktop"

if [[ ! "$(xdotool search --classname "$xd_class")" ]]; then
/usr/bin/telegram-desktop &
xdotool search --sync --classname "$xd_class" windowfocus
xdotool search --onlyvisible --sync --classname "$xd_class" windowfocus
:kuake
else
:kuake
Expand Down
2 changes: 0 additions & 2 deletions vim.d/01-plugins.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ Plug 'w0rp/ale'
\ 'ruby': [function('ale#fixers#rufo#Fix')],
\ 'java': [function('ale#fixers#google_java_format#Fix')],
\ 'rust': ['rustfmt'],
\ 'sh': ['shfmt'],
\ 'bash': ['shfmt'],
\ 'pug': [function('ale#fixers#prettier#Fix')],
\ 'scss': [function('ale#fixers#prettier#Fix')],
\ '*': ['remove_trailing_lines', 'trim_whitespace']
Expand Down

0 comments on commit 69a17eb

Please sign in to comment.