1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Compare commits

..

No commits in common. "b52496bbb3513b3d2d6bd2e8dad99939066c3e91" and "ee9af5eecaa43dc00a0021db0c775a224e5db654" have entirely different histories.

3 changed files with 11 additions and 18 deletions

View File

@ -5,7 +5,7 @@ After=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/solaar --debug --restart-on-wake-up --window=hide
ExecStart=/usr/bin/solaar --restart-on-wake-up -d
KillMode=process
Restart=on-failure

13
aliases
View File

@ -130,12 +130,13 @@ alias gau="git add -u"
alias gaN="git add -N"
alias gaa="ga -A"
alias grm="git rm"
alias gc="git commit -s"
alias gcm="git commit -s -m"
alias gca="git commit -s --amend --date=\"$(date -R)\""
alias gcn="git commit -s --no-edit"
alias gcan="gca -s --no-edit"
alias gcam="gca -s -m"
alias gc="git commit"
alias gcm="gc -m"
gcmst() { git stash -u -k && git commit -m "$1" && git stash pop; }
alias gca="git commit --amend --date=\"$(date -R)\""
alias gcn="git commit --no-edit"
alias gcan="gca --no-edit"
alias gcam="gca -m"
alias gst="git status"
alias gm="git merge"

View File

@ -43,9 +43,6 @@ args=(-g "$geom")
if xwininfo -id "$winid" | grep -qw root; then
isroot=1
args+=(-i "$winid")
elif [ "$1" == "--active" -o "$1" == "-a" ]; then
args+=(-i "$(xdotool getactivewindow)")
shift
fi
# Take the screenshot and save it
@ -60,15 +57,10 @@ if [ "$isroot" != "1" ]; then
convert "$out_path" \( +clone -background black -alpha set -channel Alpha -evaluate set 60% -shadow 100x16+0+0 \) +swap -background none -layers merge +repage "$out_path" || :
fi
if [ "$1" == "--clip" -o "$1" == "-c" ]; then
# Add image to clipboard
xclip -i "$out_path" -selection clipboard -t image/png
send_notification "Screenshot captured" "$FILENAME<br><br>The image is available in the clipboard"
notif_id=$(send_notification "Screenshot uploading" "$FILENAME<br><br>The image is available in the clipboard immediately" || true)
exit 0
fi
notif_id=$(send_notification "Screenshot uploading" "$FILENAME" || true)
# Add image to clipboard
xclip -i "$out_path" -selection clipboard -t image/png
# 'Upload' the screenshot
if ! error=$(scp -C $out_path $SCP_HOST:$SCP_PATH 2>&1); then