diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-23 21:26:58 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-23 21:26:58 +0100 |
commit | 748c5e83602c2ebdc5aeaa42f36ed8938ce30eaf (patch) | |
tree | d18ec40215a235ab158f848c73b06688b741ab98 | |
parent | a89353eeb8727e31baa6093817be37583a34c41e (diff) | |
download | dotfiles-748c5e83602c2ebdc5aeaa42f36ed8938ce30eaf.tar.gz dotfiles-748c5e83602c2ebdc5aeaa42f36ed8938ce30eaf.tar.bz2 dotfiles-748c5e83602c2ebdc5aeaa42f36ed8938ce30eaf.zip |
(Scripts)~Work on scripts a little bitt
-rw-r--r-- | Emoticons/.local/share/emoticons.txt (renamed from Scripts/.local/scripts/emoticons.txt) | 0 | ||||
-rwxr-xr-x | Scripts/.local/scripts/create_backup | 8 | ||||
-rwxr-xr-x | Scripts/.local/scripts/edit_scripts | 3 | ||||
-rwxr-xr-x | Scripts/.local/scripts/emoticons | 4 | ||||
-rwxr-xr-x | Scripts/.local/scripts/kxinit (renamed from Scripts/.local/scripts/rxinit) | 0 |
5 files changed, 3 insertions, 12 deletions
diff --git a/Scripts/.local/scripts/emoticons.txt b/Emoticons/.local/share/emoticons.txt index 279e8a9..279e8a9 100644 --- a/Scripts/.local/scripts/emoticons.txt +++ b/Emoticons/.local/share/emoticons.txt diff --git a/Scripts/.local/scripts/create_backup b/Scripts/.local/scripts/create_backup deleted file mode 100755 index 7a1309d..0000000 --- a/Scripts/.local/scripts/create_backup +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env sh - -set -xe - -dir=/media/hdd/backup -name="$(date +%F)-$(date +%T)-$(basename $1).tar.xz" - -XZ_OPT='-T0 -9' tar -Jcvf $dir/$name $1 diff --git a/Scripts/.local/scripts/edit_scripts b/Scripts/.local/scripts/edit_scripts deleted file mode 100755 index ab5f1c4..0000000 --- a/Scripts/.local/scripts/edit_scripts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -ls ~/.local/scripts/ | fzf --layout=reverse --height=20 | xargs $EDITOR $1 diff --git a/Scripts/.local/scripts/emoticons b/Scripts/.local/scripts/emoticons index 40337f4..12d7978 100755 --- a/Scripts/.local/scripts/emoticons +++ b/Scripts/.local/scripts/emoticons @@ -1,3 +1,5 @@ #!/bin/bash -cat $HOME/.local/scripts/emoticons.txt | dmenu -F -i | sed 's/\w+//gi' | awk '{print $1}' | xclip -selection clipboard +response=$(cat $HOME/.local/share/emoticons.txt | dmenu -F -i) +emoticon=$(echo $response | sed 's/\w+//gi' | awk '{print $1}') +echo $emoticon | tr -d '\n' | xclip -selection clipboard; diff --git a/Scripts/.local/scripts/rxinit b/Scripts/.local/scripts/kxinit index 2540641..2540641 100755 --- a/Scripts/.local/scripts/rxinit +++ b/Scripts/.local/scripts/kxinit |