aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-11-20 05:52:22 +0000
committerAkshay <[email protected]>2020-11-20 05:52:22 +0000
commitcbb6464273a7d074e0103c3f6b98a99206d9ca3d (patch)
treeeede42271e7ef59096c335f4eb2f5d364488f3d7
parent54062528662142f27cb039992fe8e36e30da87db (diff)
remove outdated scripts
-rwxr-xr-xscripts/scripts/2bws.sh40
-rwxr-xr-xscripts/scripts/doot53
-rwxr-xr-xscripts/scripts/get_xres3
-rwxr-xr-xscripts/scripts/music.sh16
-rwxr-xr-xscripts/scripts/tmux-fzf.sh4
-rwxr-xr-xscripts/scripts/zatheme.sh37
6 files changed, 2 insertions, 151 deletions
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 @@
1#!/usr/bin/env bash
2# display workspace status
3# requires wmctrl
4
5# get the current workspace
6ws=$( xprop -root _NET_CURRENT_DESKTOP | sed -e 's/_NET_CURRENT_DESKTOP(CARDINAL) = //' )
7
8# icons
9CURRENT=●
10OCCUPIED=●
11UNOCCUPIED=·
12
13# colors
14current="$( ~/scripts/get_xres color5 )"
15occupied="$( ~/scripts/get_xres color8 )"
16unoccupied="$( ~/scripts/get_xres color8 )"
17
18# print workspaces to stdout
19draw() {
20 for i in {0..5}; do
21 # get the number of windows in each workspace
22 windows=$( wmctrl -l | cut -d ' ' -f3 | grep $i | wc -l )
23
24
25 if [[ $i -eq $ws ]]
26 then
27 # current workspace
28 echo -ne "%{F$current} $CURRENT "
29 else
30 if [[ $windows -eq 0 ]]
31 then
32 echo -ne "%{F$unoccupied} $UNOCCUPIED "
33 else
34 echo -ne "%{F$occupied} $OCCUPIED "
35 fi
36 fi
37 done
38}
39
40draw
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 @@
1#!/usr/bin/env bash
2red="\e[31m"
3grn="\e[32m"
4ylw="\e[33m"
5cyn="\e[36m"
6blu="\e[34m"
7prp="\e[35m"
8bprp="\e[35;1m"
9gry="\e[94m"
10rst="\e[0m"
11
12COL=$(tput cols)
13ROW=$(tput lines)
14((PADY = ROW / 2 - 1 - ${#ENTS[@]} / 2))
15((PADX = COL / 2 - LEN / 2))
16
17for ((i = 0; i < PADX; ++i)); do
18 PADC="$PADC "
19done
20
21for ((i = 0; i < PADY; ++i)); do
22 PADR="$PADR\n"
23done
24clear
25printf "%b" "$PADR"
26
27echo -ne "$ylw$PADC"
28echo -e ' _/_'
29echo -n "$PADC"
30echo -n '/'
31echo -ne "$rst"
32echo -n '`▅_▅'\'''
33echo -ne "$ylw"
34echo '\'
35echo -n "$PADC"
36echo -n '\'
37echo -ne "$prp"
38echo -ne ' vwv '
39echo -ne "$ylw"
40echo -e '/'
41echo -n "$PADC"
42echo -n ' `---'\'''
43
44echo -e "$rst"
45
46for ((i = 0; i < PADX - 5; ++i)); do
47 PADT="$PADT "
48done
49
50echo "$PADT$USER @ $HOSTNAME"
51echo "$PADT$(uptime -p)"
52
53read 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 @@
1#!/usr/bin/env bash
2
3xrdb -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 @@
1#!/usr/bin/env bash
2
3while getopts abt options
4do
5 case $options in
6 a)
7 cmus-remote -Q | grep tag\ artist\ | sed 's/tag artist //'
8 ;;
9 b)
10 cmus-remote -Q | grep tag\ album\ | sed 's/tag album //'
11 ;;
12 t)
13 cmus-remote -Q | grep tag\ title\ | sed 's/tag title //'
14 ;;
15 esac
16done
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() {
5} 5}
6 6
7function __list_to_fzf() { 7function __list_to_fzf() {
8 tmux ls -F "#{session_name}" | __fzf 8 tmux ls -F "#{session_name}" | fzf
9} 9}
10 10
11if [ -n "$TMUX" ]; then 11if [ -n "$TMUX" ]; then
12 tmux switch-client -t "$(__list_to_fzf)" 12 tmux switch-client -t "$(__list_to_fzf)"
13else 13else
14 tmux a -dt "$(tmux ls -F "#{session_name}" | __fzf)" 14 tmux a -dt "$(tmux ls -F "#{session_name}" | fzf)"
15fi 15fi
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 @@
1#!/usr/bin/env bash
2
3
4echo 'set incremental-search true
5
6set recolor "true"
7
8set default-bg "'$( get_xres color0 )'"
9set default-fg "'$( get_xres color7 )'"
10
11set completion-bg "'$( get_xres color0 )'"
12set completion-fg "'$( get_xres color7 )'"
13set completion-highlight-bg "'$( get_xres color5 )'"
14set completion-highlight-fg "'$( get_xres color7 )'"
15
16set statusbar-bg "'$( get_xres color0 )'"
17set statusbar-fg "'$( get_xres color7 )'"
18
19set inputbar-bg "'$( get_xres color0 )'"
20set inputbar-fg "'$( get_xres color7 )'"
21
22set recolor-darkcolor "'$( get_xres color7 )'"
23set recolor-lightcolor "'$( get_xres color0 )'"
24
25set window-height "800"
26set window-width "600"
27
28set adjust-open "width"
29set smooth-scroll true
30set statusbar-home-tilde "true"
31set statusbar-h-padding "50"
32set statusbar-v-padding "50"
33set guioptions "s"
34
35set font "Input 10"
36
37' > ~/.config/zathura/zathurarc