scripts changes
This commit is contained in:
parent
c1af8c0ef0
commit
8839ac5f31
|
|
@ -17,7 +17,7 @@ media_library_primary_tag = album_artist
|
|||
media_library_albums_split_by_date = no
|
||||
startup_screen = "media_library"
|
||||
jump_to_now_playing_song_at_start = "yes"
|
||||
display_volume_level = yes
|
||||
display_volume_level = yes
|
||||
ignore_leading_the = yes
|
||||
external_editor = nvim
|
||||
use_console_editor = yes
|
||||
|
|
@ -31,6 +31,7 @@ progressbar_elapsed_color = blue:b
|
|||
statusbar_color = red
|
||||
volume_color = "green"
|
||||
statusbar_time_color = cyan:b
|
||||
execute_on_song_change="pkill -RTMIN+11 dwmblocks"
|
||||
|
||||
## Selected tracks ##
|
||||
selected_item_prefix = "* "
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ bind-key L next-feed
|
|||
bind-key c toggle-show-read-feeds
|
||||
|
||||
color background default default
|
||||
color listnormal cyan default
|
||||
color listnormal white default
|
||||
color listfocus black yellow dim
|
||||
color listnormal_unread blue default bold
|
||||
color listfocus_unread black yellow underline
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ https://artixlinux.org/feed.php "tech"
|
|||
https://matklad.github.io/feed.xml "programming"
|
||||
https://ihatereality.space/rss.xml "programming"
|
||||
https://fasterthanli.me/index.xml "programming"
|
||||
https://thesquareplanet.com/feed.xml
|
||||
https://digdeeper.club/atom.xml
|
||||
https://gnulinuxindia.org/index.xml
|
||||
https://cedaei.com/index.xml
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ case "$(printf "a selected area (copy)\\ncurrent window (copy)\\nfull screen (co
|
|||
"a selected area (copy)") maim -u -s | xclip -selection clipboard -t image/png ;;
|
||||
"current window (copy)") maim -i "$(xdotool getactivewindow)" | xclip -selection clipboard -t image/png ;;
|
||||
"full screen (copy)") sleep 0.2 ; maim | xclip -selection clipboard -t image/png ;;
|
||||
"a selected area") maim -u -s ~/pix/ss/pic-selected-"$(date '+%y-%m-%d-%H-%M').png" ;;
|
||||
"current window") maim -i "$(xdotool getactivewindow)" ~/pix/ss/pic-window-"$(date '+%y-%m-%d-%H-%M').png" ;;
|
||||
"full screen") sleep 0.2 ; maim ~/pix/ss/pic-full-"$(date '+%y-%m-%d-%H-%M').png" ;;
|
||||
"a selected area") maim -u -s ~/pix/ss/pic-selected-$(uuidgen | awk -F- '{printf $2}')-"$(date '+%y-%m-%d').png" ;;
|
||||
"current window") maim -i "$(xdotool getactivewindow)" ~/pix/ss/pic-window-"$(uuidgen | awk -F- '{printf $2}')-$(date '+%y-%m-%d').png" ;;
|
||||
"full screen") sleep 0.2 ; maim ~/pix/ss/pic-full-"$(uuidgen | awk -F- '{printf $2}')-$(date '+%y-%m-%d').png" ;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
echo "$(date "+[ %a %d %b ] [ %I:%M %P ]")"
|
||||
date "+[ %a %d %b ] [ %I:%M %P ]"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
#!/bin/sh
|
||||
echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]"
|
||||
# echo "[ $(free --mebi | sed -n '2{p;q}' | awk '{printf ("%2.2fGiB", ( $3 / 1024), ($2 / 1024))}') $(sensors | awk '/Core 0/ {print " " $3}') ]"
|
||||
|
||||
echo "[ $(free -h --si | sed -n "2s/\([^ ]* *\)\{2\}\([^ ]*\).*/\2/p") $(grep -o "^[^ ]*" /proc/loadavg ) ]"
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ version="0.0.1"
|
|||
# Usage:
|
||||
# waldl <query>
|
||||
# if query left empty then sh_menu will be used (dmenu by default)
|
||||
# after the thumbnails are cached, sxiv would open up with the thumbnails
|
||||
# Select the wallpapers using `m` on the image. ( marking the image in sxiv )
|
||||
# press `q` to quit sxiv, the marked images would start downloading
|
||||
# after the thumbnails are cached, nsxiv would open up with the thumbnails
|
||||
# Select the wallpapers using `m` on the image. ( marking the image in nsxiv )
|
||||
# press `q` to quit nsxiv, the marked images would start downloading
|
||||
|
||||
####################
|
||||
## User variables ##
|
||||
|
|
@ -19,8 +19,8 @@ version="0.0.1"
|
|||
walldir="$HOME/pix/wallhaven"
|
||||
# the dir used to cache thumbnails
|
||||
cachedir="$HOME/.cache/wallhaven"
|
||||
# sxiv options
|
||||
sxiv_otps=" -tfpo -z 200" # o is needed for selection
|
||||
# nsxiv options
|
||||
nsxiv_otps=" -tfpo -z 200" # o is needed for selection
|
||||
# number of pages to show in search results
|
||||
# each page contains 24 results
|
||||
max_pages=4
|
||||
|
|
@ -66,7 +66,7 @@ dep_ck () {
|
|||
command -v $pr >/dev/null 2>&1 || sh_info "command $pr not found, install: $pr" 1
|
||||
done
|
||||
}
|
||||
dep_ck "sxiv" "curl" "jq"
|
||||
dep_ck "nsxiv" "curl" "jq"
|
||||
|
||||
|
||||
# clean up command that would be called when the program exits
|
||||
|
|
@ -109,7 +109,7 @@ sh_info "getting data..."
|
|||
get_results "$query"
|
||||
|
||||
# check if data file is empty, if so then exit
|
||||
[ -s "$datafile" ] || sh_info "no images found" 1
|
||||
[ -s "$datafile" ] || sh_info "no images found" 1
|
||||
|
||||
############################
|
||||
## downloading thumbnails ##
|
||||
|
|
@ -130,11 +130,11 @@ done | curl -Z -K -
|
|||
#sh_info "downloaded thumbnails..."
|
||||
|
||||
###########################
|
||||
## user selection (sxiv) ##
|
||||
## user selection (nsxiv) ##
|
||||
###########################
|
||||
|
||||
# extract the id's out of the thumbnail name
|
||||
image_ids="$(sxiv $sxiv_otps "$cachedir")"
|
||||
image_ids="$(nsxiv $sxiv_otps "$cachedir")"
|
||||
[ -z "$image_ids" ] && exit
|
||||
|
||||
#########################
|
||||
|
|
@ -155,4 +155,4 @@ do
|
|||
done | curl -K -
|
||||
|
||||
sh_info "wallpapers downloaded in:- '$walldir/$query'"
|
||||
sxiv $(ls -c)
|
||||
nsxiv $(ls -c)
|
||||
|
|
|
|||
|
|
@ -113,3 +113,16 @@ fiend -> an evil spirit or demon
|
|||
contiguous -> sharing a common border; touching.
|
||||
transgression -> an act that goes against a law, rule, or code of conduct.
|
||||
onosecond -> its the fraction of time before one realizes that they have made a crucial mistake after the mistake was made
|
||||
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.
|
||||
errata -> an error in printing or writing.
|
||||
empirical -> verifiable by ovservation or experience rather than theory or pure logic.
|
||||
bandit -> a robber or outlaw belonging to a gang and typically operating in an isolated or lawless area.
|
||||
futile -> incapable of producing any useful result; pointless.
|
||||
akin -> of similar nature or character
|
||||
inundated -> overwhelm (someone) with things or people to be dealt with
|
||||
blimey -> used to express surprise, excitement, or alarm.
|
||||
detrimental -> tending to cause harm
|
||||
avert -> turn away (one's eyes or thoughts)
|
||||
espionage -> the practice of spying or of using spies, typically by governments to obtain political and military information.
|
||||
polyglot -> knowing or using serveral langauges
|
||||
intrude -> to go into a place in which you are not wanted or not expected to be
|
||||
|
|
|
|||
Loading…
Reference in New Issue