dotfiles-x118839ac5
scripts changes
+34 −17
8 files changed
- M .config/ncmpcpp/config +2 −1
- M .config/newsboat/config +1 −1
- M .config/newsboat/urls +1 −0
- M .local/bin/maimshot +3 −3
- M .local/bin/statusbar/sb-clock +1 −1
- M .local/bin/statusbar/sb-memory +3 −1
- M .local/bin/waldl +10 −10
- M .local/share/vocab/words.txt +13 −0
| @@ -17,7 +17,7 @@ media_library_primary_tag = album_artist | |||
| 17 | 17 | media_library_albums_split_by_date = no | |
| 18 | 18 | startup_screen = "media_library" | |
| 19 | 19 | jump_to_now_playing_song_at_start = "yes" | |
| 20 | − | display_volume_level = yes | |
| 20 | + | display_volume_level = yes | |
| 21 | 21 | ignore_leading_the = yes | |
| 22 | 22 | external_editor = nvim | |
| 23 | 23 | use_console_editor = yes | |
| @@ -31,6 +31,7 @@ progressbar_elapsed_color = blue:b | |||
| 31 | 31 | statusbar_color = red | |
| 32 | 32 | volume_color = "green" | |
| 33 | 33 | statusbar_time_color = cyan:b | |
| 34 | + | execute_on_song_change="pkill -RTMIN+11 dwmblocks" | |
| 34 | 35 | ||
| 35 | 36 | ## Selected tracks ## | |
| 36 | 37 | selected_item_prefix = "* " | |
| @@ -27,7 +27,7 @@ bind-key L next-feed | |||
| 27 | 27 | bind-key c toggle-show-read-feeds | |
| 28 | 28 | ||
| 29 | 29 | color background default default | |
| 30 | − | color listnormal cyan default | |
| 30 | + | color listnormal white default | |
| 31 | 31 | color listfocus black yellow dim | |
| 32 | 32 | color listnormal_unread blue default bold | |
| 33 | 33 | color listfocus_unread black yellow underline | |
| @@ -8,6 +8,7 @@ https://artixlinux.org/feed.php "tech" | |||
| 8 | 8 | https://matklad.github.io/feed.xml "programming" | |
| 9 | 9 | https://ihatereality.space/rss.xml "programming" | |
| 10 | 10 | https://fasterthanli.me/index.xml "programming" | |
| 11 | + | https://thesquareplanet.com/feed.xml | |
| 11 | 12 | https://digdeeper.club/atom.xml | |
| 12 | 13 | https://gnulinuxindia.org/index.xml | |
| 13 | 14 | https://cedaei.com/index.xml | |
| @@ -4,7 +4,7 @@ case "$(printf "a selected area (copy)\\ncurrent window (copy)\\nfull screen (co | |||
| 4 | 4 | "a selected area (copy)") maim -u -s | xclip -selection clipboard -t image/png ;; | |
| 5 | 5 | "current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;; | |
| 6 | 6 | "full screen (copy)") sleep 0.2 ; maim | xclip -selection clipboard -t image/png ;; | |
| 7 | − | "a selected area") maim -u -s ~/pix/ss/pic-selected-"$(date '+%y-%m-%d-%H-%M').png" ;; | |
| 8 | − | "current window") maim -i "$(xdotool getactivewindow)" ~/pix/ss/pic-window-"$(date '+%y-%m-%d-%H-%M').png" ;; | |
| 9 | − | "full screen") sleep 0.2 ; maim ~/pix/ss/pic-full-"$(date '+%y-%m-%d-%H-%M').png" ;; | |
| 7 | + | "a selected area") maim -u -s ~/pix/ss/pic-selected-$(uuidgen | awk -F- '{printf $2}')-"$(date '+%y-%m-%d').png" ;; | |
| 8 | + | "current window") maim -i "$(xdotool getactivewindow)" ~/pix/ss/pic-window-"$(uuidgen | awk -F- '{printf $2}')-$(date '+%y-%m-%d').png" ;; | |
| 9 | + | "full screen") sleep 0.2 ; maim ~/pix/ss/pic-full-"$(uuidgen | awk -F- '{printf $2}')-$(date '+%y-%m-%d').png" ;; | |
| 10 | 10 | esac | |
| @@ -1,2 +1,2 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | − | echo "$(date "+[ %a %d %b ] [ %I:%M %P ]")" | |
| 2 | + | date "+[ %a %d %b ] [ %I:%M %P ]" | |
| @@ -1,2 +1,4 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | − | echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]" | |
| 2 | + | # echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]" | |
| 3 | + | ||
| 4 | + | echo "[ $(free -h --si | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p") $(grep -o "^[^ ]*" /proc/loadavg ) ]" | |
| @@ -7,9 +7,9 @@ version="0.0.1" | |||
| 7 | 7 | # Usage: | |
| 8 | 8 | # waldl <query> | |
| 9 | 9 | # if query left empty then sh_menu will be used (dmenu by default) | |
| 10 | − | # after the thumbnails are cached, sxiv would open up with the thumbnails | |
| 11 | − | # Select the wallpapers using `m` on the image. ( marking the image in sxiv ) | |
| 12 | − | # press `q` to quit sxiv, the marked images would start downloading | |
| 10 | + | # after the thumbnails are cached, nsxiv would open up with the thumbnails | |
| 11 | + | # Select the wallpapers using `m` on the image. ( marking the image in nsxiv ) | |
| 12 | + | # press `q` to quit nsxiv, the marked images would start downloading | |
| 13 | 13 | ||
| 14 | 14 | #################### | |
| 15 | 15 | ## User variables ## | |
| @@ -19,8 +19,8 @@ version="0.0.1" | |||
| 19 | 19 | walldir="$HOME/pix/wallhaven" | |
| 20 | 20 | # the dir used to cache thumbnails | |
| 21 | 21 | cachedir="$HOME/.cache/wallhaven" | |
| 22 | − | # sxiv options | |
| 23 | − | sxiv_otps=" -tfpo -z 200" # o is needed for selection | |
| 22 | + | # nsxiv options | |
| 23 | + | nsxiv_otps=" -tfpo -z 200" # o is needed for selection | |
| 24 | 24 | # number of pages to show in search results | |
| 25 | 25 | # each page contains 24 results | |
| 26 | 26 | max_pages=4 | |
| @@ -66,7 +66,7 @@ dep_ck () { | |||
| 66 | 66 | command -v $pr >/dev/null 2>&1 || sh_info "command $pr not found, install: $pr" 1 | |
| 67 | 67 | done | |
| 68 | 68 | } | |
| 69 | − | dep_ck "sxiv" "curl" "jq" | |
| 69 | + | dep_ck "nsxiv" "curl" "jq" | |
| 70 | 70 | ||
| 71 | 71 | ||
| 72 | 72 | # clean up command that would be called when the program exits | |
| @@ -109,7 +109,7 @@ sh_info "getting data..." | |||
| 109 | 109 | get_results "$query" | |
| 110 | 110 | ||
| 111 | 111 | # check if data file is empty, if so then exit | |
| 112 | − | [ -s "$datafile" ] || sh_info "no images found" 1 | |
| 112 | + | [ -s "$datafile" ] || sh_info "no images found" 1 | |
| 113 | 113 | ||
| 114 | 114 | ############################ | |
| 115 | 115 | ## downloading thumbnails ## | |
| @@ -130,11 +130,11 @@ done | curl -Z -K - | |||
| 130 | 130 | #sh_info "downloaded thumbnails..." | |
| 131 | 131 | ||
| 132 | 132 | ########################### | |
| 133 | − | ## user selection (sxiv) ## | |
| 133 | + | ## user selection (nsxiv) ## | |
| 134 | 134 | ########################### | |
| 135 | 135 | ||
| 136 | 136 | # extract the id's out of the thumbnail name | |
| 137 | − | image_ids="$(sxiv $sxiv_otps "$cachedir")" | |
| 137 | + | image_ids="$(nsxiv $sxiv_otps "$cachedir")" | |
| 138 | 138 | [ -z "$image_ids" ] && exit | |
| 139 | 139 | ||
| 140 | 140 | ######################### | |
| @@ -155,4 +155,4 @@ do | |||
| 155 | 155 | done | curl -K - | |
| 156 | 156 | ||
| 157 | 157 | sh_info "wallpapers downloaded in:- '$walldir/$query'" | |
| 158 | − | sxiv $(ls -c) | |
| 158 | + | nsxiv $(ls -c) | |
| @@ -113,3 +113,16 @@ fiend -> an evil spirit or demon | |||
| 113 | 113 | contiguous -> sharing a common border; touching. | |
| 114 | 114 | transgression -> an act that goes against a law, rule, or code of conduct. | |
| 115 | 115 | onosecond -> its the fraction of time before one realizes that they have made a crucial mistake after the mistake was made | |
| 116 | + | totem -> a natural object or animal that is believed by a particular society to have spiritual significance and that is adopted by it as an embelem. | |
| 117 | + | errata -> an error in printing or writing. | |
| 118 | + | empirical -> verifiable by ovservation or experience rather than theory or pure logic. | |
| 119 | + | bandit -> a robber or outlaw belonging to a gang and typically operating in an isolated or lawless area. | |
| 120 | + | futile -> incapable of producing any useful result; pointless. | |
| 121 | + | akin -> of similar nature or character | |
| 122 | + | inundated -> overwhelm (someone) with things or people to be dealt with | |
| 123 | + | blimey -> used to express surprise, excitement, or alarm. | |
| 124 | + | detrimental -> tending to cause harm | |
| 125 | + | avert -> turn away (one's eyes or thoughts) | |
| 126 | + | espionage -> the practice of spying or of using spies, typically by governments to obtain political and military information. | |
| 127 | + | polyglot -> knowing or using serveral langauges | |
| 128 | + | intrude -> to go into a place in which you are not wanted or not expected to be | |