~yerinalexey/dotfiles

59fedfece783eb3f0235ee6e5581b7ef3a66afe8 — Alexey Yerin 8 months ago 83f11de
scripts: refactor

Home my desktop doesn't break
7 files changed, 4 insertions(+), 5 deletions(-)

R scripts/{sway/emoji-menu => emoji-menu}
R scripts/{sway/mpd-menu => mpd-menu}
R scripts/{sway/pass-menu => pass-menu}
R scripts/{sway/player-menu => player-menu}
R scripts/{sway/sht => sht}
R scripts/{spiral-split => sway/spiral-split}
M zsh/profile.zsh
R scripts/sway/emoji-menu => scripts/emoji-menu +1 -1
@@ 23,4 23,4 @@ code="$(printf "%s" "$choice" | awk -F'; ' '{ print $2 }')"
wl-copy "$emoji"
wl-copy -p "$code"

notify-send -t 5000 "Sway" "$emoji copied to clipboard\n$code copied to primary"
notify-send -t 5000 "Emoji" "$emoji copied to clipboard\n$code copied to primary"

R scripts/sway/mpd-menu => scripts/mpd-menu +0 -0
R scripts/sway/pass-menu => scripts/pass-menu +1 -1
@@ 15,7 15,7 @@ selected_short="$(basename "$selected")"
password="$(pass show "$selected")"

wl-copy "$password"
notify-send -t 20000 "Sway" "Password for $selected_short is copied. You have 20 seconds to paste it"
notify-send -t 20000 "Password manager" "Password for $selected_short is copied. You have 20 seconds to paste it"

# Clear clipboard after 20 seconds
sleep 20

R scripts/sway/player-menu => scripts/player-menu +0 -0
R scripts/sway/sht => scripts/sht +2 -2
@@ 20,7 20,7 @@ pick_color() {
	preview="$(mktemp /tmp/color-preview-XXXX.png)"
	convert -size 50x50 xc:"$color" "$preview"

	notify-send -t 5000 "Sway" "$color copied!" --icon="$preview"
	notify-send -t 5000 "Screenshot" "$color copied!" --icon="$preview"

	rm "$preview"
}


@@ 53,4 53,4 @@ else
	grim "$SCREENSHOT_PATH"
fi

notify-send "Sway" "Screenshot has been taken"
notify-send "Screenshot" "Screenshot has been taken"

R scripts/spiral-split => scripts/sway/spiral-split +0 -0
M zsh/profile.zsh => zsh/profile.zsh +0 -1
@@ 44,7 44,6 @@ export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"

# Binaries and stuff
export PATH="$XDG_CONFIG_HOME/scripts:$PATH"
export PATH="$PATH:$XDG_CONFIG_HOME/scripts/sway"
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$CARGO_HOME/bin"