From 748c5e83602c2ebdc5aeaa42f36ed8938ce30eaf Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 23 Jun 2024 21:26:58 +0100 Subject: (Scripts)~Work on scripts a little bitt --- Scripts/.local/scripts/create_backup | 8 -------- Scripts/.local/scripts/edit_scripts | 3 --- Scripts/.local/scripts/emoticons | 4 +++- Scripts/.local/scripts/emoticons.txt | 29 ----------------------------- Scripts/.local/scripts/kxinit | 3 +++ Scripts/.local/scripts/rxinit | 3 --- 6 files changed, 6 insertions(+), 44 deletions(-) delete mode 100755 Scripts/.local/scripts/create_backup delete mode 100755 Scripts/.local/scripts/edit_scripts delete mode 100644 Scripts/.local/scripts/emoticons.txt create mode 100755 Scripts/.local/scripts/kxinit delete mode 100755 Scripts/.local/scripts/rxinit (limited to 'Scripts') 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/emoticons.txt b/Scripts/.local/scripts/emoticons.txt deleted file mode 100644 index 279e8a9..0000000 --- a/Scripts/.local/scripts/emoticons.txt +++ /dev/null @@ -1,29 +0,0 @@ -(>_<) troubled -(・_・;) sweat drop -(^.^)y-.oO smoking -(-_-)zzz sleeping -(^_-)-☆ wink -(°_°) confused -(Q_Q) crying -(T_T) crying -(-.-) shame -(=^・^=) animal cat -┌П┐(►˛◄’!) angry middle finger -( ≧Д≦) angry right eyes closed -(`Δ´)! angry simple -(´◣д◢`+) angry right -(͡°͜ʖ͡°) lenny -ಠ_ಠ angry tired -(╯°□°)╯┻━┻ table flip right -┻━┻(°□°) table flip left -┻━┻\(°□°)/┻━┻ table flip double -(ʕ •ᴥ•ʔ animal -(・⊝・) animal -=^● ⋏ ●^= animal -(ᵔᴥᵔ) animal -└(^o^ )X( ^o^)┘ happy celebratory -(✿◠‿◠) happy flower - (。◕‿◕。) happy smiling -(͡°ʖ̯͡°) wtf -╮(.❛ᴗ❛.)╭ wtf -(▀̿Ĺ̯▀̿̿) deal with it diff --git a/Scripts/.local/scripts/kxinit b/Scripts/.local/scripts/kxinit new file mode 100755 index 0000000..2540641 --- /dev/null +++ b/Scripts/.local/scripts/kxinit @@ -0,0 +1,3 @@ +#!/bin/bash + +killall xinit; diff --git a/Scripts/.local/scripts/rxinit b/Scripts/.local/scripts/rxinit deleted file mode 100755 index 2540641..0000000 --- a/Scripts/.local/scripts/rxinit +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -killall xinit; -- cgit v1.2.3-13-gbd6f