5
5
#
6
6
# Copyright (c) 2021 - 2022 xShin
7
7
8
- version=1.1.1
8
+ version=1.1.3
9
9
10
10
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:- ${HOME} / .config}
11
11
config_file=" ${XDG_CONFIG_HOME} /awesomeshot/awesomeshot.conf"
@@ -49,6 +49,9 @@ hex_color=(
49
49
"#282C34" # black-gray
50
50
"#333333" # gray
51
51
"#A8D7FE" # blue sky
52
+ "#6D6B70" # another gray
53
+ "#726A7B" # slate gray
54
+ "#A2AAAD"
52
55
)
53
56
54
57
# This variable serves to convert title bar when editing the image, change this value
@@ -84,7 +87,7 @@ convert_titlebar_text="yes"
84
87
# This variable serves to set titlebar text, if you want to use icon
85
88
# you can search on Nerd Fonts Website (https://www.nerdfonts.com/cheat-sheet)
86
89
# NOTE: if you use icon from Nerd Fonts, make sure "titlebar_text_font" using nerd fonts to!
87
- titlebar_text="גּ awesomeshot "
90
+ titlebar_text="Awesomeshot "
88
91
89
92
# This variable serves to set text position of titlebar text, the value contain 8 wind direction:
90
93
# - NorthWest
@@ -99,11 +102,11 @@ titlebar_text="גּ awesomeshot"
99
102
titlebar_text_position="north"
100
103
101
104
# This variable serves to set font size
102
- titlebar_text_size="35 "
105
+ titlebar_text_size="30 "
103
106
104
107
# This variable serves to set the text color, if you want to custom the color, you can
105
108
# change this value with hex color or use the one in the array list.
106
- titlebar_text_color="${hex_color[0 ]}"
109
+ titlebar_text_color="${hex_color[5 ]}"
107
110
108
111
# This variable serves to set titlebar text background color (background text), change this value
109
112
# to "none" for transparent background, if you want to custom the color, you can
@@ -113,10 +116,11 @@ titlebar_text_background="none"
113
116
# This variable serves to set the font used when converting, you can check the list font
114
117
# available to use for ImageMagick by command:
115
118
# - magick convert -list font | grep -iE 'font:.*'
116
- titlebar_text_font="JetBrains-Mono-Medium-Nerd-Font-Complete"
119
+ #titlebar_text_font="JetBrains-Mono-Medium-Nerd-Font-Complete"
120
+ titlebar_text_font="Falling-Sky"
117
121
118
122
# This variable serves to set position of "X" and "Y" titlebar text
119
- titlebar_text_xy="+0+5 "
123
+ titlebar_text_xy="+0+7 "
120
124
121
125
# This variable serves to convert rounded corner, change this value
122
126
# to blank or whatever for disable convert and "yes" for enable function
@@ -127,29 +131,16 @@ border_radius=20
127
131
128
132
# This variable serves to convert tiny first border (background image) when editing the image,
129
133
# change this value to blank or whatever for disable convert and "yes" for enable function
130
- convert_first_border=""
134
+ convert_first_border="yes "
131
135
132
136
# This variable serves to set tiny first border color (background image), change this value
133
137
# to "none" for transparent background, if you want to custom the color, you can
134
138
# change this value with hex color or use the one in the array list.
135
- first_border_color="${hex_color[0 ]}"
139
+ first_border_color="${hex_color[5 ]}"
136
140
137
141
# This variable serves to set how many size of the first border
138
142
# NOTE: make sure this value is small, otherwise it will look weird
139
- first_border_size=7
140
-
141
- # This variable serves to convert tiny first border (background image) when editing the image,
142
- # change this value to blank or whatever for disable convert and "yes" for enable function
143
- convert_first_border=""
144
-
145
- # This variable serves to set tiny first border color (background image), change this value
146
- # to "none" for transparent background, if you want to custom the color, you can
147
- # change this value with hex color or use the one in the array list.
148
- first_border_color="${hex_color[0]}"
149
-
150
- # This variable serves to set how many size of the first border
151
- # NOTE: make sure this value is small, otherwise it will look weird
152
- first_border_size=7
143
+ first_border_size=3
153
144
154
145
# This variable serves to convert border (background image) when editing the image,
155
146
# change this value to blank or whatever for disable convert and "yes" for enable function
@@ -303,11 +294,13 @@ function generateDefaultConfig() {
303
294
}
304
295
305
296
function header() {
306
- printf " \n\n %-18s\n\n " " AWESOMESHOT v${version} "
297
+ printf " \n\n %-18s\n" " AWESOMESHOT v${version} "
307
298
}
308
299
309
300
function title() {
301
+ echo " "
310
302
printf " \n\b\r\033[2K***${1} \n" | sed ' s/*/ /g'
303
+ echo " "
311
304
}
312
305
313
306
function subtitle() {
@@ -328,7 +321,7 @@ function check() {
328
321
fi
329
322
}
330
323
331
- function run () {
324
+ function run() {
332
325
if [ " ${convert_to_png} " == " yes" ]; then
333
326
convertToPng
334
327
fi
@@ -373,6 +366,7 @@ function run () {
373
366
fi
374
367
375
368
termux-media-scan " ${file_name} " & > /dev/null
369
+
376
370
termux-toast -b " ${hex_color[0]} " -c " ${hex_color[1]} " -g top " ${file_name} ✅"
377
371
termux-notification --action " termux-open '${file_name} '" --icon " camera_enhance" \
378
372
--image-path " ${file_name} " --priority " high" --title " 📸 Awesomeshot v${version} "
@@ -882,8 +876,7 @@ case "${1}" in
882
876
;;
883
877
-m|--manual )
884
878
if [ ${2} ]; then
885
- getPwd
886
- file_name=" ${pwd} /${2} "
879
+ file_name=" ${2} "
887
880
main manualRun
888
881
else
889
882
echo " "
0 commit comments