diff options
author | Akshay <[email protected]> | 2020-11-20 05:52:22 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-11-20 05:52:22 +0000 |
commit | cbb6464273a7d074e0103c3f6b98a99206d9ca3d (patch) | |
tree | eede42271e7ef59096c335f4eb2f5d364488f3d7 | |
parent | 54062528662142f27cb039992fe8e36e30da87db (diff) |
remove outdated scripts
-rwxr-xr-x | scripts/scripts/2bws.sh | 40 | ||||
-rwxr-xr-x | scripts/scripts/doot | 53 | ||||
-rwxr-xr-x | scripts/scripts/get_xres | 3 | ||||
-rwxr-xr-x | scripts/scripts/music.sh | 16 | ||||
-rwxr-xr-x | scripts/scripts/tmux-fzf.sh | 4 | ||||
-rwxr-xr-x | scripts/scripts/zatheme.sh | 37 |
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 | ||
6 | ws=$( xprop -root _NET_CURRENT_DESKTOP | sed -e 's/_NET_CURRENT_DESKTOP(CARDINAL) = //' ) | ||
7 | |||
8 | # icons | ||
9 | CURRENT=● | ||
10 | OCCUPIED=● | ||
11 | UNOCCUPIED=· | ||
12 | |||
13 | # colors | ||
14 | current="$( ~/scripts/get_xres color5 )" | ||
15 | occupied="$( ~/scripts/get_xres color8 )" | ||
16 | unoccupied="$( ~/scripts/get_xres color8 )" | ||
17 | |||
18 | # print workspaces to stdout | ||
19 | draw() { | ||
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 | |||
40 | 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 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | red="\e[31m" | ||
3 | grn="\e[32m" | ||
4 | ylw="\e[33m" | ||
5 | cyn="\e[36m" | ||
6 | blu="\e[34m" | ||
7 | prp="\e[35m" | ||
8 | bprp="\e[35;1m" | ||
9 | gry="\e[94m" | ||
10 | rst="\e[0m" | ||
11 | |||
12 | COL=$(tput cols) | ||
13 | ROW=$(tput lines) | ||
14 | ((PADY = ROW / 2 - 1 - ${#ENTS[@]} / 2)) | ||
15 | ((PADX = COL / 2 - LEN / 2)) | ||
16 | |||
17 | for ((i = 0; i < PADX; ++i)); do | ||
18 | PADC="$PADC " | ||
19 | done | ||
20 | |||
21 | for ((i = 0; i < PADY; ++i)); do | ||
22 | PADR="$PADR\n" | ||
23 | done | ||
24 | clear | ||
25 | printf "%b" "$PADR" | ||
26 | |||
27 | echo -ne "$ylw$PADC" | ||
28 | echo -e ' _/_' | ||
29 | echo -n "$PADC" | ||
30 | echo -n '/' | ||
31 | echo -ne "$rst" | ||
32 | echo -n '`▅_▅'\''' | ||
33 | echo -ne "$ylw" | ||
34 | echo '\' | ||
35 | echo -n "$PADC" | ||
36 | echo -n '\' | ||
37 | echo -ne "$prp" | ||
38 | echo -ne ' vwv ' | ||
39 | echo -ne "$ylw" | ||
40 | echo -e '/' | ||
41 | echo -n "$PADC" | ||
42 | echo -n ' `---'\''' | ||
43 | |||
44 | echo -e "$rst" | ||
45 | |||
46 | for ((i = 0; i < PADX - 5; ++i)); do | ||
47 | PADT="$PADT " | ||
48 | done | ||
49 | |||
50 | echo "$PADT$USER @ $HOSTNAME" | ||
51 | echo "$PADT$(uptime -p)" | ||
52 | |||
53 | 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 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | 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 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | while getopts abt options | ||
4 | do | ||
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 | ||
16 | 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() { | |||
5 | } | 5 | } |
6 | 6 | ||
7 | function __list_to_fzf() { | 7 | function __list_to_fzf() { |
8 | tmux ls -F "#{session_name}" | __fzf | 8 | tmux ls -F "#{session_name}" | fzf |
9 | } | 9 | } |
10 | 10 | ||
11 | if [ -n "$TMUX" ]; then | 11 | if [ -n "$TMUX" ]; then |
12 | tmux switch-client -t "$(__list_to_fzf)" | 12 | tmux switch-client -t "$(__list_to_fzf)" |
13 | else | 13 | else |
14 | tmux a -dt "$(tmux ls -F "#{session_name}" | __fzf)" | 14 | tmux a -dt "$(tmux ls -F "#{session_name}" | fzf)" |
15 | fi | 15 | 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 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | |||
4 | echo 'set incremental-search true | ||
5 | |||
6 | set recolor "true" | ||
7 | |||
8 | set default-bg "'$( get_xres color0 )'" | ||
9 | set default-fg "'$( get_xres color7 )'" | ||
10 | |||
11 | set completion-bg "'$( get_xres color0 )'" | ||
12 | set completion-fg "'$( get_xres color7 )'" | ||
13 | set completion-highlight-bg "'$( get_xres color5 )'" | ||
14 | set completion-highlight-fg "'$( get_xres color7 )'" | ||
15 | |||
16 | set statusbar-bg "'$( get_xres color0 )'" | ||
17 | set statusbar-fg "'$( get_xres color7 )'" | ||
18 | |||
19 | set inputbar-bg "'$( get_xres color0 )'" | ||
20 | set inputbar-fg "'$( get_xres color7 )'" | ||
21 | |||
22 | set recolor-darkcolor "'$( get_xres color7 )'" | ||
23 | set recolor-lightcolor "'$( get_xres color0 )'" | ||
24 | |||
25 | set window-height "800" | ||
26 | set window-width "600" | ||
27 | |||
28 | set adjust-open "width" | ||
29 | set smooth-scroll true | ||
30 | set statusbar-home-tilde "true" | ||
31 | set statusbar-h-padding "50" | ||
32 | set statusbar-v-padding "50" | ||
33 | set guioptions "s" | ||
34 | |||
35 | set font "Input 10" | ||
36 | |||
37 | ' > ~/.config/zathura/zathurarc | ||