Delete unused scripts

This commit is contained in:
Ivan Malison 2021-08-01 14:47:58 -06:00
parent 92573d69f0
commit 44d1254c06
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
10 changed files with 0 additions and 152 deletions

View File

@ -1,3 +0,0 @@
#!/usr/bin/env zsh
emacs_editor "$@"
return 0

View File

@ -1,5 +0,0 @@
#!/usr/bin/env sh
git config --bool branch.master.sync true
git config --bool branch.master.syncNewFiles true
git branch --set-upstream-to=origin/master

View File

@ -1,20 +0,0 @@
#!/usr/bin/env sh
enable_git_sync () {
[ -e "$1" ] || git clone $2 $1
unit_name=$(systemd-escape -p "$1" --template git-sync@.service)
echo $unit_name
cd $1
git config --bool branch.master.sync true
git config --bool branch.master.syncNewFiles true
git branch --set-upstream-to=origin/master
systemctl --user enable "$unit_name"
systemctl --user restart "$unit_name"
}
cd "$HOME/.config/systemd/user/"
find * -type f | grep -v git-sync | grep -E "\.service$" | xargs -I unitname sh -c 'echo unitname && systemctl --user enable unitname'
enable_git_sync "$HOME/org" git@bitbucket.org:ivanmalison/org.git
enable_git_sync "$HOME/config" git@bitbucket.org:ivanmalison/config.git
enable_git_sync "$HOME/.password-store" git@bitbucket.org:ivanmalison/pass.git

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
sudo umount /dev/sdb4
sudo ntfsfix /dev/sdb4
sudo mount -a

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
chromix-too focus "$1"

View File

@ -1,30 +0,0 @@
#!/usr/bin/env zsh
#!/usr/bin/env bash
echo "Syncing $2 at $1 with a default sync interval of $3"
# Initialize the directory
if [ ! -d "$1" ]; then
base="$(dirname $1)"
mkdir -p "$base"
cd "$base"
git clone "$2" "$(basename $1)"
fi
cd "$1"
while true; do
changedFile=$(
inotifywait ./ -r -e modify,move,create,delete \
--format "%w%f" --exclude '\.git' -t $3 2>/dev/null
)
if [ -z "$changedFile" ]
then
echo "Syncing due to timeout"
git-sync -n -s
else
echo "Syncing for: $changedFile"
{ git check-ignore "$changedFile" > /dev/null; } || git-sync -n -s
fi
done

View File

@ -1,2 +0,0 @@
#!/bin/bash
ipython -c "%run -d $@"

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
xdg-open "https://dfinity.atlassian.net/browse/M1-$(rofi -dmenu)"

View File

@ -1,33 +0,0 @@
is_osx && return
command_exists 'open' || command_exists 'xdg-open' && alias open='xdg-open'
pasink () {
pacmd list-sinks | grep '\* index' | get_cols ' -1'
}
pasink() {
pacmd stat | awk -F": " '/^Default sink name: /{print $2}'
}
pavolume () {
pacmd list-sinks |
awk '/^\s+name: /{indefault = $2 == "<'"$(pasink)"'>"}
/^\s+volume: / && indefault {print $5; exit}' | grep -Eo "[0-9]*"
}
paismuted () {
pactl list sinks | grep "$(pasink)" -A 10 | grep Mute | grep -q yes
}
pashowvolume () {
if paismuted; then
volnoti-show -m
else
volnoti-show "$(min $(pavolume) 100)"
fi
}
pashowinputbypid () {
get_sink_input_info.hs | jq 'select(.application_process_id == "'"$1"'")'
}

View File

@ -1,48 +0,0 @@
pb-kill-line () {
zle kill-line
echo -n $CUTBUFFER | oscopy
}
pb-kill-whole-line () {
zle kill-whole-line
echo -n $CUTBUFFER | oscopy
}
pb-backward-kill-word () {
zle backward-kill-word
echo -n $CUTBUFFER | oscopy
}
pb-kill-word () {
zle kill-word
echo -n $CUTBUFFER | oscopy
}
pb-kill-buffer () {
zle kill-buffer
echo -n $CUTBUFFER | oscopy
}
pb-copy-region-as-kill-deactivate-mark () {
zle copy-region-as-kill
zle set-mark-command -n -1
echo -n $CUTBUFFER | oscopy
}
pb-yank () {
CUTBUFFER=$(ospaste)
zle yank
}
zle -N pb-kill-line
zle -N pb-kill-whole-line
zle -N pb-backward-kill-word
zle -N pb-kill-word
zle -N pb-kill-buffer
zle -N pb-copy-region-as-kill-deactivate-mark
zle -N pb-yank
bindkey '^K' pb-kill-line
bindkey '^U' pb-kill-whole-line
bindkey '\ew' pb-copy-region-as-kill-deactivate-mark
bindkey '\eW' pb-copy-region-as-kill-deactivate-mark