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

Compare commits

...

5 Commits

Author SHA1 Message Date
2050b1a5b7
aliases: add polybarc to edit & reload polybar 2019-04-24 10:49:01 +01:00
d6289c47ba
scripts/screenshot: fix putting capture in clipboard 2019-04-24 10:42:05 +01:00
6c19740e21
aliases: add grbom and gpoH 2019-04-08 14:14:18 +01:00
8b838aa771
aliases: remove -E from sudo alias
-E isn't compatible with -i and it doesn't seem to do a lot anyway
2019-04-08 14:14:00 +01:00
af65ab019e
i3: add $mod+i for type-paste from xclip 2019-04-08 14:11:55 +01:00
3 changed files with 6 additions and 2 deletions

View File

@ -149,6 +149,7 @@ bindsym $mod+$alt+space exec --no-startup-id ~/.config/i3/cycleaudio.py
bindsym $mod+numbersign exec "i3-sensible-terminal -e 'sh -c xclip\ -o\ |\ gpg\ --decrypt\ 2>&1\ \;\ $SHELL'"
bindsym $mod+r exec "bash -c 'pwgen -nc 32 1 | tee >(xargs notify-send Generated\ password\:) | xclip -i'"
bindsym $mod+g exec "LINK=$(gist -PRpc); notify-send -c transfer \\"<a href=\\\\"$LINK\\\\">$LINK</a>\\""
bindsym --release $mod+i exec sh -c 'sleep 0.5 && xdotool type --delay 400 "$(xclip -o -selection clipboard)"'
# Media player controls
bindsym XF86AudioPlay exec --no-startup-id playerctl -a play-pause

View File

@ -53,7 +53,7 @@ alias svim=sudoedit
# This will enable us to use aliases in sudo.
# (If alias finishes with a space or tab, the shell will check if the next command is also aliased.)
# Source: https://github.com/mayah/home/blob/master/.zsh/zshrc.d/alias.zsh
alias sudo='sudo -E '
alias sudo='sudo '
alias open=xdg-open
# Command rewrites
@ -140,11 +140,13 @@ alias gma="git merge --abort"
alias grb="git rebase"
alias grba="grb --abort"
alias grbc="grb --continue"
alias grbom="git rebase origin/master"
alias gf="git fetch"
alias gp="git push"
alias gpf="gp --force"
alias gpsu="git push --set-upstream"
alias gpoH="git push origin HEAD"
alias gpsuom="git push --set-upstream origin master"
alias gpall="git remote | xargs -L1 git push"
alias gl="git pull --rebase"
@ -282,6 +284,7 @@ alias xresources="$EDITOR $XDG_CONFIG_HOME/X11/xresources ; xrdb merge $XDG_CONF
alias sshc="$EDITOR ~/.ssh/config"
alias dotfiles="cd $DOTFILES"
alias i3c="$EDITOR $XDG_CONFIG_HOME/i3/config ; i3-msg restart"
alias polybarc="$EDITOR $XDG_CONFIG_HOME/polybar/config; killall -q polybar; while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done; exec polybar -r i3bar"
alias sf=screenfetch
alias nf=neofetch

View File

@ -40,7 +40,7 @@ fi
notif_id=$(send_notification "Screenshot uploading" "$FILENAME<br><br>The image is available in the clipboard immediately" || true)
# Add image to clipboard
xclip -i "$out_path" -selection primary -t image/png
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