Krolyxon
Commit 8839ac5

Branches

Refs →

dotfiles-x118839ac5

scripts changes

Author
krolyxon
Date
2023-05-24 22:58 +0530
Parent
c1af8c0
Commit
8839ac5f3113f966b35920e412ef73b7aafece54

+34 −17

8 files changed

  1. M .config/ncmpcpp/config +2 −1
  2. M .config/newsboat/config +1 −1
  3. M .config/newsboat/urls +1 −0
  4. M .local/bin/maimshot +3 −3
  5. M .local/bin/statusbar/sb-clock +1 −1
  6. M .local/bin/statusbar/sb-memory +3 −1
  7. M .local/bin/waldl +10 −10
  8. M .local/share/vocab/words.txt +13 −0
M .config/ncmpcpp/config View
@@ -17,7 +17,7 @@ media_library_primary_tag = album_artist
1717 media_library_albums_split_by_date = no
1818 startup_screen = "media_library"
1919 jump_to_now_playing_song_at_start = "yes"
20−display_volume_level = yes
20+display_volume_level = yes
2121 ignore_leading_the = yes
2222 external_editor = nvim
2323 use_console_editor = yes
@@ -31,6 +31,7 @@ progressbar_elapsed_color = blue:b
3131 statusbar_color = red
3232 volume_color = "green"
3333 statusbar_time_color = cyan:b
34+execute_on_song_change="pkill -RTMIN+11 dwmblocks"
3435
3536 ## Selected tracks ##
3637 selected_item_prefix = "* "
M .config/newsboat/config View
@@ -27,7 +27,7 @@ bind-key L next-feed
2727 bind-key c toggle-show-read-feeds
2828
2929 color background default default
30−color listnormal cyan default
30+color listnormal white default
3131 color listfocus black yellow dim
3232 color listnormal_unread blue default bold
3333 color listfocus_unread black yellow underline
M .config/newsboat/urls View
@@ -8,6 +8,7 @@ https://artixlinux.org/feed.php "tech"
88 https://matklad.github.io/feed.xml "programming"
99 https://ihatereality.space/rss.xml "programming"
1010 https://fasterthanli.me/index.xml "programming"
11+https://thesquareplanet.com/feed.xml
1112 https://digdeeper.club/atom.xml
1213 https://gnulinuxindia.org/index.xml
1314 https://cedaei.com/index.xml
M .local/bin/maimshot View
@@ -4,7 +4,7 @@ case "$(printf "a selected area (copy)\\ncurrent window (copy)\\nfull screen (co
44 "a selected area (copy)") maim -u -s | xclip -selection clipboard -t image/png ;;
55 "current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
66 "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" ;;
1010 esac
M .local/bin/statusbar/sb-clock View
@@ -1,2 +1,2 @@
11 #!/bin/sh
2−echo "$(date "+[  %a %d %b ] [  %I:%M %P ]")"
2+date "+[  %a %d %b ] [  %I:%M %P ]"
M .local/bin/statusbar/sb-memory View
@@ -1,2 +1,4 @@
11 #!/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 ) ]"
M .local/bin/waldl View
@@ -7,9 +7,9 @@ version="0.0.1"
77 # Usage:
88 # waldl <query>
99 # 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
1313
1414 ####################
1515 ## User variables ##
@@ -19,8 +19,8 @@ version="0.0.1"
1919 walldir="$HOME/pix/wallhaven"
2020 # the dir used to cache thumbnails
2121 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
2424 # number of pages to show in search results
2525 # each page contains 24 results
2626 max_pages=4
@@ -66,7 +66,7 @@ dep_ck () {
6666 command -v $pr >/dev/null 2>&1 || sh_info "command $pr not found, install: $pr" 1
6767 done
6868 }
69−dep_ck "sxiv" "curl" "jq"
69+dep_ck "nsxiv" "curl" "jq"
7070
7171
7272 # clean up command that would be called when the program exits
@@ -109,7 +109,7 @@ sh_info "getting data..."
109109 get_results "$query"
110110
111111 # 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
113113
114114 ############################
115115 ## downloading thumbnails ##
@@ -130,11 +130,11 @@ done | curl -Z -K -
130130 #sh_info "downloaded thumbnails..."
131131
132132 ###########################
133−## user selection (sxiv) ##
133+## user selection (nsxiv) ##
134134 ###########################
135135
136136 # extract the id's out of the thumbnail name
137−image_ids="$(sxiv $sxiv_otps "$cachedir")"
137+image_ids="$(nsxiv $sxiv_otps "$cachedir")"
138138 [ -z "$image_ids" ] && exit
139139
140140 #########################
@@ -155,4 +155,4 @@ do
155155 done | curl -K -
156156
157157 sh_info "wallpapers downloaded in:- '$walldir/$query'"
158−sxiv $(ls -c)
158+nsxiv $(ls -c)
M .local/share/vocab/words.txt View
@@ -113,3 +113,16 @@ fiend -> an evil spirit or demon
113113 contiguous -> sharing a common border; touching.
114114 transgression -> an act that goes against a law, rule, or code of conduct.
115115 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