diff --git a/dotfiles/lib/bin/editor.sh b/dotfiles/lib/bin/editor.sh deleted file mode 100755 index 7c932eec..00000000 --- a/dotfiles/lib/bin/editor.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env zsh -emacs_editor "$@" -return 0 diff --git a/dotfiles/lib/bin/enable_git_sync.sh b/dotfiles/lib/bin/enable_git_sync.sh deleted file mode 100755 index 2e1ab9d1..00000000 --- a/dotfiles/lib/bin/enable_git_sync.sh +++ /dev/null @@ -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 diff --git a/dotfiles/lib/bin/enable_user_units.sh b/dotfiles/lib/bin/enable_user_units.sh deleted file mode 100755 index d46e6504..00000000 --- a/dotfiles/lib/bin/enable_user_units.sh +++ /dev/null @@ -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 diff --git a/dotfiles/lib/bin/fix_backups.sh b/dotfiles/lib/bin/fix_backups.sh deleted file mode 100755 index 770020df..00000000 --- a/dotfiles/lib/bin/fix_backups.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -sudo umount /dev/sdb4 -sudo ntfsfix /dev/sdb4 -sudo mount -a diff --git a/dotfiles/lib/bin/focus_tab_by_id.sh b/dotfiles/lib/bin/focus_tab_by_id.sh deleted file mode 100755 index 5e240b0f..00000000 --- a/dotfiles/lib/bin/focus_tab_by_id.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -chromix-too focus "$1" diff --git a/dotfiles/lib/bin/git_sync_directory.sh b/dotfiles/lib/bin/git_sync_directory.sh deleted file mode 100755 index 7a846395..00000000 --- a/dotfiles/lib/bin/git_sync_directory.sh +++ /dev/null @@ -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 diff --git a/dotfiles/lib/bin/ipdb b/dotfiles/lib/bin/ipdb deleted file mode 100755 index fb5bb631..00000000 --- a/dotfiles/lib/bin/ipdb +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -ipython -c "%run -d $@" \ No newline at end of file diff --git a/dotfiles/lib/bin/rofi_dfinity_jira.sh b/dotfiles/lib/bin/rofi_dfinity_jira.sh deleted file mode 100755 index f0a0f79f..00000000 --- a/dotfiles/lib/bin/rofi_dfinity_jira.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -xdg-open "https://dfinity.atlassian.net/browse/M1-$(rofi -dmenu)" - diff --git a/dotfiles/lib/shellenv/linux.sh b/dotfiles/lib/shellenv/linux.sh deleted file mode 100644 index 3fc459e6..00000000 --- a/dotfiles/lib/shellenv/linux.sh +++ /dev/null @@ -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"'")' -} diff --git a/dotfiles/lib/zsh/system-wide-clipboard.zsh b/dotfiles/lib/zsh/system-wide-clipboard.zsh deleted file mode 100644 index a4c18468..00000000 --- a/dotfiles/lib/zsh/system-wide-clipboard.zsh +++ /dev/null @@ -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 \ No newline at end of file