From cbb6464273a7d074e0103c3f6b98a99206d9ca3d Mon Sep 17 00:00:00 2001 From: Akshay Date: Fri, 20 Nov 2020 11:22:22 +0530 Subject: remove outdated scripts --- scripts/scripts/2bws.sh | 40 ---------------------------------- scripts/scripts/doot | 53 --------------------------------------------- scripts/scripts/get_xres | 3 --- scripts/scripts/music.sh | 16 -------------- scripts/scripts/tmux-fzf.sh | 4 ++-- scripts/scripts/zatheme.sh | 37 ------------------------------- 6 files changed, 2 insertions(+), 151 deletions(-) delete mode 100755 scripts/scripts/2bws.sh delete mode 100755 scripts/scripts/doot delete mode 100755 scripts/scripts/get_xres delete mode 100755 scripts/scripts/music.sh delete mode 100755 scripts/scripts/zatheme.sh diff --git a/scripts/scripts/2bws.sh b/scripts/scripts/2bws.sh deleted file mode 100755 index 6f81baa..0000000 --- a/scripts/scripts/2bws.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash -# display workspace status -# requires wmctrl - -# get the current workspace -ws=$( xprop -root _NET_CURRENT_DESKTOP | sed -e 's/_NET_CURRENT_DESKTOP(CARDINAL) = //' ) - -# icons -CURRENT=● -OCCUPIED=● -UNOCCUPIED=· - -# colors -current="$( ~/scripts/get_xres color5 )" -occupied="$( ~/scripts/get_xres color8 )" -unoccupied="$( ~/scripts/get_xres color8 )" - -# print workspaces to stdout -draw() { - for i in {0..5}; do - # get the number of windows in each workspace - windows=$( wmctrl -l | cut -d ' ' -f3 | grep $i | wc -l ) - - - if [[ $i -eq $ws ]] - then - # current workspace - echo -ne "%{F$current} $CURRENT " - else - if [[ $windows -eq 0 ]] - then - echo -ne "%{F$unoccupied} $UNOCCUPIED " - else - echo -ne "%{F$occupied} $OCCUPIED " - fi - fi - done -} - -draw diff --git a/scripts/scripts/doot b/scripts/scripts/doot deleted file mode 100755 index defb363..0000000 --- a/scripts/scripts/doot +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash -red="\e[31m" -grn="\e[32m" -ylw="\e[33m" -cyn="\e[36m" -blu="\e[34m" -prp="\e[35m" -bprp="\e[35;1m" -gry="\e[94m" -rst="\e[0m" - -COL=$(tput cols) -ROW=$(tput lines) -((PADY = ROW / 2 - 1 - ${#ENTS[@]} / 2)) -((PADX = COL / 2 - LEN / 2)) - -for ((i = 0; i < PADX; ++i)); do - PADC="$PADC " -done - -for ((i = 0; i < PADY; ++i)); do - PADR="$PADR\n" -done -clear -printf "%b" "$PADR" - -echo -ne "$ylw$PADC" -echo -e ' _/_' -echo -n "$PADC" -echo -n '/' -echo -ne "$rst" -echo -n '`▅_▅'\''' -echo -ne "$ylw" -echo '\' -echo -n "$PADC" -echo -n '\' -echo -ne "$prp" -echo -ne ' vwv ' -echo -ne "$ylw" -echo -e '/' -echo -n "$PADC" -echo -n ' `---'\''' - -echo -e "$rst" - -for ((i = 0; i < PADX - 5; ++i)); do - PADT="$PADT " -done - -echo "$PADT$USER @ $HOSTNAME" -echo "$PADT$(uptime -p)" - -read x diff --git a/scripts/scripts/get_xres b/scripts/scripts/get_xres deleted file mode 100755 index 9276ef4..0000000 --- a/scripts/scripts/get_xres +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -xrdb -query | grep -w $1 | awk '{print $2}' diff --git a/scripts/scripts/music.sh b/scripts/scripts/music.sh deleted file mode 100755 index 1de3bc0..0000000 --- a/scripts/scripts/music.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -while getopts abt options -do - case $options in - a) - cmus-remote -Q | grep tag\ artist\ | sed 's/tag artist //' - ;; - b) - cmus-remote -Q | grep tag\ album\ | sed 's/tag album //' - ;; - t) - cmus-remote -Q | grep tag\ title\ | sed 's/tag title //' - ;; - esac -done diff --git a/scripts/scripts/tmux-fzf.sh b/scripts/scripts/tmux-fzf.sh index 9caa7ea..cda0ec5 100755 --- a/scripts/scripts/tmux-fzf.sh +++ b/scripts/scripts/tmux-fzf.sh @@ -5,11 +5,11 @@ function __fzf() { } function __list_to_fzf() { - tmux ls -F "#{session_name}" | __fzf + tmux ls -F "#{session_name}" | fzf } if [ -n "$TMUX" ]; then tmux switch-client -t "$(__list_to_fzf)" else - tmux a -dt "$(tmux ls -F "#{session_name}" | __fzf)" + tmux a -dt "$(tmux ls -F "#{session_name}" | fzf)" fi diff --git a/scripts/scripts/zatheme.sh b/scripts/scripts/zatheme.sh deleted file mode 100755 index 4cda119..0000000 --- a/scripts/scripts/zatheme.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - - -echo 'set incremental-search true - -set recolor "true" - -set default-bg "'$( get_xres color0 )'" -set default-fg "'$( get_xres color7 )'" - -set completion-bg "'$( get_xres color0 )'" -set completion-fg "'$( get_xres color7 )'" -set completion-highlight-bg "'$( get_xres color5 )'" -set completion-highlight-fg "'$( get_xres color7 )'" - -set statusbar-bg "'$( get_xres color0 )'" -set statusbar-fg "'$( get_xres color7 )'" - -set inputbar-bg "'$( get_xres color0 )'" -set inputbar-fg "'$( get_xres color7 )'" - -set recolor-darkcolor "'$( get_xres color7 )'" -set recolor-lightcolor "'$( get_xres color0 )'" - -set window-height "800" -set window-width "600" - -set adjust-open "width" -set smooth-scroll true -set statusbar-home-tilde "true" -set statusbar-h-padding "50" -set statusbar-v-padding "50" -set guioptions "s" - -set font "Input 10" - -' > ~/.config/zathura/zathurarc -- cgit v1.2.3